02.06.2013 Views

Algoritmi di moltiplicazione veloce

Algoritmi di moltiplicazione veloce

Algoritmi di moltiplicazione veloce

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.

Operazioni lineari che consideriamo<br />

Combinazioni lineari<br />

li ← (ci · li + cj · lj)/<strong>di</strong>, con ci, cj, <strong>di</strong> costanti “piccole”.<br />

“piccole” vuol <strong>di</strong>re fissate: asintoticamente piccole. Tipicamente <strong>di</strong> 1 parola.<br />

Basic on long operands: linear operations<br />

|ci| |cj| <strong>di</strong> cost<br />

Somma/Sottrazione 1 1 1 ADD<br />

c.l. del primo tipo 1 2 k 1 ADD + ( 1 2)<br />

2 k 1 1 ADD + ( 1 2)<br />

c.l. del secondo tipo 1 = 2 k 1 ADD + ( 1 X)<br />

= 2 k 1 1 ADD + ( 1 X)<br />

Divisione per 2 k (shift) 1 0 2 k SHIFT<br />

Divisione esatta 1 0 = 2 k DIV<br />

Alberto Zanoni <strong>Algoritmi</strong> <strong>di</strong> <strong>moltiplicazione</strong> <strong>veloce</strong>

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

Saved successfully!

Ooh no, something went wrong!