Algorithm and Data Structure
note to remember algorithm
Time and Space Complexity
Definition: time and space complexity are significant factors reflecting the efficiency of an algorithm.
- Θ: the high bound and low bound of spending time =>
f(x)=Θ(g(x))
f(x)<=max(g(x)) and f(x)>=min(g(x))
- O: the high bound of spending time =>
f(x)<=max(g(x))
- Ω: the low bound of spending time =>
f(x)>=min(g(x))
- o: the hight bound of spending time but not equal with the limit of =>
f(x)<max(g(x))
- ω:the low bound of spending time but not equal with the limit of =>
f(x)>min(g(x))
continue……