Word Problems to
Discrete Structures
Learn how to translate real-world scenarios into graphs, sets, and relations: the foundational skill for solving discrete math problems.
What Are Discrete Structures?
Discrete structures are mathematical models used to represent objects and the relationships between them. Unlike continuous math (calculus), discrete math deals with countable, distinct elements.
Why Translate Word Problems?
Word problems describe real situations in natural language. To solve them rigorously, we need to extract the mathematical structure hidden inside the words. This lets us apply algorithms, theorems, and proofs that only work on formal objects.
The Three Core Structures
Formal Definitions
Modeling with Graphs
Modeling with Sets
Graphs vs. Sets vs. Relations
| Graph | Set | Relation | |
|---|---|---|---|
| Focus | Connections | Membership | Ordered pairs |
| Notation | \( G = (V, E) \) | \( S = \{a, b, \ldots\} \) | \( R \subseteq A \times B \) |
| Direction | Optional (digraph) | None | Always directed |
| Key Question | "Who connects to whom?" | "Who belongs where?" | "What maps to what?" |
| Example | Road network | Student rosters | Course prerequisites |
How to Translate: Step-by-Step
Example 1: Graph from a Network
Problem: "Four computers (P, Q, R, S) are networked. P connects to Q and R. Q connects to S. R connects to S." Model this as a graph.
Example 2: Sets from Surveys
Problem: "In a class of 30 students, 18 study Spanish, 14 study French, and 6 study both. How many study neither?"
Example 3: Relations from Prerequisites
Problem: "To take Calculus, you need Algebra. To take Algebra, you need Pre-Algebra. To take Statistics, you need Algebra." Model as a relation.
Keyword Signals for Each Structure
| Keyword in Problem | Structure | What to Build |
|---|---|---|
| "is friends with," "connects to" | Graph (undirected) | Edge \( \{u,v\} \) |
| "reports to," "leads to" | Graph (directed) | Arc \( (u,v) \) |
| "belongs to," "is a member of" | Set | \( x \in S \) |
| "how many in both / neither" | Set operations | \( |A \cap B|, |A \cup B| \) |
| "must come before," "is required for" | Relation | \( (a,b) \in R \) |
| "is equivalent to," "is the same as" | Equivalence relation | \( a \sim b \) |
Relation Properties to Identify
Common Mistakes
Translation Summary
| Step | Action | Output |
|---|---|---|
| 1 | Read and identify objects | List of nouns / entities |
| 2 | Identify relationships | Connections, groupings, or orderings |
| 3 | Choose structure | Graph, Set, or Relation |
| 4 | Formalize | \( G=(V,E) \), \( S=\{\ldots\} \), or \( R \subseteq A \times B \) |
| 5 | Verify | Check every fact maps to the structure |
Question 1 of 5
"Five cities are connected by highways. City A connects to B and C. City B connects to D. City C connects to D and E." What is the degree of vertex D?
Question 2 of 5
In a survey, \( |A| = 20 \), \( |B| = 15 \), and \( |A \cup B| = 28 \). What is \( |A \cap B| \)?
Question 3 of 5
"Task X must be done before Task Y, and Task Y must be done before Task Z." Which discrete structure best models this?
Question 4 of 5
A relation \( R \) on set \( \{1,2,3\} \) is defined as \( R = \{(1,1),(2,2),(3,3),(1,2),(2,1)\} \). Which properties does \( R \) have?
Question 5 of 5
"A school has 40 students. 25 are in Band, 20 are in Choir, and 10 are in both. A student is chosen at random. What is the probability they are in neither Band nor Choir?"