~/talk

Finger Trees Explained Anew, and Slightly Simplified (Functional Pearl)

Talkat Haskell 2020 · 2020-08-27..08-28· [haskell, functional-programming]
links:none on file
slides:none on file

Stepwise refinement shows why Hinze and Paterson’s Finger Tree needs one-or-three-element buffers and nodes of two-or-three values, claims a simplified implementation, and proves worst‑case logarithmic time for cons/tail/append and amortized constant time for head/tail/cons/last/insert. The construction uses implicit recursive slowdown (pairing elements into a faster recursive layer), small helper functions like toTuples and glue, QuickCheck for correctness, and one concrete simplification: it adds a three-element case to the fingers to obtain the amortized bounds.

AI-written summary · about

  1. 0:00Start
  2. 1:46Amortized Complexity
  3. 17:08Base Cases
  4. 18:37Table of Complexities
~/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.