M4 Algorithm Flashcards

1
Q

thread that tie together

A

Donald Knoth

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

ordered sequence of instructions, step by step process, finite set of instructions/discrete statements

A

Algorithm

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

algorithm properties

A

input, output, definiteness, finiteness, effectiveness, correctness

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

taken from a specified set of subjects, algorithms have one or more prespectified

A

Input

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

have specified relations with inputs

A

output

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

most be precisely defined, clearly specified

A

definiteness

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

an algorithm must always terminate (semicolon) after a finite amount of time

A

finiteness

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

all algorithms must sufficiently basic that can be done exactly, the lesser the code, the better

A

effectiveness

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

should always produce correct result

A

correctness

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

input, some means of reading values, requires data value

A

Acquire

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

some means of performing arithmetic computations

A

computation

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

choosing among possible courses

A

selection l/decision

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

repeatedly executing a collection of instructions, numbers

A

iteration/repetition

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

output, display, printing computed results to the user

A

repeat results

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

base and ambiguous

A

natural language

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

artificial and informed language, no syntax

A

psuedo code

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

logic in solution, symbols

A

flowcharts

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

algorithm representation/expression

A

natural language, psuedo code, flowcharts, programming language

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

algorithm elements

A

acquire and computation

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

algorithm common elements

A

selection/decision, iteration/repetition, repeat results

21
Q

consist of short english phrases, no keywords, consecutive phrases, indentation to show logic

A

pseudo code

22
Q

3 main statement/oerations

A

assignment operator, input, display

23
Q

used to store a value

A

assignment operator

24
Q

used to store a value

A

assignment operator

25
display message, asking the user for a value and store it
input
26
display, print
display
27
proper order
sequence
28
pictorial/visual representation, diagrammatic, graphical method
flowchart
29
rounded ractangles/oval, starting and ending
terminal
30
rectangle, computation process
process
31
parallelograms, prompt/output
input/output operation
32
hexagon, defines variable
initialization
33
diamond, point where the outcomes, yes or no
decision/selection
34
represented by arrows, indication direction of flows
flow lines
35
circle, on the same page it connects flow chart, avoid spaghetti
on page connector
36
next page it connects flow chart, avoid spaghetti
off page connector
37
series of actions
sequence
38
if there's if and then
decision
39
IF structure when there are multiples of condition/selection
decision- layered if
40
there are condition in the condition
decision - nested condition
41
commonly known as a loop
iteration/repetition
42
section of code that repeats itself
loop
43
variable integer that computes how many times a loop executed
loop index / loop counter
44
integer-valued, indicates maximum of loop to be reached at terminal
loop limit
45
step size for incrementing loop counter
loop increment
46
basis on executing an indefinite repetition loop
sentinel value
47
repeat the process while it's true
repetition - while
48
if the condition still exist, the action is repeated
repetition - while loo
49
process repeated until the condition is true (==) condition not exist - repeated
repetition - repeat until