Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Modular arithmetic
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Computational complexity == Since modular arithmetic has such a wide range of applications, it is important to know how hard it is to solve a system of congruences. A linear system of congruences can be solved in [[polynomial time]] with a form of [[Gaussian elimination]], for details see [[linear congruence theorem]]. Algorithms, such as [[Montgomery reduction]], also exist to allow simple arithmetic operations, such as multiplication and [[Modular exponentiation|exponentiation modulo {{math|''m''}}]], to be performed efficiently on large numbers. Some operations, like finding a [[discrete logarithm]] or a [[Quadratic congruences|quadratic congruence]] appear to be as hard as [[integer factorization]] and thus are a starting point for [[Cryptography|cryptographic algorithms]] and [[encryption]]. These problems might be [[NP-intermediate]]. Solving a system of non-linear modular arithmetic equations is [[NP-complete]].<ref>{{cite book |first1=M. R. |last1=Garey |first2=D. S. |last2=Johnson |title=Computers and Intractability, a Guide to the Theory of NP-Completeness |url=https://archive.org/details/computersintract0000gare |url-access=registration |publisher=W. H. Freeman |year=1979 |isbn=0716710447 }}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)