M4 Algorithm Flashcards
thread that tie together
Donald Knoth
ordered sequence of instructions, step by step process, finite set of instructions/discrete statements
Algorithm
algorithm properties
input, output, definiteness, finiteness, effectiveness, correctness
taken from a specified set of subjects, algorithms have one or more prespectified
Input
have specified relations with inputs
output
most be precisely defined, clearly specified
definiteness
an algorithm must always terminate (semicolon) after a finite amount of time
finiteness
all algorithms must sufficiently basic that can be done exactly, the lesser the code, the better
effectiveness
should always produce correct result
correctness
input, some means of reading values, requires data value
Acquire
some means of performing arithmetic computations
computation
choosing among possible courses
selection l/decision
repeatedly executing a collection of instructions, numbers
iteration/repetition
output, display, printing computed results to the user
repeat results
base and ambiguous
natural language
artificial and informed language, no syntax
psuedo code
logic in solution, symbols
flowcharts
algorithm representation/expression
natural language, psuedo code, flowcharts, programming language
algorithm elements
acquire and computation