Artificial intelligence model, Claude Opus 4.6 Solves Long Standing Computer Science Problem

A longstanding problem in computer science, concerning directed Hamiltonian cycles, was recently solved not by a human mathematician, but by Anthropic’s artificial intelligence model, Claude Opus 4.6, released just three weeks prior. The solution emerged from a challenge posed by Filip Stappers, who prompted the AI with the specific problem statement; Claude then documented its attempts to find a solution. “Shock! Shock! I learned yesterday that an open problem I’d been working on for several weeks had just been solved by Claude Opus 4.6,” said Don Knuth of the Stanford Computer Science Department, who had previously solved a limited case of the problem. This dramatic advance in automatic deduction demonstrates a new capacity for AI in creative problem solving, prompting Knuth to concede he will “have to revise my opinions about ‘generative AI’ one of these days.”

Directed Hamiltonian Cycles & Initial Problem Formulation

This accomplishment, detailed in a recent analysis, began with a seemingly straightforward problem: determining whether a directed graph with a specific structure could be broken down into three such cycles. Don Knuth, a renowned computer scientist, initially posed the challenge, and it remained unsolved for several years. The initial formulation centered on directed graphs where each node’s outgoing edges connected it to the next in a cyclical manner. The problem, as described by the research, involved finding a decomposition for graphs with ‘m’ nodes. Claude’s approach involved a systematic documentation of attempts. The AI began by formulating the problem and documenting its progress. “At one point it said to itself, ‘Maybe the right framing is: don’t think in fibers, think directly about what makes a Hamiltonian cycle,’” illustrating the model’s attempt to reframe the problem.

Early attempts focused on “fibers,” a concept representing groupings of nodes, but these proved largely unproductive. Claude’s explorations involved simulated annealing, a probabilistic technique for finding optimal solutions, but ultimately concluded, “SA can find solutions but cannot give a general construction. Need pure math.” The AI’s journey wasn’t linear. Exploration 27 revealed a near-miss approach involving coordinate rotation, but ultimately encountered insurmountable “conflicts.” As the AI delved deeper, it identified constraints, stating, “This kills the ‘single-hyperplane + rotation’ approach entirely… We must allow the direction function to use different values across a rotation orbit.” This process of hypothesis, testing, and refinement is characteristic of both mathematical research and modern AI problem-solving. Claude eventually found a construction that worked. Filip Stappers, after testing the AI’s Python program, confirmed the solution for all odd ‘m’ between 3 and 101, leading him to conclude, “the problem was indeed solved for odd values of m.” The solution involved a specific rule for generating the cycles, detailed as a series of modular arithmetic operations.

Claude’s Exploration: Cayley Digraphs & 2D Serpentine Analysis

The system didn’t immediately leap to a solution for a complex mathematical problem, constructing a decomposition of a Cayley digraph, but rather meticulously documented its attempts in a manner reminiscent of a dedicated researcher. The journey, detailed by researcher Don Knuth himself, reveals a fascinating interplay between AI exploration and mathematical insight. The challenge centered on finding three Hamiltonian cycles within a specific type of directed graph. Claude began by attempting a “pure math” approach after initial strategies, including simulated annealing, failed to yield a general construction. It noted a need for “pure math.” This pivot highlights the AI’s ability to recognize the limitations of heuristic methods and shift towards more rigorous techniques. A key stage involved the investigation of “2D serpentine analysis,” where Claude explored functions.

The AI explored a particular 2D serpentine function, “Q(i, j) = (i+1, j) if i+j ≡ m−1 mod m, else (i, j +1).” This led to further experimentation, ultimately proving fruitless. Claude noticed a pattern in the results, a “uniform” fiber dependent on a single coordinate. This observation sparked a concrete construction, successfully generating valid results for some values of m. Filip Stappers rigorously tested the program for odd m up to 101, confirming the solution. Knuth notes that Stappers “quite reasonably” concluded the problem was solved for odd values. The final step, of course, involved crafting a formal proof, which Knuth describes as “quite interesting.” The entire process underscores that sometimes, the path to discovery isn’t about speed, but about systematic exploration and a willingness to abandon unproductive lines of inquiry.

Fiber Decomposition & Search for Uniform Solutions

The challenge involved devising a method to decompose a complete graph with ‘m’ vertices into three distinct Hamiltonian cycles, closed loops that visit each vertex exactly once. The AI’s journey, detailed in a recent account, reveals a fascinating interplay of computational search.

Initially, Claude employed a strategy centered around “fiber decomposition,” attempting to identify patterns within the graph’s structure. Need pure math.” The AI’s progress wasn’t linear. Exploration 27 saw a near-miss, attempting to leverage a “single-hyperplane + rotation” approach, which ultimately failed due to unresolved conflicts. However, a breakthrough emerged from revisiting a solution found earlier via simulated annealing. Specifically, Claude observed that the choice within each “fiber”, a grouping of vertices, depended on only a single coordinate. The resulting construction, while computationally derived, required rigorous proof. A decomposition for graphs with ‘m’ nodes was found. The core principle of the solution involves a rule governing the traversal of vertices: Let s = (i+j+k) mod m. When s = 0, bump i if j = m−1, otherwise bump k, and so on. This seemingly complex rule, when applied systematically, generates the desired Hamiltonian cycles.

Delicious success for odd m, at exploration number 31, came about one hour after the session began.

Simulated Annealing & Limitations of Heuristic Approaches

Don K. The program successfully solved a longstanding problem concerning Hamiltonian cycles, a task initially tackled through a combination of systematic documentation of attempts and, ultimately, a shift towards more rigorous mathematical approaches. The journey, detailed in a recent account, reveals a fascinating interplay of computational search and, ultimately, a need for pure math. The initial explorations involved Claude documenting its attempts, detailing its progress without necessarily iteratively refining its strategies based on the results. This underscores a fundamental challenge with computational approaches: they can find a solution, but struggle to guarantee a universally applicable solution or provide the underlying proof of its correctness. Claude’s attempts to explore different approaches, including experiments with “uniform” fiber configurations and variations on serpentine functions, yielded temporary results. However, these results were contingent on specific parameters and didn’t translate into a broader, mathematically sound solution.

Claude’s internal monologue, as recorded in its exploration logs, reveals a growing awareness of these limitations. They remain valuable tools for tackling complex problems, particularly when analytical solutions are elusive. However, Claude’s experience serves as a potent reminder that computational methods are often stepping stones, guiding the search for a solution but ultimately requiring the rigor of mathematical proof to establish its validity and generalizability.

Odd m Solution: Coordinate-Dependent Fiber Construction

Need pure math.” This signaled a shift in approach, prompting the AI to focus on identifying underlying mathematical principles rather than relying on iterative approximation. The breakthrough came with the realization that a solution involved a grouping of vertices based on the sum of their coordinates modulo m. The solution lies in a rule governing the traversal of vertices: Let s = (i + j + k) mod m. The rule dictates how to increment the coordinates i, j, and k to traverse the graph, with the specific increment dependent on both s and the current values of the coordinates. The detailed examples provided, showcasing the cycles for m = 3 and m = 5, demonstrate the solution.

Quantum News

Quantum News

There is so much happening right now in the field of technology, whether AI or the march of robots. Adrian is an expert on how technology can be transformative, especially frontier technologies. But Quantum occupies a special space. Quite literally a special space. A Hilbert space infact, haha! Here I try to provide some of the news that is considered breaking news in the Quantum Computing and Quantum tech space.

Latest Posts by Quantum News:

Quantum Error Correction Speeds up Seventy-Fold with New Optical Technique

Quantum Error Correction Speeds up Seventy-Fold with New Optical Technique

March 4, 2026
Three or More Parties Now Securely Share Encryption Keys Via Quantum Links

Three or More Parties Now Securely Share Encryption Keys Via Quantum Links

March 4, 2026
Pasqal Event to Explore Transition of Quantum Computing to Business Impact

Pasqal Event to Explore Transition of Quantum Computing to Business Impact

March 3, 2026