Salvaging a damaged cable

Let's say we have a cable of unit length, which is damaged at one unknown point, the location of which is uniformly distributed. You are allowed to cut the cable at any point, and after a cut, you'd know which piece is damaged and which is not. You can do this as many times as you want, and you want to maximize the expected length of the biggest undamaged piece after all the cutting. What is the best you can do? The strategy need not be deterministic.

I currently have a lower bound of $\frac12$ and upper bound of $\frac34$. The lower bound comes from just cutting the cable in half once.

For the upper bound, notice that if the fault is at $\frac12 \pm x$, then you cannot do better than $\frac12 +x$. So taking the expected value, $$ \int_0^{\frac12} \left(\frac12+x\right)2 dx = \frac34$$

I initially thought that an optimal strategy would have to be applied recursively to the damaged piece, but now I'm no longer convinced of this. If you've already obtained an undamaged piece of length $l$, then there is no point in cutting a damaged piece into two pieces of length $\leq l$.

Any reference to an existing treatment is also welcome.


An "algorithm" (though it might possibly run indefinitely, depending on our strategy) necessarily goes like this

Step 0. Let $k\leftarrow1$.

Step 1. [Now we have $k$ parts of cable, i.e. subintervals of $[0,1]$, exactly one of which is defective] If the defective part is strictly longer than all good parts, go to step 2. Otherwise there exists some good part at least as long as the defective part and further subdivisions cannot improve the result; pick a longest good part as result and terminate.

Step 2. [Now the defective part $[a,b]$ is strictly longer than all other parts] Pick a suitable point of cutting the defective part, i.e. pick some $x_k\in(a,b)$, thus replacing $[a,b]$ with $[a,x_k]$ and $[x_k,b]$. [The probability that $x_k$ equals the point of defect is zero and can be ignored] Let $k\leftarrow k+1$ and go to step 1.

Thus a strategy consists of a sequence of cutting points $x_i\in[0,1]$ for all $i\in N$ with $N=\mathbb N$ or $N=\{1,2,\ldots n\}$ (i.e. the sequence might be finite or infinte). We may assume wlog. that $N$ is not unnecessary big, i.e. if step 2 will never be entered with some value $k$, no matter where the actual defect is in the cable, we can as well assume that $N\subseteq\{1,\ldots,k-1\}$. In other words, if $k\in N$, then there exists a point $x\in[0,1]$ such that a defect at $x$ will make the algorithm above make use of the cutting point $x_k$.

By symmetry, we may assume in step 2 that $$\tag1x_k-a\ge b-x_k,$$ i.e. the new left part is always at least as long as the new right part. Then we can show by induction, that the interval $[a,b]$ in step 2 is always $[0,x_{k-1}]$ (formally letting $x_0=1$). In fact this is trivially true when $k=1$. If the claim is true for some $k$, then in step 2 interval $[0,x_{k-1}]$ is divided into $[0,x_k]$ and $[x_k,x_{k-1}]$. By $(1)$ the interval $[0,x_k]$ is at least as long as $[x_k,x_{k-1}]$ (i.e. after $k\leftarrow k+1$, interval $[0,x_{k-1}]$ is at least as long as $[x_{k-1},x_{k-2}]$). Thus in step 1, we either terminate or continue with step 2 and $[a,b]=[0,x_{k-1}]$ as was to be shown.

In other words, the sequence $(x_i)_{i\in N}$ is strictly decreasing and more precisely $$\tag2 \frac {x_{k-1}}2\le x_k<x_{k-1}\qquad\text{for all }k\in N.$$ As the sequence is also bounded from below, $L:=\max\{\,x_{k-1}-x_{k}\mid k\in N\,\}$ exists. Note that we may assume $x_k\ge L$ for all $k\in N$ as otherwise by $(2)$ neither of the pieces $[0,x_k]$ or $[x_k,x_{k-1}]$ can be an improvement over $L$.

Let $f(x)$ denote the length of longest good cable obtained by employing the strategy $(x_n)_{n\in N}$ if the actual point of defect is at $x\in[0,1]$. If $x_k< x< x_{k-1}$ for some $k\in N$, then we will stop after performing the cut at $x_k$ and the longest part will be $[0,x_k]$, so $f(x)=x_k$ for $x\in(x_k,x_{k-1})$. If $x<x_k$ for all $k\in N$, then $f(x)=L$. The expected length is simply $\int_0^1f(x)\,\mathrm dx$. The graph of $f$ is bounded from above by the diagonal, except for the triangle on the lower left with vertices $(0,0) (0,L), (L,L)$. On the other hand, a triangle of the same size is "missing" over an interval $[x_k,x_{k-1}]$ with $x_{k-1}-x_k=L$. Proof without words of <span class=$(3)$ for an example function $f$" />

We conclude that $$\tag3 \int_0^1f(x)\,\mathrm dx\le \int_0^1x\,\mathrm dx=\frac12.$$

The estimate $(3)$ also applies to mixed strategies (i.e. a strategy $(x_n)_{n\in N}$ is picked randomly according to some distribution). On the other hand, inequality $(3)$ is strict: A strategy that does indeed lead to $\frac12$ as expected value is given by $N=\{1\}$, $x_1=\frac12$ (as already noted by the OP).


A strategy consists of snipping off pieces of length $\ell_1,\ell_2,\ldots$, subject to the condition $\ell_1+\ell_2+\cdots = 1-M$, where $M=\max\{\ell_1,\ell_2,\ldots\}$, and stopping if and when the cut-off piece is found to contain the bad spot. The probability that the bad spot lies in the $i$th snippet is $\ell_i$, and the probability it lies in none of them is $M$. Therefore the expected longest piece when the process ends is

$$\ell_1(\ell_2+\ell_3+\cdots+M)+\ell_2(\ell_3+\ell_4+\cdots+M)+\cdots+M^2$$

It's easy to see that this sum is unchanged if any $\ell_i$ and $\ell_{i+1}$ are interchanged:

$$\begin{align} &\cdots+\ell_{i-1}(\ell_i+\ell_{i+1}+\ell_{i+2}+\cdots+M)+\ell_i(\ell_{i+1}+\ell_{i+2}+\cdots+M)+\ell_{i+1}(\ell_{i+2}+\cdots+M)+\cdots\\ &=+\ell_{i-1}(\ell_{i+1}+\ell_i+\ell_{i+2}+\cdots+M)+\ell_{i+1}(\ell_i+\ell_{i+2}+\cdots+M)+\ell_i(\ell_{i+2}+\cdots+M)+\cdots\\ \end{align}$$

Consequently, any strategy is equivalent to one in which $\ell_1\ge\ell_2\ge\ell_3\ge\cdots$, for which $M=\ell_1$. But this leaves us in the case that kaine earlier analyzed: As soon as you are guaranteed a piece of length $M$ and plan to make all subsequent cuts no longer than $M$, you can only improve the final result by making the subsequent cuts infinitesimally short. So the best you can get, as kaine showed, is an expected value of $1/2$.