This preview shows page 1. Sign up to view the full content.
Unformatted text preview: them to be sure that they are correct. The maintenance phase maps to Polyas last stage, where the results are examined and perhaps modified. Following an Algorithm Although you work with algorithms all the time, most of your experience with them is in the context of following them. You follow an algorithm every time you follow a recipe, play a game, assemble a toy, or take medi-cine. Lets look at a recipe and see how this fits the description of an algo-rithm. See Figure 6.4. 2 While (the quotient is not zero) Divide the decimal number by the new base Make the remainder the next digit to the left in the answer Replace the original decimal number with the quotient...
View Full Document
This note was uploaded on 01/13/2011 for the course CSE 1550 taught by Professor Marianakant during the Fall '10 term at York University.
- Fall '10