Search⌘ K

Equivalent Boolean Expressions

Explore how to apply De Morgan's laws to simplify and transform Boolean expressions in Java. Learn to demonstrate equivalence of Boolean statements using truth tables and coding examples. This lesson helps you master fundamental logic skills essential for the AP Computer Science A exam.

In this lesson, we’ll see how De Morgan’s laws can simplify any complex boolean statement.

Overview of De Morgan’s laws

Augustus De Morgan, a mathematician presented some transformation rules. In English, we can represent the rules as:

  • The negation of a disjunction is the conjunction of the negations.
  • The negation of a conjunction is the disjunction of the negations.

A disjunction is a compound statement ...