The size of the alphabet is 256. How many KB of memory would be required to store
The size of the alphabet is 256. How many KB of memory would be required to store 160 pages of text with an average of 192 characters per page?
1) Because the power of the alphabet is 256, then we find the weight of one character in bits
(find – i)
N = 2i
N is the cardinality of the alphabet
256 = 28, hence the weight of one character (i) = 8 bits
2) We have 160 pages of text, 192 characters on each page, to find how many characters are in the text, we multiply this data.
192 * 160 = 30720 characters in the text
3) Find out the information volume of the message in bits.
Since 1 character = 8 bits, and there are 30720 characters in total, then:
30 720 * 8 = 245 760 bits
4) Let’s translate 245 760 into bytes:
245,760 divided by 8 = 30,720 bytes
5) Let’s translate 30 720 bytes into kilobytes (Kbytes):
Divide 30 720 by 1024 = 30 KB