Jeep problem

FreeBrainteaserHardJane StreetSIGFive Rings

An oil tanker must transport 30003000 gallons of oil from Port A to Port B, which are 10001000 miles apart. The tanker loses 11 gallon per mile traveled due to constant spillage, and it can carry at most 10001000 gallons at any time. It may deposit oil at any number of intermediate storage ports along the route and later retrieve it. Under an optimal travel plan (choosing where to place storage ports and how to carry the oil), what is the maximum number of gallons that can be delivered to Port B? Round to the nearest gallon.

Solution

This is a classic "jeep problem" (desert crossing) variant. The tanker starts with 30003000 gallons at Port A, must travel 10001000 miles to Port B, loses 11 gallon per mile, and has capacity 10001000 gallons. The goal is to maximize delivered oil.

Key insight: The optimal strategy uses intermediate depots and shuttles oil forward in stages, each stage moving a certain amount of oil a certain distance while consuming fuel for round trips. The number of trips decreases by one each stage.

Let D=1000D = 1000 miles, capacity C=1000C = 1000 gallons, initial fuel F=3000F = 3000 gallons. Consumption is 11 gallon per mile.

General principle: To move nn full loads (i.e., n×1000n \times 1000 gallons) a distance dd, you make nn forward trips and n1n-1 return trips, consuming (2n1)d(2n-1)d gallons. The amount delivered forward is nC(2n1)dnC - (2n-1)d.

Stage 1: Start with 30003000 gallons at A, i.e., n1=3n_1 = 3 loads. Move forward distance d1d_1 such that after shuttling we have exactly n2=2n_2 = 2 loads (20002000 gallons) at the next depot. Fuel consumed: (231)d1=5d1(2\cdot3-1)d_1 = 5d_1. Remaining: 30005d1=2000d1=2003000 - 5d_1 = 2000 \Rightarrow d_1 = 200 miles.

Stage 2: At mile 200200, we have 20002000 gallons (n2=2n_2 = 2 loads). Move forward distance d2d_2 to reduce to 11 load (10001000 gallons). Fuel consumed: (221)d2=3d2(2\cdot2-1)d_2 = 3d_2. Remaining: 20003d2=1000d2=333132000 - 3d_2 = 1000 \Rightarrow d_2 = 333\frac{1}{3} miles.

Stage 3: At mile 200+33313=53313200 + 333\frac{1}{3} = 533\frac{1}{3}, we have 10001000 gallons (n3=1n_3 = 1 load). Drive directly to B, which is 100053313=466231000 - 533\frac{1}{3} = 466\frac{2}{3} miles away. Fuel consumed: 46623466\frac{2}{3} gallons. Delivered: 100046623=533131000 - 466\frac{2}{3} = 533\frac{1}{3} gallons.

Thus the maximum deliverable is 53313533\frac{1}{3} gallons, which rounds to 533533 gallons.

Verification: Total fuel consumed = 5×200+3×33313+1×46623=1000+1000+46623=2466235\times200 + 3\times333\frac{1}{3} + 1\times466\frac{2}{3} = 1000 + 1000 + 466\frac{2}{3} = 2466\frac{2}{3} gallons, matching 3000533133000 - 533\frac{1}{3}. Total distance traveled = same sum, confirming consumption rate.

Related problems