Skip to content
BetterDL

Literal

Also called: literals, complemented literal, uncomplemented literal, true literal

A single variable appearing in an expression, either plain (A) or complemented (A'). A and A' count as two different literals.

A literal is one appearance of a variable, with or without a bar. For two variables A and B there are four possible literals: A, , B and .

Literals are the smallest building blocks of an expression. A product term is an AND of literals, such as . A sum term is an OR of literals, such as .

Why the word matters: when you measure how expensive an expression is, you count literals. Each literal is one wire going into a gate, so fewer literals usually means a smaller, cheaper circuit. See literal count.

Two details trip people up:

  • A plain literal (A) is 1 when A = 1. A complemented literal () is 1 when A = 0.
  • A bar over a whole group, as in , is not a literal. Only a bar over a single letter makes a complemented literal. Use de morgans laws to push a long bar down onto single letters.

Worked examples

Example

Counting literals

How many literals are in ?

  1. 1.

    First term : , B, . That is 3 literals.

  2. 2.

    Second term : , D. That is 2 literals.

  3. 3.

    Total: 3 + 2 = 5. B appears twice (once plain, once barred), and each appearance counts.

Example

Which input makes a product of literals 1?

For to be 1, every literal in it must be 1.

  1. 1.

    A must be 1.

  2. 2.

    must be 1, so B must be 0.

  3. 3.

    C must be 1.

  4. 4.

    So = 1 only on input A = 1, B = 0, C = 1 (row 101).

Common mistakes

  • Counting variables instead of literals. In there are 3 variables but 4 literals.

  • Calling a literal. A literal has a bar over at most one letter; equals , which has two literals.

  • Forgetting that a repeated letter counts again. Every appearance is one gate input.

Practice Literal

Interactive questions with instant feedback and a worked solution for every wrong answer.

Learn it step by step

Literal is taught in Boolean Algebra and Boolean Simplification.