Figure 4 shows a black and white image - AQA - GCSE Computer Science - Question 16 - 2021 - Paper 1
Question 16
Figure 4 shows a black and white image.
Figure 4
The image shown in Figure 4 could be compressed using Run Length Encoding (RLE). The RLE for the image in Figure 4... show full transcript
Worked Solution & Example Answer:Figure 4 shows a black and white image - AQA - GCSE Computer Science - Question 16 - 2021 - Paper 1
Step 1
Give the RLE for the image shown in Figure 5.
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
To determine the Run Length Encoding (RLE) for the image in Figure 5, we analyze the rows of the pattern:
The first two pixels are black (B) and represent a count of 2.
The next pixels are white (W), which count up to 3.
Following that, there are 4 black pixels (B), ending with one white (W).
Thus, the RLE for the image is B2 W3 B4 W1, which can be simplified to: B2 W3 B4 W1.
Step 2
Give the binary representation of the RLE: B15 W9.
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
The binary representation involves converting each RLE value:
For B15:
B corresponds to 0 (B = 0)
The frequency 15 in binary is 0001111.
Thus, B15 in binary is 00001111.
For W9:
W corresponds to 1 (W = 1)
The frequency 9 in binary is 0001001.
Thus, W9 in binary is 10001001.
Combining these, the full binary representation is 00001111 10001001.