Karteikarten
Writing and Following Algorithms
Karten in diesem Stapel (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
Informationen
- Beschreibung
- Tiny topic, seems more skill-based than memory based
- Erstellt von
- James Norman
- Aufrufe
- 4
- Bewertung
Mehr zu Algorithm Design and Problem Solving