1. Exam Points
Represent Algorithms
natural languageflowchartpseudocodeprogramming languageCompare AlgorithmsPredict the result or behaviorof algorithms.
2. Knowledge Points
(1) Developing Algorithms
- The way statements are sequenced and combined in a program determines the computed result.
Algorithmsthat appearsimilarcan yielddifferent results.- Example:
- Example:
- Programs incorporate
iterationandselectionconstructs to represent repetition and make decisions to handle varied input values.- Example:
- Example:
Algorithmscan be written indifferentways and still accomplish thesame tasks.- Example:
- Example:
Algorithmscan benewly createdfrom an idea, bycombining existing algorithms, or bymodifying existing algorithms.- Using existing correct algorithms as building blocks for constructing another algorithm has benefits such as reducing development time, reducing testing, and simplifying the identification of errors.