Lab · c05.s02.L1
Growth race
A growth class names only the eventual winner, while the constant factor and the lower-order terms decide who leads at any size you will actually run.
Question: What does the growth notation hide?
Frame 1 of 14: Both at the start of the raceThe chart is log–log, so a rung's class is a slope and a multiplier is a vertical shift. The faint lines are the five rungs at one operation per step; the two bright curves are the contenders. At n = 1 the constant already shows: A costs 1 step and B costs 1,000.
Both at the start of the race. The chart is log–log, so a rung's class is a slope and a multiplier is a vertical shift. The faint lines are the five rungs at one operation per step; the two bright curves are the contenders. At n = 1 the constant already shows: A costs 1 step and B costs 1,000.
Keyboard: Space plays or pauses, Left and Right step, Home goes to the first frame, End goes to the last frame.
Text description of this lab
A log–log chart races two cost curves as n grows from 1 to 1,000,000. The quadratic curve at one step per operation starts below the linearithmic curve at 1,000 steps per operation, then overtakes it at 14,860. A marker sweeps right; the panel names the leader and the gap in orders of magnitude. Raising the multiplier to 10,000 moves the crossing to 184,970 without changing the winner.
Return to the section that hosts this lab
Caption status: schematic. Every lab declares one of published, re-simulated, schematic, synthetic or interpolated.