Overview
The Chinese Remainder Theorem algorithm uses modular inverses to combine residues for pairwise coprime moduli into a single residue class.
Combines compatible congruences into one solution modulo the product of the moduli.
Compact metadata for implementation and discovery.
The Chinese Remainder Theorem algorithm uses modular inverses to combine residues for pairwise coprime moduli into a single residue class.
Quick facts
Runtime and memory behavior at a glance.
Best
O(k)
Average
O(k^2)
Worst
O(k^3)
Space
O(k)
x = sum(a_i * M_i * inverse(M_i mod m_i)) mod MCombines residues into one solution modulo the product M.
Show combining congruences with modular inverses on a small modular system solving example.
Chinese Remainder Theorem Algorithm operates in O(k^2) time and O(k) space within the Number Theory family. Key governing relation: x = sum(a_i * M_i * inverse(M_i mod m_i)) mod M. Often compared with Extended Euclidean Algorithm and Binary GCD.
What each reference supports for this entry.
Reference for Chinese Remainder Theorem Algorithm's arithmetic operations, modular arithmetic, multiplication, division, or number-theoretic implementation details.
Open sourceTextbook support for Chinese Remainder Theorem Algorithm's algorithm family, complexity framing, and standard implementation concepts.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Numerical Methods · Foundation
Both address modular system solving, but they make different modeling or performance tradeoffs.
Compare with thisNumerical Methods · Foundation
Both address modular system solving, but they make different modeling or performance tradeoffs.
Compare with thisBoth address modular system solving, but they make different modeling or performance tradeoffs.
Both address modular system solving, but they make different modeling or performance tradeoffs.
Both address modular system solving, but they make different modeling or performance tradeoffs.