Specify the minimum amount of memory (in kilobytes) sufficient to store any 128 × 128 pixel bitma
Specify the minimum amount of memory (in kilobytes) sufficient to store any 128 × 128 pixel bitmap image, if the image is known to use a palette of 256 colors. The palette itself does not need to be stored.
1) Let’s calculate the number of pixels in the image.
128 * 128 = 16384 pixels.
2) Find out the information weight of each pixel.
The formula for finding information is N = 2i (where N is the number of colors in the palette, i is the amount of information in bits that each pixel carries).
256 = 2 ^ 8
One pixel carries 8 bits of information.
3) Find the informational weight of the image.
16384 * 8 = 131072 bits
4) Let’s translate the bits into bytes. 1 Byte = 8 bits.
131072: 8 = 16384 bytes.
5) Let’s convert bytes to Kbytes. 1 KB = 1024 bytes.
16384: 1024 = 16 KB.
Answer: the amount of memory you need is at least 16 KB.