Chapter Seven - Problem Solving and Algorithms Flashcards
1
Q
nested structure (nested logic)
A
- structures in which ONE CONTROL STRUCTURE is EMBEDDED within another CONTROL STRUCTURE; (e.g. while(true) if(value>0))
2
Q
abstract step?
A
- algorithmic step for which some DETAILS remain UNSPECIFIED
3
Q
concrete step?
A
- step for which the details are FULLY SPECIFIED
4
Q
binary search?
A
- looking for an item in an ALREADY SORTED list by ELIMINATING LARGE PORTIONS of the data on each comparison.
5
Q
recursion?
A
- ability of an algorithm to RECALL ITSELF
6
Q
information hiding?
A
- makes DETAILS at a LOWER LEVEL INACCESSIBLE during the design of higher levels
7
Q
abstraction
A
- model of a complex system that includes only the DETAILS ESSENTIAL to the VIEWER (dog example with owner, trainer, and vet)
8
Q
data abstraction
A
- separation of the LOGICAL view of data from its IMPLEMENTATION. e.g. banks computer represents number in twos complements but this distinction is of no important to you as long as your bank statements are accurate.
9
Q
procedural abstraction
A
- separating the logical view of an ACTION from its implementation e.g. giving a name to a subprogram
10
Q
control abstraction
A
- separation of the logical view of a CONTROL STRUCTURE from its implementation
11
Q
control structure
A
- statement used to ALTER the normally SEQUENTIAL FLOW of CONTROL e.g. WHILE and IF