Online, at the corner

An online decision is made now, and a future it cannot see decides what it costs. The offline optimum sees the whole future: it stands in the place of the dual hemispherical vantage (DHV), the whole held at once. When the decision weighs what it has already spent against what it is about to commit, the worst future charges for the larger of the two, so the worst case depends only on their ratio, is the same at r and 1/r, and is least at the corner, r = 1. When the unknown is a scale, the turn points are levels, and one scale must be supplied: the guarantee is an amount inside it and a ratio past it.

Two-ray search

The two rays on the read's lay of distance: in proportion inside the first leg d₀ (the circle round the start), 1 + ln(x/d₀) past it, so every turn point sits ln b further out, one level a turn. The path runs down the page, leg by leg, until it meets the target.

The ratio for every target on the lay, right (teal) and left (violet). Inside d₀ behind the start it climbs without bound: the extra walking there is exactly 2d₀, an amount. Past d₀ it stays under the dashed constant: a ratio.

The worst ratio against the levels of r, the distance walked before a leg over the leg: 5 + 2(r + 1/r), the same at r and 1/r, 9 at the corner r = 1, b = 2.

Related: a dynamic array, H is a zoom, what is H?, counting from zero. All the demos.