Chapter 5 Flashcards

(6 cards)

1
Q

algorithm

A

An algorithm is an ordered set of unambiguous, executable steps that defines a terminating process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Primitives

A

a well-defined set of building blocks from which algorithm representations can be constructed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Programming language

A

a collection of primitives along with a collection of rules stating how the primitives can be combined

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Pseudo code

A

a notational system in which algorithms can be expressed (less formal than real programming language code)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly