Skip to content

Commit a79feba

Browse files
jxuadamant-pwn
authored andcommitted
Add note on pseudo-polynomial time
Resolves #985
1 parent 89c563d commit a79feba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/algebra/factorization.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ This is the most basic algorithm to find a prime factorization.
1717
We divide by each possible divisor $d$.
1818
We can notice, that it is impossible that all prime factors of a composite number $n$ are bigger than $\sqrt{n}$.
1919
Therefore, we only need to test the divisors $2 \le d \le \sqrt{n}$, which gives us the prime factorization in $O(\sqrt{n})$.
20+
(This is [pseudo-polynomial time](https://en.wikipedia.org/wiki/Pseudo-polynomial_time), i.e. polynomial in the value of the input but exponential in the number of bits of the input.)
2021

2122
The smallest divisor has to be a prime number.
2223
We remove the factor from the number, and repeat the process.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy