Karnaugh maps with four variables – OCR A Level Computer Science lesson (H446)
Students learn to label a four-variable Karnaugh map in Gray code, use wrap-around groups and write the minimised expression.
Lesson 6 of 11 in unit 13.3 Boolean Algebra and Logic Circuits, taught in Year 13, Autumn 2. It answers one big question: How do you find the smallest expression for four inputs?
By the end, students can label a four-variable Karnaugh map in Gray code, use wrap-around groups and write the minimised expression.
- The Build (the main task)
- Complete a four-variable Karnaugh map for Kestrel Lifts' car-park barrier output, which is 1 for inputs ABCD = 0000, 0010, 1000, 1010, 1011, 1110 and 1111, and write the minimised expression (6 marks).
- Support version
- The map with Gray-code labels on both edges and the 1s already placed; the four corner cells shaded as a hint that they may form one group.
- Challenge
- Draw the logic circuit for your minimised expression and count the gates saved compared with the unsimplified sum of seven products.
- Real-world link
- The barrier at the entrance to a Kestrel car-park lift, controlled by four sensors.
- Key words
- Gray code, Wrap-around and Minimise, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “Cells on opposite edges of the map are not adjacent, so the four corners cannot be grouped”; “Gray code is a different number base”.
- OCR H446 specification
- 1.4.3 (boolean algebra: defining problems with Boolean logic, manipulating expressions with De Morgan's laws, distribution, association, commutation and double negation, simplifying with Karnaugh maps, and the logic of half adders, full adders and the D-type flip-flop).
Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.
Students can do it all on paper.
Also sold in the Boolean Algebra and Logic Circuits unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.
What's included
- Slide deck (PowerPoint)
- Lesson plan (Word)
- Worksheet (Word)
- Support worksheet with scaffolds (Word)
- Single-teacher licence: use and adapt it with your own classes
More for A Level Computer Science
See allStudents learn to write a Boolean expression in both OCR notations and simplify it with the identity rules, naming each rule.
Free sample lessonStudents learn to apply De Morgan's laws to rewrite an expression without a bar over a bracket and prove the two forms equivalent with a truth table.
Students learn to use distribution, association, commutation and double negation to simplify an expression, naming the rule at each step.
Written for the specifications named. Not endorsed by or affiliated with any exam board.