9 - algorithm design + problem solving Flashcards

1
Q

abstraction

A

the process of extracting essential inforrmation while ignoring what isnt relevant

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

decomposition

A

the process of breaking a complex problem into smaller parts

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

pattern recognition

A

the identification of parts of a problem that are similar and could use the same solution

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

+ abstraction

A

+ time needed to develop programs is reduced
+ program is smaller in size so takes up less memory space + decreases download size
+ greater customer satisfaction as requirements met without extra features

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

3 ways to write algorithms

A
  • structured English
  • pseudocode
  • flowcharts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

4 basic constructs of algorithms

A
  • assignment
  • sequence
  • selection
  • iteration
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

flow chart symbols

A

square - assignment/ sequence
diamond - selection/ decisions
parallelogram - input
oval - start/end

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

identifier table

A

identifies every variable and describes what it stores and data types

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

stepwise refinement

A

decomposition breaks problems down into smaller parts
these parts are written as a series of steps where each can be written in high level language

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

what is an algorithm

A

a sequence of defined steps that can be carried out to perform a task

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

variable

A

a storage location for data with an identifier

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

rogue value

A

a value used to terminate a sequence of value - same data type but outside the expected range eg -1

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

procedure

A

a sequence of steps that is given an identifier and can be called to perform a sub task

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

function

A

procedure that returns a single value

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

local vs global variable

A

variable accessible within the module vs accessible from all modules

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

CASE pseudocode

A

CASE OF
1 :
2 :
3 :
OTHERSISE :
END CASE