A galactic algorithm is faster than every other known method only for inputs so large that they never occur on Earth, "galaxy-sized" inputs. The computer scientists Richard Lipton and Kenneth Regan made the term popular. Such an algorithm can be a real breakthrough in theory and still be useless in practice.
How that can happen
Complexity theory compares how the cost of an algorithm grows as the input gets bigger. An algorithm whose cost grows more slowly wins in the end, however large its constant factor is. But "in the end" can be very far away. If the slow-growing algorithm starts out with a huge overhead, the crossover point can lie beyond any number that could ever be written down.
Examples
- Multiplying numbers: the algorithm of Harvey and van der Hoeven (2019) multiplies n-digit numbers in O(n log n) steps, which is believed to be optimal. Its proof only applies to numbers with more than 2172912 bits.
- Factoring (2026): a paper written by Google's AI agent Cogentic proves a bound of L[1/3, 105] for factoring every number. It beats the best earlier proven bound only for numbers with about 61 trillion bits, and never beats the number field sieve used in practice.
- Lattices (2026): Anthropic's paper "Galactic quasi-polynomial quantum algorithms for integral and module lattices" carries the word in its title: faster than earlier methods for module lattices, but not at the sizes used by ML-KEM.
Why researchers still care
A galactic result shows that a shortcut exists. Later work sometimes shrinks the overhead until the method becomes practical, which is why cryptographers study such results closely instead of ignoring them. Try the factoring example yourself: Faster on paper, slower in practice.