Egg Dropping Puzzle — Floors Coverable per Trial

g[e][t] = floors solvable with e eggs and t trials = g[e-1][t-1] + g[e][t-1] + 1. The answer is the first t where g[k][t] ≥ n. Watch the table grow one trial column at a time.

trial 0

g[e][t] table — floors coverable

g[e][t] = g[e−1][t−1] + g[e][t−1] + 1
egg row k current trial t cell being filled reached n (answer)

Result

eggs k
2
floors n
100
g[k][t] so far
0
min trials
Optimal first-drop spine appears once g[k][t] reaches n.
Press Step to begin. Each trial adds a new column: g[e][t] = (floors below a break) + (floors above a survive) + (the drop itself).

How to read this animation

Try it: set eggs = 1 to see the linear scan (g[1][t] = t, so the answer equals n); set eggs = 7, floors = 100 to watch the table reach 100 in just 7 trials — the binary-search regime where extra eggs stop helping.
Self-contained visualization. This shows the trials reformulation (the dual): instead of asking "fewest trials for n floors", it asks "most floors coverable in t trials". For 2 eggs and 100 floors the answer is 14 (since 13·14/2 = 91 < 100 ≤ 105 = 14·15/2). See junior.md, middle.md, and professional.md for the proofs.

The minimax recurrence dp[e][f] = 1 + minₓ max(dp[e-1][x-1], dp[e][f-x]) and this dual g[e][t] = g[e-1][t-1] + g[e][t-1] + 1 compute the same answer from opposite axes: the recurrence indexes by floors and is O(k·n²); the dual indexes by trials and is O(k·log n) because the number of trials is tiny. The closed form g[e][t] = Σ C(t, i) for i = 1..e gives the same values, and for e = 2 it is the triangular number t(t+1)/2.