Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 1.46 KB

File metadata and controls

19 lines (13 loc) · 1.46 KB

Sorting & Algorithmic Bounds

  • $$\log{(N!)}$$ asymptotically same function as $$N \log{N}$$
  • Decision tree not complete binary tree → round up to next integer tree height/depth
  • Tree needs at least $$\lceil \log{(N!)} \rceil$$ levels to have $$N!$$ leaves
  • Sorting = specific solution to general problem of puppy, cat, dog → any lower bound on difficulty of puppy, cat, dog must ALSO apply to sorting
  • Sorting via sequential (non-parallel) comparisons → can't do better than $$\Theta(N \log{N})$$
  • Recording random stuff = expensive → usually rely on pseudorandomness instead (overflow via repeated multiplication on starting seed value)