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
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Esempio<br />
• Quanti bit servono per rappresentare 20 numeri<br />
<strong>di</strong>versi?<br />
• Abbiamo che log 2 20 = 4,32…, qu<strong>in</strong><strong>di</strong> ⎡log 2 20⎤ = 5<br />
• Se ne deduce che per rappresentare 20 numeri<br />
<strong>di</strong>versi servono 5 bit. Infatti con 4 bit possiamo<br />
rappresentare 2 4 =16 numeri <strong>di</strong>versi (troppo pochi),<br />
mentre con 6 bit possiamo rappresentare 2 6 =64<br />
numeri <strong>di</strong>versi (troppi).