Chapter 5 Flashcards
(6 cards)
1
Q
algorithm
A
An algorithm is an ordered set of unambiguous, executable steps that defines a terminating process.
2
Q
Primitives
A
a well-defined set of building blocks from which algorithm representations can be constructed
3
Q
Programming language
A
a collection of primitives along with a collection of rules stating how the primitives can be combined
4
Q
Pseudo code
A
a notational system in which algorithms can be expressed (less formal than real programming language code)
5
Q
Loop control
A
- Initialize – establish an initial state.
- Test – continue only if the current state fulfils the loop condition.
- Modify – change the state towards a termination state.
6
Q
Recursion
A
- The execution of a procedure leads to another execution of the procedure.
- Multiple activations of the procedure are formed, all but one of which are waiting for other activations to complete.