Sub topic 3
Surface Likeness Versus Shared Structure
Assume you can describe a problem in plain language and read basic Python. This chapter focuses on one question: does another situation resemble your problem only on the surface, or does it share the same underlying structure?
An analogy compares two domains. The source domain is the familiar situation you borrow from. The target domain is the problem you want to solve. A useful analogy transfers relationships between parts, not just labels or appearances.
Surface similarity
Surface similarity comes from visible or familiar features:
- The objects have similar names.
- The situations look alike.
- Both involve the same vocabulary.
- The people or tools play apparently similar roles.
- Both produce a similar visible result.
For example, a computer desktop has folders, files, and a trash can. These labels resemble an office desk. However, the computer does not store paper, and its trash can does not physically contain discarded objects. The analogy helps users predict some actions, such as putting a file in the trash. It breaks if you assume every office behavior also applies to the computer.
Surface similarity is useful for teaching and recognition. It is weak evidence for borrowing a solution.
Shared structure
Structural similarity concerns the relationships among parts. A structure describes:
- Which entities exist.
- What each entity can do.
- Which entities affect one another.
- The order of events.
- The constraints that limit possible actions.
Consider two situations:
- A company has a central team that receives requests and assigns work to specialized teams.
- A software system has a dispatcher that receives jobs and sends them to workers.
The nouns differ, but the relationship is similar:
- A request arrives at a central coordinator.
- The coordinator selects an available specialist.
- The specialist performs the work.
- The result returns through the coordination process.
This shared structure suggests possible ideas, such as queues, routing rules, workload limits, and failure handling. Those ideas may transfer even though the source and target look different.
| Feature | Surface analogy | Structural analogy |
|---|---|---|
| Basis | Visible traits or labels | Relationships, roles, and constraints |
| Strength | Helps recognition or explanation | Helps generate and test solutions |
| Main risk | Assuming unrelated traits transfer | Missing a constraint that breaks the mapping |
| Question to ask | “What looks alike?” | “What interacts with what, and how?” |
A practical comparison
When evaluating an analogy, remove the domain-specific nouns. Replace them with roles and actions.
Suppose a support team handles customer requests slowly. The surface description might be:
> “Our support queue is like traffic on a busy road.”
That comparison could mislead you if you copy road-building ideas directly. An abstract description is more useful:
> “Requests arrive at variable rates, wait for limited service capacity, and become more costly when delayed.”
Now you can search for other systems with the same structure, such as hospital triage, network packet handling, or manufacturing work queues. Each source may suggest a different response, but each must be checked against the support team's constraints.
def structural_description(arrivals, service_capacity, delay_cost):
return {
"input": arrivals,
"bottleneck": service_capacity,
"consequence_of_waiting": delay_cost,
}
support = structural_description(
arrivals="variable customer requests",
service_capacity="limited agents",
delay_cost="customer frustration",
)
print(support)The function does not solve the queue. It strips away distracting details so that you can compare the target with other systems.
Test the analogy before trusting it
Write the proposed mapping explicitly. For each important element in the source, identify its target counterpart. Then compare their relationships.
Ask:
- Does the source coordinator have the same decision role as the target coordinator?
- Does the source bottleneck limit throughput in the same way?
- Does delay create a similar cost?
- Are the available actions equivalent?
- Which source relationships have no target counterpart?
- Which target constraints are absent from the source?
A strong analogy usually preserves several important relationships at once. A weak analogy preserves only a memorable image.
Exercise
A library and a web server both receive many requests and have limited workers. Is this automatically a strong analogy? Name one structural relationship you would verify.
Show answer
No. Verify that requests wait for service in a comparable way and that adding, scheduling, or prioritizing workers affects delays similarly.