Christofides Algorithm

Christofides Algorithm is a polynomial-time approximation method for the Metric Traveling Salesman Problem in combinatorics. It builds a tour from an MST, a perfect matching, and an Eulerian circuit, with a 1.5 guarantee.

Last updated July 2026

What is Christofides Algorithm?

Christofides Algorithm is a combinatorics method for finding a short tour in the metric Traveling Salesman Problem, where you want to visit every city once and return to the start. It does not promise the absolute best tour, but it gives a tour whose length is at most 1.5 times the optimal one.

The reason it shows up in graph theory is that the exact TSP is hard to solve as the number of vertices grows. Instead of searching every possible route, Christofides builds a solution by combining structures you already know from graphs: a minimum spanning tree, a perfect matching, and an Eulerian circuit.

First, you find a Minimum Spanning Tree (MST), which connects all vertices with the least total edge weight. That tree gives you a cheap backbone, but a tree is not a tour because it does not loop back and it may leave some vertices with odd degree. Christofides then looks at the odd-degree vertices in the MST and finds a minimum-weight perfect matching on them.

Once those matching edges are added to the tree, every vertex has even degree. That means the combined graph has an Eulerian circuit, so you can walk every edge exactly once. The last step is to shortcut repeated vertices to turn that walk into a Hamiltonian cycle, which is the TSP-style tour that visits each city once.

The metric condition matters a lot. It means the edge weights satisfy the triangle inequality, so skipping a repeated vertex does not make the tour longer. Without that property, the shortcut step could break the approximation guarantee. That is why Christofides is tied to Metric TSP rather than arbitrary weighted TSP.

A compact example helps. Suppose four towns form a weighted complete graph where nearby towns are cheaper to connect, and the distances behave like real map distances. Christofides might choose an MST that looks a little too tree-like, then pair the odd vertices so the graph becomes Eulerian. The final shortcut tour may not be the absolute shortest route, but it is guaranteed to stay within a predictable bound of the best one, which is exactly why the algorithm is so useful.

Why Christofides Algorithm matters in COMBINATORICS

Christofides Algorithm matters because it is one of the cleanest examples of how combinatorics turns a hard optimization problem into something you can actually work with. In a graph theory unit, it connects three ideas that often feel separate at first: spanning trees, matchings, and Eulerian vs. Hamiltonian walks.

It also shows the difference between exact and approximate thinking. For TSP, an exact answer can be too expensive to compute, but a bounded approximation is still useful when you need a route that is close to best. That kind of tradeoff shows up a lot in combinatorics and computer science, especially in routing, scheduling, and network design.

The algorithm is also a good example of why the triangle inequality changes the game. Once you know distances are metric, shortcutting repeated vertices is safe, and that little step is what turns an Eulerian circuit into a Hamiltonian cycle. If you miss that condition, the whole guarantee can fail.

When you see Christofides in class, it is usually there to illustrate a proof idea, not just a procedure. You are meant to notice how the structure of the graph controls the quality of the solution, and how one theorem can combine with another to produce a provable approximation.

Keep studying COMBINATORICS Unit 11

How Christofides Algorithm connects across the course

Metric TSP

Christofides is designed for the metric version of TSP, where edge weights satisfy the triangle inequality. That condition is what makes the shortcut step work without increasing the tour length. If the graph is not metric, the 1.5 approximation guarantee can break down, so this is the first setting you check before using the algorithm.

Minimum Spanning Tree (MST)

The MST is the starting backbone of Christofides Algorithm. It gives a cheap way to connect every vertex, but it is not yet a tour because it has no cycle structure. The odd-degree vertices in the MST are exactly the ones that need extra edges before you can move on to an Eulerian circuit.

Perfect Matching

After the MST is built, Christofides matches up the odd-degree vertices with minimum total added weight. That matching is what fixes the parity problem so every vertex ends up with even degree. Without this step, you would not get an Eulerian circuit, which is the bridge to the final tour.

Hierholzer's Algorithm

Once Christofides creates an Eulerian graph, Hierholzer's Algorithm is the natural tool for tracing the Eulerian circuit. Christofides itself is the approximation framework, while Hierholzer gives you a way to actually list the circuit. The two ideas fit together when you need to turn the constructed graph into an explicit walk.

Is Christofides Algorithm on the COMBINATORICS exam?

A problem set question might ask you to explain why Christofides Algorithm gives a valid approximation for Metric TSP, or to identify each stage of the construction from a weighted graph. You should be able to name the MST step, the odd-vertex perfect matching step, and the shortcut from an Eulerian circuit to a Hamiltonian cycle. If a question gives you a small complete graph, you may need to decide which vertices are odd in the MST and what kind of matching is needed next. The common move is not to find the exact optimal tour, but to show that the algorithm produces a tour and explain why the triangle inequality keeps the length under control.

Christofides Algorithm vs Held-Karp Algorithm

Christofides Algorithm and the Held-Karp Algorithm both come up in TSP discussions, but they do different jobs. Christofides is a constructive approximation algorithm with a 1.5 guarantee for metric graphs, while Held-Karp is usually associated with a tighter dynamic programming or relaxation-based approach to solving or bounding TSP. If you are asked for a fast guaranteed tour, Christofides is the one to name.

Key things to remember about Christofides Algorithm

  • Christofides Algorithm is a polynomial-time approximation for Metric TSP, not an exact solver.

  • Its 1.5 guarantee depends on the triangle inequality, so the distances must be metric.

  • The method uses an MST first, then a minimum-weight perfect matching on the odd-degree vertices.

  • Adding the matching makes every vertex even degree, which creates an Eulerian circuit.

  • Shortcutting repeated vertices turns that Eulerian walk into a Hamiltonian cycle for the tour.

Frequently asked questions about Christofides Algorithm

What is Christofides Algorithm in Combinatorics?

It is an approximation algorithm for the Metric Traveling Salesman Problem. Instead of searching for the exact best tour, it builds a tour from an MST, a perfect matching, and an Eulerian circuit, with a guaranteed bound of 1.5 times optimal. That makes it a standard example of combinatorial optimization.

Why does Christofides Algorithm use a minimum spanning tree?

The MST gives the cheapest way to connect all vertices before you try to form a tour. It creates a structure that is easy to analyze and keeps the total cost low. The odd-degree vertices in that tree also tell you exactly where the matching step is needed.

How does Christofides Algorithm turn an Eulerian circuit into a Hamiltonian cycle?

It shortcuts repeated vertices while following the Eulerian circuit. Because the graph is metric, skipping a repeated stop does not increase the total length, thanks to the triangle inequality. The result is a cycle that visits each vertex once.

Is Christofides Algorithm exact?

No, it is not exact. It is designed to give a near-optimal answer quickly, with a proven upper bound on how far from the best tour it can be. That tradeoff is the whole reason it matters in combinatorics.