~/talk

Beyond the language. An introduction to algorithms.

Talkat RubyDay 2015 · on Friday, 2015-11-13· [ruby]
links:none on file
slides:none on file

Compares concrete algorithms for finding a heavier poisoned doughnut using a scale as computation model then measures costs: checking one-by-one is O(n), pairwise still O(n) (half the comparisons), divide-in-two is O(log n) and divide-in-three is log base 3 so faster — with 10,000 items the divide-by-2 strategy takes ~13 minutes versus ~3.5 days for the naive pairwise and ~6 days for plain linear. Shows Ruby VM hash internals: 16-bucket array, max bucket density = 5, and a benchmark where forcing all keys to hash to 3 causes lookups to degrade from near-constant to linear — the experiment works.

AI-written summary · about

  1. 0:00Introduction to algorithms
  2. 2:31About the speaker
  3. 3:14What is an algorithm
  4. 5:44The poisoned beignet problem
  5. 7:18Measuring algorithm efficiency
  6. 10:09Big O notation explained
  7. 14:34Analyzing the first algorithm
  8. 15:40Pairwise comparison approach
  9. 17:05Divide and conquer method
  10. 19:14Three-group splitting strategy
  11. 21:44Language vs algorithm performance
  12. 23:33Ruby hash tables deep dive
  13. 31:25Why the last key performs well
  14. 31:45Do you need algorithms to program?
~/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.