In some country, a 6-character license plate is composed of capital letters (12 letters in total) and decimal
In some country, a 6-character license plate is composed of capital letters (12 letters in total) and decimal digits in any order. Each character is encoded with the same and minimum possible number of bits, and each number is encoded with the same and minimum possible number of bytes. Determine the amount of memory required to store 32 license plates.
There are only 10 decimal numbers (from 0 to 9) + 12 letters used. Then N = 12 + 10; N = 22.
Given: N = 22; K = 32. Find: Y (In bytes)
1) N = 2 ^ i
22 = 2 ^ i 16 <22 <32
i = 5 (Take the degree up)
2) 1 license plate consists of 6 characters.
1 number = 5 * 6 = 30 bits
In the condition it is known that 1 number is written in bytes, let’s translate 30 bits into bytes.
30: 8 = 4 bytes (Round up)
3.1 Number = 4 bytes.
32 numbers = 32 * 4 = 128 bytes