Nepedia
Back to Discover
Independent Reader
🔢

Vertex cover

math Maturity 11-13 Next article →

Imagine a group of dots. Lines connect these dots together.

Vertex-cover
Vertex-cover

In math, we call these dots vertices. The lines are called edges. A vertex cover is a set of dots. This set must touch every single line in the group.

Vertex-cover
Vertex-cover

If you pick a dot, you cover all lines touching it.

Finding the smallest vertex cover is a hard puzzle. This is called the minimum vertex cover problem. It is very difficult for computers to solve perfectly. This is because it is an NP-complete problem. That means there is no fast way to find the best answer for every graph.

Vertex-cover
Vertex-cover

We can use a simple way to get a good guess. This is called an approximation. One way is to pick both dots on a line. Then, you remove all lines touching those dots. You keep doing this until no lines are left. This method gives a cover that is at most twice the smallest size.

Vertex-cover-from-maximal-matching
Vertex-cover-from-maximal-matching

Some special graphs, like trees, are easier to solve. For those, we can find the best answer quickly.

175 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (4)
File:Couverture de sommets.svg
Couverture de sommets.svg
File:Vertex-cover.svg
Vertex-cover.svg
File:Minimum-vertex-cover.svg
Minimum-vertex-cover.svg
File:Vertex-cover-from-maximal-matching.svg
Vertex-cover-from-maximal-matching.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.