Picture a party as a graph: each person is a dot, and a line joins two people who know each other. Two natural questions pop out. What's the largest group where everyone knows everyone? â that's a clique. And what's the largest group of complete strangers, no two of whom know each other? â that's an independent set.
They're mirror images. A clique in a graph is exactly an independent set in its complement (flip every connection to a non-connection and vice versa). And both connect to a third problem from this site: the nodes outside a maximum independent set form a minimum vertex cover. Three problems, one underlying structure.
For a small party you can hunt by eye. But the only obvious method â check every possible subset of people â runs into subsets. And as we'll see, these problems aren't just hard to solve exactly; they're famously hard to even approximate.
Comments
Loading comments...