How this site is made

The figure library — page 3

Every picture here is generated from code at build time. This page lists the generator families, how many essays call each one, and what each draws with no arguments at all. Page 3 of 5, many-documents to savings-ladder.
① prose12,33512① code13,1508① revisions7,77410② essays12,33582② captions2302,214② history12,96314documentscharacters in a document① the first freeze · ② the secondmedian marked

many-documents

6 essays
characters examinedNaive scan20,8621.04 per text characterKnuth–Morris–Pratt20,8331.04 per text characterBoyer–Moore–Horspool2,9850.15 per text characterRabin–Karp80.00 per text characterone unit = one character comparison2607.8× between best and worst

match-cost

4 essays
11010010⁴patterns in the setcharactersAho-Corasick: 20,000, alwayscharacters examinedpositions ever readpatterns of 8 over four symbols · answers identicalcrossing at 8 patterns

matcher-set

2 essays
one read per text character24816326495alphabet size, m = 8characters read ÷ text length0.01.12.2Naive scanKnuth–Morris–PrattBoyer–Moore–Horspoolone unit = one character comparison · n = 20,000, m = 8Horspool's best here: 0.132 per character

matcher-sweep

2 essays
one summary, k = 32769one summary, k = 25608 summaries of 32, merged536worst error over the top keys, in arrivalsconcentration 1.00 — the mean share of a heavy key held by one shard8 shards · hashed · balancedmerge 536 against matched 0

merge-against-matched

4 essays
round9670 Space-Saving · 967 Misra-Gries · load 6hashed606509 Space-Saving · 97 Misra-Gries · load 55blocked9670 Space-Saving · 967 Misra-Gries · load 6the sum of the shard floors, in arrivalsstationary Zipf · 8 shards · k = 32one bill, two ways of splitting it

merge-bill

4 essays
HyperLogLog1024/1024 identicalCount-Min256/256 identicalbottom-k128/128 identicalMisra-Gries20/36 identicalfraction of the state that merged to the identical value→ 1,974→ 10,291→ 2,322→ 8,766two streams of 30,000 · 2,007 distinct keys in the union3 of 4 merge exactly

merge-check

2 essays
Space-Saving, predicted537Space-Saving, measured536Misra-Gries, predicted154Misra-Gries, measured152worst error over the top keys, in arrivalsthe shard floors sum to 606 — the whole bill, before it is split8 shards · hashed · k = 32predicted from 8 histograms

merge-damage-predicted

4 essays
quantilepromisedone summarymerge of 8q = 0.5100.01418q = 0.920.0183q = 0.992.005overq = 0.9990.214overrank error, in items out of 20,000ε = 0.01 · high-biased · 8 shards, round2 of 4 quantiles over the single summary's promise

merge-quantiles

6 essays
keytruthfoldedtreereversed16,3626,8666,8696,86923,0743,5783,5813,58131,9632,4672,4702,47041,3731,9021,9071,95451,0981,6021,6051,60569351,5121,4711,46377691,2801,2851,30686561,1601,1631,16395661,1001,1011,095105101,0511,0361,029shaded rows are keys whose count depends on the order aloneSpace-Saving, k = 32 · 8 shards · hashed37 keys move with the order

merge-shape

5 essays
stack depth, peak 7runs pushed, in order04,096128 runs127 mergespeak 7four-entry ruleelements pending, by run

merge-stack

2 essays
Count-Min8,192 bitsCount-Sketch8,192 bitstug-of-war, F22,560 bitsGreenwald–Khanna0 bitsexponential histogram0 bitscash register+strict turnstile±general turnstile± may go negativesliding window+ expiresdeclareddeclared93% underdeclareddeclareddeclareddeclareddeclareddeclareddeclareddeclared40,000 updates · deletion rate 0.5 · every count exact1,758 of 1,895 under

model-check

4 essays
H0H1H2H3H4model order — symbols of contextbits per symbol0.02.14.2Uniform over 8 symbolsOrder-1 Markov chainWords from a fixed vocabulary32,768 symbols · at H4 the deepest source has 709 contexts, 0 seen oncemodels: orders 0, 1, 2, 3, 42.06 bits found by one symbol of context

model-order

5 essays
1010010B (elements per block)block transfers per searchtuned for B = 64Sorted arrayB-tree tuned for B = 64van Emde Boas — told nothingM = 16,384, B as drawnone layout, 7 block sizes, no parameter

oblivious-across-b

1 essay
10³10⁴10⁵10⁶passes over the datapeak bits of stateone pass, exact: 1,048,576 bitsradix, uniformsample, uniformradix, paretosample, paretoevery point exact · 32,768 values320 bits at best

pass-state

3 essays
text position iphi(i)anchor: a run start25 of thema text that repeats itself · 4 copies of 32r = 26 · pieces 24

phi-locate

3 essays
1,00010,00010⁴bits12481632characters in the collection · copies aboveFM-index, compressedr-indexphrase indexEnglish-like · divergence 0z 156 · r 233

phrase-index

7 essays
is·holds·no·the·the·of·of·rather·count·class·that·is·algorithm·o1111111211111151141131111111211122213111111212phrase lengths below each block · a shaded block is a literalEnglish-like · 64 charactersz = 46 · 17 literals

phrase-parse

7 essays
"t than"8 found · set 8 · frontier 4"of her"7 found · set 7 · frontier 4" that "16 found · set 16 · frontier 11" every"31 found · set 31 · frontier 19"the ev"8 found · set 8 · frontier 4"o of c"8 found · set 8 · frontier 5" than "15 found · set 15 · frontier 9"ime ra"7 found · set 7 · frontier 4the visited set, pale; the sweep's frontier, dark17,715 phrases examined either way1.67x on what is held

phrase-sweep

6 essays
first-element pivot130,816 on sortedmedian of three5088 meanrandom pivot4937 meanblue bar: range over 400 random inputs · marker: the already-sorted inputn = 512a bad case that cannot be chosen is a different kind of bad case

pivot-rules

4 essays
least recently usedthe offline optimumA loop over 7 blocks35 accesses35113.18×Random over 7 blocks35 accesses971.29×A straight sweep35 accesses35351.00×B = 8, M = 48 (M/B = 6)3.2× on the loop

policy-gap

1 essay
shard 1 · 120 → 119shard 2 · 121 → 120shard 3 · 120 → 120shard 4 · 121 → 120shard 5 · 119 → 118shard 6 · 124 → 123shard 7 · 121 → 120shard 8 · 122 → 121floor, in arrivalsnaive: tail ÷ kfixed pointmeasuredstationary Zipf · round · k = 321.006× the measured floor

predicted-floor

7 essays
1234560.000.250.500.75formulameasuredload factor αprobes per insertion8,192 slots, mean of 8 fills, seeds stated in lib/structures.jstwo routes agree to 2.3%

probe-count

8 essays
101001,00010⁴10⁵characters of pattern in the setcharacters examinedno shift (step one)bad character onlythe 1979 shift functionsboth rules, exactlyfour symbols · patterns of 10n = 20,000

published-shift

8 essays
k = 0k = 1k = 2k = 3k = 4k = 5q = 2232119171513q = 322191613107q = 4211713951q = 520151050-5q = 6191371-5-11q = 81791-7-15-23a shaded cell is a threshold of zero or less: every window proposedt = m + 1 − q(k+1) · m = 247 collapsed cells

qgram-filter

4 essays
1,00010,000248163264ε = 0.02, α = 0.58ε = 0.01, α = 0.56ε = 0.005, α = 0.54tuples keptshards mergedlog-normal, σ = 1.2 — a latency distribution · 20,000 valuesα 0.58 / 0.56 / 0.54 · worst residual 2.0%

quantile-tuples

4 essays
10,000100characters of textprimitive operationssuffix array + textcounter array per symbolFM-index, plainFM-index, compressedevery query run with the text withheldEnglish-like

query-cost

6 essays
mean 494599th 60304,2825,4136,543comparisonsruns600 independent random inputs, n = 512worst run 1.32× the mean

quicksort-spread

6 essays
10³10⁴10³10⁴10⁵nrandom bitsskip list, one build — nreservoir, Algorithm R — n log nreservoir, Algorithm L — log nn from 256 to 16,384bits charged including rejections

randomness-consumed

4 essays
answered 2,1700%25%50%75%100%0.36420.52,170value, logarithmicfraction of the stream at or belowrank ±2%value 187–2,170answered 581.7% out20,000 values · log-normal, σ = 1.2 — a latency distribution · Greenwald–Khanna, ε = 0.02rank 1.00% · value 581.7%

rank-against-value

7 essays
even1.00× / 1.00×Poisson1.16× / 1.21×bursty1.00× / 1.14×drifting26.14× / 17.69×upper: W arrivals, duration varies · lower: D milliseconds, count varies4,096 arrivals in 8 blocks · 100 Hzmatched at the block, not at the window

rate-sizing

2 essays
twelve essaysrepeats a vocabulary1.26xeight source modulesrepeats a form3.12xten revisions of one filerepeats almost everything3.76xgenerated, matchedone length by construction1.00xdocument length · the ratio of longest to shortest at the right24,576 characters a part3.76x at the widest

real-corpus

5 essays
bcababca6388328188632571322513518753111111one unit = one invocation of the recurrence481 calls, 25 distinct subproblems

recursion-dag

3 essays
one column per clause; filled means this half fails itvars 1..3vars 4..6#001110000#111110001#200001000#310001001#401010110#511010011#600001110#710001011#001100100#100100100#200001101#300010101#401100010#510100000#600001010#710010000rows #0 and #2 fill no clause in commonfirst 8 of 8 rows each side · 8 clausessatisfiable

reduction

1 essay
110100k, the operators after the alternationstatesits DFA: 512its NFA: 30a literal's DFA: 11alphabet ab2^(k+1), exactly

regex-machine

6 essays
1,00010,00010³10⁴bits · runs12481632characters in the collection · copies aboven·H₃, bitsr, runs in thetransformEnglish-like · base 512 · divergence 0n·H₃ x15.8 · r x1.00

repeat-size

4 essays
k/n = 0.1250.0810.1250.169position in the streamshare of runs in which it was sampledAlgorithm R, n = 32, k = 4, 40,000 runsworst departure 3.3% · noise 1.4%

reservoir-frequency

1 essay
0102030401e+42e+43e+4values in the arrayreads a querythe segment treesuccinct80 queries a size2.49x apart

rmq-work

4 essays
all 4,096 texts of 12 characters over 2 symbols2 runs20.0%3 runs250.6%4 runs1273.1%5 runs3969.7%6 runs73818.0%7 runs99024.2%8 runs91622.4%9 runs55413.5%10 runs2566.3%11 runs771.9%12 runs130.3%13 runs20.0%2 symbols · exhaustive4,096 texts

run-floor

2 essays
1,00010,00010⁴10⁵characters in the collectionbitsFM-index, plainFM-index, compressedrun-length indexsample one in 64 · divergence 0 · r = 22411,900 bits at 32 copies

run-index

4 essays
1,00010,00010³10⁴bits12481632characters in the collection · copies aboveregular, one in 32run boundaries, 2rEnglish-like · divergence 0r = 233 at n = 16,385

run-sampling

5 essays
11010010³10⁴10⁵10⁶10⁷natural runs r in the inputcomparisonsn / minrun = 256TimsortMerge sortInsertionn + n log₂ rn = 8,192, runs built exactlycomparisons, counted exactly

runs-and-cost

2 essays
a loop over the alphabet1,478,400the compound walk, inside the loop134,40011xone descent per node18,91678x6 patterns · 1 error · sigma 2155.8% of the extensions were dead

savings-ladder

6 essays