In-depth understanding of computer system second edition Exercise answers CSAPP 2.9, csapp2.9

Source: Internet
Author: User

In-depth understanding of computer system second edition Exercise answers CSAPP 2.9, csapp2.9

You can create eight different colors based on R (red) G (green) B (blue) Close (0) and open (1), as shown below:

R G B Color R G B Color
0 0 0 Black 1 0 0 Red
0 0 1 Blue 1 0 1 Red and purple
0 1 0 Green 1 1 0 Yellow
0 1 1 Blue-green 1 1 1 White

Each of these colors can be represented by a 3-bit vector and Boolean operations on them.

A. A color is formed by closing the opened color and opening the closed color. So what is the complementary color of the above eight colors?

Use non-operational solutions:

Color Complementary colors
Black White
Red Blue-green
Blue Yellow
Red and purple Green
Green Red and purple
Yellow Blue
Blue-green Red
White Black

B. Describe the result of applying the Boolean operation to the following colors:

Blue | Green = blue-green

Yellow & blue-green = green

Red ^ red purple = blue

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.