Imagine a map of cities connected by roads. You want to assign a patrol to some roads so that every city has at least one patrolled road leading out of it. Use as few patrols as possible. That is the minimum edge cover problem: choose a set of edges so every vertex is touched by at least one chosen edge, using the fewest edges you can.
It sounds almost identical to a famous hard problem. Vertex cover asks the mirror question: pick the fewest vertices so that every edge is touched. Swap two words — "edge" for "vertex" — and you seem to get the same kind of puzzle.
But the two problems could not be more different in difficulty. Vertex cover is NP-hard: nobody knows a fast algorithm, and finding one would settle P vs NP. Edge cover, its twin, is easy — solvable quickly, every time. This article is about that razor-thin line and why it falls exactly where it does.
Comments
Loading comments...