Chapter 43
Can You Tell When The Snow Started?
The Riddler for April 3, 2020. The Express is a social-distancing geometry problem: two walkers swap places on a wide path while staying six feet apart. The Classic is the famous snowplow problem, where the plow’s speed falls as the snow deepens.
Riddler Express
You and someone walking toward you are each in the middle of a wide sidewalk, feet apart. You pass while always staying at least feet apart, and you each end up back in the middle, at the other’s starting spot. The other person mirrors your path. What is the shortest total distance you could walk? Extra credit: what if the other person refuses to leave the centre line, so all the dodging is up to you?
The Riddler, FiveThirtyEight, April 3, 2020(original post)
Solution
Because the other person mirrors you, their position is always the point-reflection of yours through the midpoint of the path. So the distance between you two is exactly twice your distance from , and staying feet apart means staying at least feet from at every moment. You start feet from and must reach the other’s start, the antipodal point also feet from .
The problem reduces to the shortest path between two points feet from a centre, on opposite sides, that avoids the forbidden disk of radius around . That path leaves your start along a tangent to the disk, hugs the circle for a short arc, then leaves along a tangent to the destination. Each tangent has length (the leg of a right triangle with hypotenuse and one side ), and the radius to each tangent point makes angle with the line to . The two endpoints are apart, so the arc spans , of length . Adding the two tangents and the arc,
For the extra credit the other person walks the straight centre line while you do all the dodging, so the symmetry is gone: you must skirt a -foot exclusion disk that moves along the path as they advance. The shortest route is again two tangents and a connecting curve, but the curve now wraps a moving circle, and finding the tangent points reduces to a transcendental equation best solved numerically. The shortest distance you must walk is about feet, roughly four feet more than when your counterpart shares the dodging.
The computation
Encode the geometry of the main problem from the distance and radius alone: the shortest path is two tangents of length plus the arc of the radius- circle between the tangent points.
import numpy as np
D, r = 6.0, 3.0 # endpoint distance, exclusion radius
tangent = np.sqrt(D**2 - r**2) # straight run out to each tangent point
half = np.degrees(np.arccos(r / D)) # 60 deg: radius-angle at each tangent point
arc = np.radians(180 - 2*half) * r # endpoints are 180 deg apart
print(2*tangent + arc, 6*np.sqrt(3) + np.pi) # 13.5339 13.5339
The tangent-arc-tangent length computed from the geometry is feet, as boxed.
Riddler Classic
One morning it starts snowing at a constant rate. At noon a snowplow begins to clear the road, and its speed is inversely proportional to the depth of the snow: twice as much snow means half the speed. In its first hour the plow travels 2 miles; in its second hour, only 1 mile. When did it start snowing?
The Riddler, FiveThirtyEight, April 3, 2020(original post)
Solution
Measure time from the moment the snow began. Snow falls at a constant rate, so its depth is proportional to , and the plow’s speed (inversely proportional to depth) is for some constant . Let be how long the snow had already fallen when the plow set out at noon. The distances in the two hours are Dividing the first by the second removes and gives , that is, The positive root is So the snow began about minutes before noon, at roughly the golden ratio making a quiet appearance in the melting snow.
The computation
Solve the cubic from the ratio of the two integrals and turn the result into a clock time.
import sympy as sp
ts = sp.symbols('ts', positive=True)
root = sp.solve((ts + 1)**3 - ts*(ts + 2)**2, ts)[0]
print(root, float(root)) # (sqrt(5)-1)/2 ~ 0.618 hours
minutes = float(root) * 60
print(f"start at 12:00 minus {minutes:.1f} min") # ~37.1 min before noon