Modular Arithmetic and Primality

Modular Arithmetic and Primality Modular Arithmetic and Primality

axon.cs.byu.edu
from axon.cs.byu.edu More from this publisher
01.01.2015 Views

Is multiplication O(n 2 ) – Could we come up with a multiplication algorithm which is slower than O(n 2 ) – Know we can do at least this well, real question is can we come up with a faster one Is multiplication Θ(n 2 ) – In other words, is this the best we can do – Multiplication problem vs particular algorithms CS 312 - Complexity Examples - Arithmetic and RSA 16

Is multiplication O(n 2 ) – Could we come up with a multiplication algorithm which is slower than O(n 2 ) – Know we can do at least this well, real question is can we come up with a faster one Is multiplication Θ(n 2 ) – In other words, is this the best we can do – Multiplication problem vs particular algorithms Not Θ(n 2 ). It turns out we can do better, as we will see later – Can we prove lower bounds - Sometimes (e.g. addition) Division is also O(n 2 ) CS 312 - Complexity Examples - Arithmetic and RSA 17

Is multiplication O(n 2 )<br />

– Could we come up with a multiplication algorithm which is slower<br />

than O(n 2 )<br />

– Know we can do at least this well, real question is can we come up<br />

with a faster one<br />

Is multiplication Θ(n 2 )<br />

– In other words, is this the best we can do<br />

– Multiplication problem vs particular algorithms<br />

Not Θ(n 2 ). It turns out we can do better, as we will see<br />

later<br />

– Can we prove lower bounds - Sometimes (e.g. addition)<br />

Division is also O(n 2 )<br />

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

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

Saved successfully!

Ooh no, something went wrong!