data structures 1 Flashcards
what is a data structure?
Efficient mechanism to store data and provide access operations
pros of in memory vs on disk
memory - faster
on disk - larger storage, non volatile
empirical vs asymptotic analysis
emp - measuring resource usage of algorithm experimentally
asymp - determining bounds on resources needed as size of data increases
best worst average case meaning?
best - lowest possible time
worst - highest possible time
ave - average of time cross all values for n
what is a dominant term ?
term that increases the fasted in a function eg in x^2+x+3…X^2 is the dominant term
Asymptotic function definition - what does big O notation entail/mean
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
explain time-space trade-off
using additional space to make operations faster - e.g precomputing data
using slower operations to reduce space requirements
explain time-time tradeoff
insertion time vs search time - extra time will be spent on one operation…which one is more valuable to the current person/role player?
things to relearn at the end of this chapter
the definition of asymptotic analysis - what does M stand for?