Flashcards
Writing and Following Algorithms
Cards in this deck (3)
- 1Properties of a good algorithm1. Clear and precisely stated steps that produce the correct output for any set of valid inputs
2. Allows for invalid inputs
3. Terminates at some point
4. Executes efficiently, in as few steps as possible
5. Designed to allow others to understand and modify it if necessary - 2Steps for interpreting algorithms1. Read the comments on the program
2. Look at variable names
3. Follow the algorithm through
4. Try a dry run with some data - 3Trace TablesUsed to perform a dry run of an algorithm
While following the algorithm, variables and their values at each stage are displayed in the table
Information
- Description
- Tiny topic, seems more skill-based than memory based
- Created by
- James Norman
- Views
- 4
- Rating
More on Algorithm Design and Problem Solving