Back to 课程

Computer-Science-A-level-Ocr

0% Complete
0/0 Steps
  1. 3-3-networks
    8 主题
  2. 3-2-databases
    7 主题
  3. 3-1-compression-encryption-and-hashing
    4 主题
  4. 2-5-object-oriented-languages
    7 主题
  5. 2-4-types-of-programming-language
    4 主题
  6. 2-3-software-development
    5 主题
  7. 2-2-applications-generation
    6 主题
  8. 2-1-systems-software
    8 主题
  9. 1-3-input-output-and-storage
    2 主题
  10. 1-2-types-of-processor
    3 主题
  11. 1-1-structure-and-function-of-the-processor
    1 主题
  12. structuring-your-responses
    3 主题
  13. the-exam-papers
    2 主题
  14. 8-2-algorithms-for-the-main-data-structures
    4 主题
  15. 8-1-algorithms
    10 主题
  16. 7-2-computational-methods
    11 主题
  17. 7-1-programming-techniques
    14 主题
  18. 6-5-thinking-concurrently
    2 主题
  19. 6-4-thinking-logically
    2 主题
  20. 6-3-thinking-procedurally
    3 主题
  21. 6-2-thinking-ahead
    1 主题
  22. 6-1-thinking-abstractly
    3 主题
  23. 5-2-moral-and-ethical-issues
    9 主题
  24. 5-1-computing-related-legislation
    4 主题
  25. 4-3-boolean-algebra
    5 主题
  26. 4-2-data-structures
    10 主题
  27. 4-1-data-types
    9 主题
  28. 3-4-web-technologies
    16 主题
课 Progress
0% Complete

Karnaugh Maps

What is a Karnaugh map?

  • In A Level Computer Science, a Karnaugh map is a tool that is used for simplifying Boolean algebra expressions

  • It offers a visual method of grouping together expressions with common factors

  • The format of the map makes it easy to identify and eliminate redundant terms

  • They are used in digital logic design, such as simplifying the logic of digital circuits

Steps:

  1. Create the Map: Each cell in the grid corresponds to a term in the Boolean expression. Fill cells with 1s and 0s corresponding to the output of that term

  2. Grouping: Group the 1s in the grid. Each group must be a rectangle and the size of the group must be a power of 2. A cell can be part of multiple groups

  3. Simplifying: Write down a simplified Boolean expression for each group. The simplified expression for a group consists of the variables that remain constant in all terms in the group

  4. Final Expression: Combine the simplified expressions from each group using OR operations to get the final simplified Boolean expression

Creating Karnaugh Maps

  • A Karnaugh Map (KMap) can be used to simplify a Boolean expression with 2 inputs

  • Here is an example for the expression A V B (A OR B)

Step 1

  • Add each variable starting with A at the top and B down the side

  • Add each possible state for A and B

step 1

Step 2

  • Take each expression in turn separated by the V (OR)

  • First look at A on it’s own

  • Find all cells where A is 1

  • Add 1 to the cell

step 2

Step 3

  • Repeat for B

step 3

Step 4

  • This is now a completed KMap for the expression A V B (A OR B)

step

Simplifying Expressions Using Karnaugh Maps

Simplify ¬A^¬B^C v ¬A^B^¬C v A^¬B^C v A^B using a KMap.

In this example there will be 3 variables A,B and C so the empty KMap will look like this:

empty-k-map

Step 1:

Split this long term at each OR giving 4 smaller expressions (subterms) to add to the table:

  • ¬A^¬B^C

  • ¬A^B^¬C

  • A^¬B^C

  • A^B

Step 2: 

  • Take the first subterm ¬A^¬B^C

  • Put a 1 in the map for every cell where this term would be TRUE (1)

  • So if A and B were 0 and C was 1 this subterm would be 1

  • So put a 1 in every cell in the KMap where A is 0, B is 0 and C is 1

k-map-2

Step 3:

  • The next subterm is ¬A^B^¬C

  • Put a 1 in the KMap where A is 0, B is 1 and C is 0

k-map-3

Step 4:

  • The next subterm is A^¬B^C

  • Put a 1 in the KMap where A is 1, B is 0 and C is 1

k-map-4

Step 5:

  • The final subterm is A^B

  • Put a 1 in the KMap where A is 1 and B is 1 (2 cells this time)

<img alt=”k-map-5″ class=”ContentBlock_figure__vJw2q” data-nimg=”1″ decoding=”async” height=”166″ loading=”lazy” sizes=”(max-width: 320px) 320w, (max-width: 640px) 640w, (max-width: 960px) 960w, (max-width: 1280px) 1280w, 1920w” src=”https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=3840/https://cdn.savemyexams.com/uploads/2023/12/k-map-5.png” srcset=”https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=16/https://cdn.savemyexams.com/uploads/2023/12/k-map-5.png 16w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=32/https://cdn.savemyexams.com/uploads/2023/12/k-map-5.png 32w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,wid

Responses

您的邮箱地址不会被公开。 必填项已用 * 标注