![]() ![]() |
| |||||||||
| This page removed for FERPA compliance | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Internet addresses are four numbers, each of which is between 0 and 255. Does that help? Where did 256^4 come from? Mark Guzdial |
| We ask for bits for each – anyone want to answer b, c, or d? Mark Guzdial |
| b and d aren't right, Amelia. 2^x = 1024 – what's x? 2^y = 65536 (0 is one pattern) – what's y? Mark Guzdial |
| Way cool, Margaret! Mark Guzdial |
| (Your math is a little off on (b), but the argument is sound.) Mark Guzdial |
| Note that the question was number of bits. Mark Guzdial |
| The question that you want to ask is "To get X number of patterns (or X-1 values), I need Y bits, where 2^Y is X." So, for example, to get 1024 patterns (assuming that index of 0 is a valid character), you solve 2^Y = 1024. Y is 10 here. So you need 10 bits. 10 bits can represent the values 0 to 1023. Make sense? Mark Guzdial |