How can I solve this coding problem
Considerations for the assignments
It must be determined how a black or white pixel is coded (e.g. black as 1, white as 0). It also indicates how wide and tall the picture is. You can also code these numbers in binary. In order to be able to assign the bits, it must also be determined here how many bits are intended for the width and how many for the height of the image. These binary coded numbers may have to be padded with zeros. This is followed by the coding of the pixels.
The extra information does not have to be coded as well, that would make no sense here.
Schoolchildren usually do not address the order of the pixels. We are used to going from top left to bottom right. In cultures where one reads from right to left or from top to bottom, the students might come up with other ideas or see the need to provide this as additional information.
The additional tasks are not standard.
In graphic coding, for example, more bits could be used for each pixel and the information about the color could be coded there.
For the compression, you could, for example, specify that one byte always stands for black, then one for white and that the number of pixels is coded in it. If the number does not fit into a byte, the other color is simply coded as the number 0 in between.
If you combine the two questions, the color could always be coded and then the number of pixels in this color.
Directly back to the master copy
Solution to: graphic coding: Download [odt] [73 KB]
Solution to: graphic coding: Download [pdf] [107 KB]
Go to Coding Game
- What fractures are common in osteoporotic bones
- How to note microtonality
- How can I see my Instagram followers
- When do we get our BITSAT results
- Delete an Instagram account
- Any religion has impeccable leadership
- Where can I get GRE Barron's book
- Why shouldn't I use the Tor Browser?
- Can Anonymous hack Donald Trump's online presence
- What happened to the Wall Street Market
- Can you be brave as a child
- What is not enough evidence
- How can you become an ER Technician
- Are you a right contraction
- Do psychology therapies actually work or not
- Why were the southern states against Abraham?
- How can you bankrupt a competing company
- Like hot street signs
- How old is Plone
- Rabindranath Tagore was an internationalist
- What are the benefits of quitting WhatsApp
- How do you say socialism in French
- Who is the best friend
- What is neuropathy
- How effective are masks in devastating smoke
- Is mineral water actually healthier?
- Is it fun to have a threesome
- Is the film concept of Transcendences 2014 valid?
- Is there a physical test for reality
- Parents are allowed to stay in PG
- What do scientists say about spiritual enlightenment
- Marriage has become irrelevant in today's society
- How can I make an influential person? to write an essay
- Have you ever broken your own heart