vocab Flashcards
arithmetic sequence
a sequence is equal to the number before plus a constant
Geometric sequence
a sequence equal to the number before times the a constant
(spped of algerathem )
df
best case
worst case - we use worst case to guarantee performance
average case
sdf
asymptotic notations
- Big O
- Big omega
- theta
logarithm
A logarithm answers the question “How many of one number do we multiply to get another number?”
Example How many 2s need to be multiplied to get 8?
Answer: 2 × 2 × 2 = 8, so we had to multiply 3 of the 2s to get 8
We say the logarithm of 8 with base 2 is 3
In fact these two things are the same:
algorithm
algorithm is any well-defined computational procedure that takes
some value, or set of values, as input and produces some value, or set of values, as
output.
Data structures
data structure is a way to store
and organize data in order to facilitate access and modifications
NP-complete
problems for which no efficient solution is known
Parallelism
“multithreaded” algorithms,
input size
number of items in the inpu
running time
running time of an algorithm on a particular input is the number of primitive
operations or “steps” executed
Analyzing algorithms
combo of running time and input size
Order of growth or order of growth,
constant factors are less significant than the rate of growth
in determining computational efficiency for large inputs
asymptotic efficiency of algorithms
input sizes large enough to make only the order of growth of
the running time relevant