1. Exam Points
Represent algorithms
natural languageflowchartpseudocodeprogramming languageCompare two given algorithmsPredict the result or behaviorof algorithms.- Create algorithms by modifying existing algorithms
- Equivalent Boolean expressions of conditionals
2. Knowledge Points
(1) Represent Algorithms
Different ways to represent algorithmsnatural languageflowchartpseudocodeprogramming language
(2) 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.- Benifits of using 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.
(3) Equivalent boolean expressions for conditional statements
- Some conditional statements can be written as equivalent Boolean expressions, and vice versa.
- Example: