01.01.2015 Views

Modular Arithmetic and Primality

Modular Arithmetic and Primality

Modular Arithmetic and Primality

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

x <strong>and</strong> N are integers of length n bits, y is an integer of<br />

length m bits (i.e. m = log 2 y, n = log 2 x = log 2 N)<br />

Each multiply is n 2<br />

How many multiplies - calling depth which is m<br />

Thus Complexity is O(n 2 m)<br />

If we assume y is of length similar to x <strong>and</strong> N then<br />

complexity is O(n 3 )<br />

Very efficient compared to the exponential alternatives<br />

CS 312 - Complexity Examples - <strong>Arithmetic</strong> <strong>and</strong> RSA 26

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!