Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 2.14 De Morgan's Laws

Description

In this lesson, students will be introduced to De Morgan’s Laws, fundamental rules in logic and Boolean algebra that describe the relationship between conjunctions and disjunctions in expressions. These laws are essential for simplifying and understanding complex Boolean expressions in programming. Through examples, visual aids like truth tables and Venn diagrams, and hands-on exercises, students will learn to apply De Morgan’s Laws to optimize and clarify code.


Objective

Students will be able to:

  • Understand and explain De Morgan’s Laws
  • Apply De Morgan’s Laws to simplify complex Boolean expressions
  • Compare equivalent Boolean expressions using De Morgan’s Laws