Symbolic Analysis of Relay and Switching Circuits

Authors: Claude Elwood Shannon
Year: 1938 (published) / 1937 (submitted as MIT master’s thesis)
Source: shannon-1938-symbolic-analysis-of-relay-and


What it is

Shannon’s master’s thesis showed that Boolean algebra is the mathematics of circuits. By proving that the behavior of any relay or switching network obeys Boolean logic, he gave engineers a systematic method to design and simplify digital circuits — and laid the mathematical foundation for all digital computing.

Howard Gardner called it “possibly the most important, and also the most famous, master’s thesis of the century.”


The insight

Before Shannon, relay circuits were designed by intuition and trial-and-error. Engineers wired switches together and hoped they worked. There was no formal theory.

Shannon, a 21-year-old master’s student, noticed that:

  • A relay contact is either open or closed — two states
  • George Boole had developed an algebra for two-valued logic (true/false) in 1854
  • The two algebras are identical

If he could map circuit elements onto Boolean variables and operations, every theorem in Boolean algebra would become a theorem about circuits — enabling systematic analysis and synthesis.


The hinderance algebra

Shannon assigned each switch a hinderance variable:

  • X = 0: switch is closed (conducts)
  • X = 1: switch is open (does not conduct)

Connections between switches become algebraic operations:

ConnectionOperationMeaning
SeriesX + YBoth must be closed to conduct
ParallelX · YEither one closed allows conduction
InversionX'Normally-closed contact (complement)

He then verified that these operations satisfy all nine Boolean postulates. Since the postulates hold, every Boolean theorem — De Morgan’s law, the distributive law, expansion theorems — applies directly to circuits.


What you can do with it

Analysis: Given any circuit, write its hinderance function as a Boolean expression. Evaluate the expression to determine when the circuit conducts.

Synthesis: Given a desired behavior (a truth table or logical specification), write the Boolean expression and simplify it using Boolean algebra. Then read off the minimal circuit directly from the simplified expression.

This is the difference between guessing and computing. A circuit with 10 switches had been an engineering art project; after Shannon, it became an algebra problem.


Practical examples from the thesis

Binary adder

Shannon expressed the sum and carry bits of a full binary adder as Boolean functions and designed a minimal relay circuit. This directly anticipates digital arithmetic in computers.

Combination lock

A lock that opens only after pressing switches in a specific sequence — a sequential logic circuit. Shannon designed this as a state machine using relay contacts, demonstrating that even memory (state) can be captured in the Boolean framework.

Vote counter (majority function)

A circuit that outputs “yes” if at least 3 of 5 inputs are active. The Boolean expression simplifies to a compact relay network.


Why it mattered for computing

Shannon’s thesis created the blueprint for digital logic design:

  1. Any computation can be expressed as Boolean functions
  2. Boolean functions can be minimized algebraically
  3. Minimal Boolean functions can be directly realized as circuits

Every AND gate, OR gate, and NOT gate in every processor, GPU, and neural network accelerator today is a direct descendant of Shannon’s relay contacts. The path from Boole’s abstract algebra (1854) to modern chips runs directly through this thesis.


Connection to the broader picture

WorkYearContribution
Boole 1854→Boolean algebra as a mathematical system
Shannon 1938→Boolean algebra = switching circuit design
Shannon 1948→Information theory: how much can circuits communicate
von Neumann 1945→Stored-program computer architecture
Turing 1936→What computers can compute in principle

Shannon’s switching circuit paper sits at the intersection of mathematics and engineering: it took abstract logic and made it buildable.


See also