data structures 1 Flashcards

1
Q

what is a data structure?

A

Efficient mechanism to store data and provide access operations

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

pros of in memory vs on disk

A

memory - faster

on disk - larger storage, non volatile

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

empirical vs asymptotic analysis

A

emp - measuring resource usage of algorithm experimentally

asymp - determining bounds on resources needed as size of data increases

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

best worst average case meaning?

A

best - lowest possible time
worst - highest possible time
ave - average of time cross all values for n

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

what is a dominant term ?

A

term that increases the fasted in a function eg in x^2+x+3…X^2 is the dominant term

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

Asymptotic function definition - what does big O notation entail/mean

A

f(x) = O(g(x))

  • fx is order gx
  • big O notation
  • fx is bounded by multiple of gx for large x values
  • |f(x)| <= M|g(x)| for all x>x0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

explain time-space trade-off

A

using additional space to make operations faster - e.g precomputing data
using slower operations to reduce space requirements

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

explain time-time tradeoff

A

insertion time vs search time - extra time will be spent on one operation…which one is more valuable to the current person/role player?

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

things to relearn at the end of this chapter

A

the definition of asymptotic analysis - what does M stand for?

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