Sub topic 5
Restating a Problem in Abstract Terms
This chapter assumes you have read the earlier chapters in this tutorial. In particular, you should know the difference between surface similarity and structural similarity, and the terms source domain and target problem. You should also be able to read short Python snippets. The code is optional, but it makes the idea concrete.
By the end of the chapter you will be able to rewrite a problem so that its domain vocabulary is gone and its relations, goal, and constraints remain. That rewritten form is what you can use to search other fields for a matching problem.
Why abstraction comes first
A problem as you first state it is full of local nouns. "Our support agents spend too long deciding which ticket to open next" mentions agents, tickets, and a company. Someone in a hospital, a data center, or a kitchen has the same difficulty. They will never find your problem by searching for "support tickets", because their words are different.
Abstraction is the step that removes this barrier. You replace domain-specific entities with roles and keep the relations between them. The result is a statement that many fields could have written about themselves.
Structure mapping needs this step. You cannot align a target with a source until both are described in comparable terms. Abstraction produces the target description that you will later align with candidate sources.
What to keep and what to drop
Abstraction does not mean making a problem vague. It means choosing which details to discard. Sort every detail of your problem into one of three groups.
| Detail type | Example | Treatment |
|---|---|---|
| Domain label | "ticket", "agent", "warehouse" | Replace with a role name |
| Relation | "arrives faster than they are handled" | Keep, in neutral wording |
| Goal and constraint | "minimize waiting for urgent items, with fixed staff" | Keep, in neutral wording |
Numbers need a judgment call. "300 per day" usually drops out, but "arrivals exceed capacity" is a relation and must stay. A good test for any detail is whether changing it would change which solutions are plausible. If it would, keep it. If it only changes the setting, drop it.
The ladder of abstraction
Think of the same problem at several levels of generality. Each rung up removes more domain detail.
- Concrete. "Support agents read all 300 daily tickets to decide which to answer first, and urgent ones wait too long."
- Domain-neutral. "A team processes incoming requests of varying urgency, and finding out the urgency takes effort."
- Role-based. "Jobs arrive at a buffer. Servers have limited capacity. Each job has a priority that is costly to observe. The goal is to serve high-priority jobs first."
- Fully abstract. "Allocate scarce capacity among competing demands."
Level 3 is usually the best place to search from. Level 1 matches only your own field. Level 4 matches almost everything, including problems that share nothing useful with yours.
A procedure you can follow
Work through these steps on paper or in a document. Writing each version down is part of the method, because it makes you commit to wording.
- Write the problem in your own words. Use whatever vocabulary comes naturally. Do not polish it.
- Underline every noun that belongs to your domain. These are your entities.
- Give each entity a role name. A role says what the entity does in the problem, not what it is. "Ticket" becomes "job". "Support agent" becomes "server". Pick words that carry no field-specific baggage.
- Rewrite the relations as verbs between roles. "Agents open tickets" becomes "servers process jobs". Check that each verb still describes the situation correctly.
- State the goal and the binding constraints. The goal is what you want to improve. A binding constraint is a limit that would stop an otherwise good solution from working, such as fixed capacity or an inability to observe something directly.
- Read the result aloud to someone outside your field. If they can picture an example from their own work, the abstraction is portable.
Asking "what is this an instance of?"
Step 3 is often the hardest. Two questions help.
- What is this an instance of? A refund process is an instance of "reversing a committed transaction". A code review is an instance of "inspecting work by a second party before release".
- What would stay true if I changed the setting? If you moved the problem to a hospital, a farm, or a network, which parts would you have to carry along unchanged? Those parts are the structure.
Making it explicit in code
Abstraction is a rewrite from concrete entities to roles. The snippet below makes that rewrite literal. It takes two problems from different fields, replaces their entities with roles, and checks whether their abstract relation sets match.
def abstract(relations, roles):
"""Rewrite each relation using role names instead of domain entities."""
return {(rel, roles[a], roles[b]) for rel, a, b in relations}
# Target problem: a support team
support = [
("arrives_at", "ticket", "queue"),
("served_by", "ticket", "agent"),
("limits", "agent_hours", "agent"),
("ranks", "urgency", "ticket"),
]
support_roles = {
"ticket": "job",
"queue": "buffer",
"agent": "server",
"agent_hours": "capacity",
"urgency": "priority",
}
# Candidate source: a hospital emergency room
er = [
("arrives_at", "patient", "waiting_room"),
("served_by", "patient", "nurse"),
("limits", "nurse_hours", "nurse"),
("ranks", "severity", "patient"),
]
er_roles = {
"patient": "job",
"waiting_room": "buffer",
"nurse": "server",
"nurse_hours": "capacity",
"severity": "priority",
}
target_abstract = abstract(support, support_roles)
source_abstract = abstract(er, er_roles)
print(sorted(target_abstract))
print("Same abstract structure:", target_abstract == source_abstract)Running this prints the four shared relations, such as ('arrives_at', 'job', 'buffer'), followed by Same abstract structure: True. Before abstraction the two lists share no words at all. After it they are identical. That is the whole point of the step: two problems that look unrelated become the same problem.
The code also shows a limit. Here you chose the role names by hand, and two people could pick different names for the same role. The tool only checks consistency. The judgment about which entities play the same part is yours.
Choosing the right level
Abstraction can fail in both directions.
Too concrete
If you stop at level 1 or 2, searches return only your own field. You will find ten articles on support-ticket software and nothing from emergency medicine or operating systems, where the same problem has been studied for decades.
Too abstract
At level 4, "allocate scarce capacity among competing demands" is true of budgeting, scheduling, traffic, and diets. Nearly everything matches, so the match tells you nothing. You then spend time evaluating sources that share only the slogan.
A practical check is to ask what the abstract statement rules out. If it excludes no problems, it is too abstract. In the triage example, the phrase "priority that is costly to observe" excludes many scheduling problems where priority is known in advance. That detail narrows the search to cases like yours.
Dropping a binding constraint
The most damaging error is abstracting away a constraint that actually matters. Suppose your agents cannot interrupt a ticket once started. If your role-based statement leaves out "no preemption", you may later adopt a source solution that depends on pausing jobs. The solution will look like a fit and will fail in practice. Always list your hard constraints in the abstract statement.
Several abstractions of one problem
One problem usually has more than one valid abstraction, and each leads to different sources. Take "customers abandon our signup form halfway through".
- As a flow with loss at each step, it resembles a sales funnel or a leaky pipeline.
- As a trust-versus-effort trade-off, it resembles a security checkpoint or a loan application.
- As a signal that is lost in transit, it resembles communication over a noisy channel.
None of these is the correct one. They emphasize different relations, and each exposes different candidate solutions. Writing two or three abstractions before searching widens the pool of sources you can look through in the next chapter.
Common mistakes
- Swapping synonyms instead of abstracting. Replacing "ticket" with "request" changes the word but not the level. Ask whether someone in another field would recognize the term.
- Leaking the solution into the problem statement. "We need a priority queue" already assumes an answer. State the need, not the remedy, or you will only find sources that confirm your first idea.
- Abstracting the symptom. "Customers are unhappy" describes an outcome. Abstract the mechanism that produces it.
- Stopping after one pass. The first abstraction is a draft. Test it by explaining it to someone, then revise.
Exercise
A hospital pharmacy has this problem: "Nurses on the night shift often cannot tell which of the many look-alike drug vials is the correct one, and mistakes are caught only after a dose is given." Write a role-based abstraction in the form "A [role] must [verb] a [role], subject to [constraint], so that [goal]." Then name one constraint you would keep and one domain detail you would drop.
Show answer
One valid answer: "An operator must select the correct item from a set of near-identical items, subject to errors being detected only after the action is complete, so that wrong selections are prevented or caught earlier." Keep the constraint that detection happens only after the action, because it rules out solutions that rely on undoing the action. Drop details such as "nurse", "night shift", and "drug vial", since they only describe the setting. Other fields with this structure include cockpit control labeling and keyboard layout design.