14.08.2013 Views

Lucidi in formato PDF - Dipartimento di Matematica e Informatica

Lucidi in formato PDF - Dipartimento di Matematica e Informatica

Lucidi in formato PDF - Dipartimento di Matematica e Informatica

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.

it<br />

• Quanti bit sono necessari per rappresentare m<br />

numeri <strong>di</strong>versi?<br />

– La riposta è il più piccolo valore n tale che 2 n ≥ m.<br />

• Se n è tale che 2 n = m, allora n viene detto il<br />

logaritmo <strong>in</strong> base 2 <strong>di</strong> m e si <strong>in</strong><strong>di</strong>ca con log 2 m.<br />

• Se log 2 m non è un valore <strong>in</strong>tero, si prende il<br />

valore <strong>in</strong>tero imme<strong>di</strong>atamente superiore (denotato<br />

con ⎡log 2 m⎤), dato che non avrebbe senso<br />

considerare un numero frazionario <strong>di</strong> bit per<br />

rappresentare dei numeri nel sistema b<strong>in</strong>ario.

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

Saved successfully!

Ooh no, something went wrong!