Mathematical Approach to Measuring Running Times Flashcards

1
Q

Is the cost of basic operations low or high

A

low

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

formula for total running time exact mathematical models

A

sum of cost x frequency of all operations

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

example of sum for a precise running time

A

T(N) = (number of iterationscost of that operation) + 9number of iterationscost of that operation)

eg. T(N) = (2cost of addition) + (8cost of subtraction)

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

calculations are simplified using another type of modeling. Waht is it called

A

cost modelling

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

disadvantages of precise mathematical calculations

A

running times change from computer to computer

tedious

need to know the exact cost of individual operations

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

three types of cost models

A

all operations take a constant cost of 1

focus on highest order terms only

only count some operations

combination

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

what to be careful of when only considering highest order terms in cost modelling

A

Make sure that the operations you are not counting add up to a
factor lower than the operations you do count

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

when you have simplified a cost model how do you indicate it has been simplified

A

tilde notation ~ before

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