Loading topic
= to mean "store" and another takes it to mean "compare," the two will trace different algorithms from the same text. This chapter sets out a small set of conventions for assignment, operators, keywords6 min read←) and the FOR, WHILE, and IF keywords from the earlier chapters. The focus here is narrow: how pseudocode names array elements and ranges, and how small ch6 min read← for assignment, keyword pairs such as IF ... END IF, indentation for structure, and 1-based arrays by default. The chapter cover6 min read←), IF, FOR, and WHILE, and that you can define a FUNCTION or PROCEDURE with parameters and a return value. Earlier chapters covered those conventions. This chapter is about a different skill: starting from a problem 6 min read← for assignment, IF … THEN … ELSE, counted FOR loops, and functions that RETURN a value. It also assumes basic programming in any language. The aim is a method for recording exactly what an algorithm5 min readFOR, `6 min readA[1] is the first element. A nested loop is a loop whose body contains another loop. Tracing one is the same skill as tracing a 6 min readFindMax, the summing loop, and InsertionSort from earlier chapters.6 min readn, and use that formula to predict how the algorithm behaves on inputs t6 min read