~/talk

Essential Big O for JavaScript Developers

Talkat MountainWest JavaScript 2015 · 2015-03-27..04-01· [javascript]
slides:none on file

Claims that Big O ignores hardware and JIT and instead measures steps versus input size and demonstrates that with concrete examples: a string search runs linear in the worst case, binary search runs logarithmic, a cached lookup yields amortized constant time. Shows selection sort as quadratic, explains exponential blowup with traveling salesman, and demonstrates array append/remove costs in JavaScript including that JS arrays are objects so some operations are not true contiguous-array constant time.

AI-written summary · about

  1. 0:00Intro
  2. 1:05Why do we talk about Big O?
  3. 1:56How do we talk about speed?
  4. 2:42The pragmatic (and correct) answers
  5. 3:54How fast is it?
  6. 4:22Can we do a little better?
  7. 4:40Same complexity class: linear
  8. 5:14Can we change the complexity?
  9. 6:40Logarithmic complexity
  10. 7:34Silly Assumptions
  11. 8:04Constant complexity
  12. 8:49Other O(1) Operations
  13. 9:40The most common complexities
  14. 10:32Quadratic complexity
  15. 11:04Quadratic Example: Selection Sort
  16. 12:36Exponential Complexity
  17. 13:55Combining Complexities
  18. 15:21Amortization
  19. 18:09Other Links
  20. 18:31Quiz 2: Guess the complexity
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.