Sub topic 14
A routine you can repeat
This chapter assumes you have read the earlier chapters. You should know the difference between surface and structural similarity, how to build a mapping between a source domain and a target problem, how to abstract a problem to its core relations, and how to test where an analogy holds and where it breaks. Here those pieces become one procedure you can run on any problem, and the chapter also covers how to keep the habit going.
Why a routine helps
Analogies usually arrive by accident. You read an article, something clicks, and you apply it. That works occasionally, but it is unreliable. Two things go wrong when you wait for inspiration.
- You only find sources that are close to what you already know. These are near analogies, and they rarely give new ideas.
- You accept the first analogy that feels right. A feeling of fit often comes from surface likeness, not from shared structure.
A routine makes the search deliberate and makes the testing unavoidable. It does not guarantee a good analogy. It guarantees that you look in more places and that every candidate gets checked before you rely on it.
The six steps
The routine has six steps. Each one reuses a skill from an earlier chapter.
- State the target problem. Write the problem in plain language, including the constraints that cannot change.
- Abstract it. Rewrite the problem using only entities and relations, with no domain vocabulary.
- Search for sources. Use the abstract description to look in several fields, including at least one far from your own.
- Map and transfer. For each promising source, align entities and relations, then carry over the source's solution as candidate claims.
- Test and adapt. Check each candidate against evidence and constraints. Keep what holds, change what breaks, and drop what cannot be repaired.
- Record and review. Write down what you tried, what held, and what failed.
The loop from step 5 back to step 3 matters. Failing a test is normal, and it tells you what to look for next.
Step 1: State the target problem
Write one or two sentences that say what you want and what limits you. Include the limits now, because step 5 uses them. A problem like "our support queue is slow" is too vague. A better version is "tickets wait too long before anyone reads them, we have six agents, and we cannot add staff."
Step 2: Abstract it
Remove the vocabulary of your field. Replace "tickets" and "agents" with "items" and "servers." Replace "slow" with the actual quantity: waiting time before service starts. Then list the relations.
- Items arrive at irregular times.
- Servers take items one at a time.
- Items differ in how long they need.
- Waiting time grows when arrivals bunch together.
This description now fits a supermarket, a hospital emergency room, and a network router. That is the point. A good abstraction is general enough to match other fields and specific enough that a match tells you something. If your abstraction matches everything, it has lost the relations that matter. If it matches nothing but your own field, you have kept too much vocabulary.
Step 3: Search for sources
Run the search in three passes.
- Near pass. Look in neighboring fields. Cost is low, and the vocabulary is familiar.
- Far pass. Pick two or three fields that are unrelated to yours and ask what they do about the abstract problem. Physics, biology, logistics, games, and cooking all have well-developed answers to queueing, allocation, and search problems.
- Ask pass. Describe the abstract problem, not the original one, to a person outside your field. People often recognize their own field's solved problem faster than you can.
Collect at least three candidate sources before you evaluate any of them. If you evaluate while you collect, the first decent candidate tends to end the search.
Step 4: Map and transfer
For each candidate, write the mapping explicitly. A table keeps you honest because every row needs an entry on both sides.
| Source (supermarket) | Target (support queue) | Relation preserved |
|---|---|---|
| Shopper | Ticket | Arrives at random times |
| Checkout lane | Agent | Serves one item at a time |
| Express lane | Quick-fix lane | Short jobs skip long waits |
| Single shared line | Single shared queue | Whoever is free takes the next item |
Then transfer. Each source relation becomes a claim about the target. "A single shared line gives shorter average waits than one line per lane" becomes "a single shared queue gives shorter average waits than per-agent queues." The claim is a hypothesis, not a result.
Writing the mapping as data makes the transfer mechanical, which reduces the temptation to read extra meaning into it. The code below is the same idea as the transfer example from earlier in the tutorial, extended to flag relations that have no counterpart in the target.
source_relations = [
("shortens_wait", "single_line", "shopper"),
("skips_long_jobs", "express_lane", "shopper"),
("rewards", "loyalty_card", "shopper"),
]
mapping = {
"single_line": "shared_queue",
"express_lane": "quick_fix_lane",
"shopper": "ticket",
}
def transfer(relations, entity_map):
"""Return (mapped, unmapped) relations."""
mapped, unmapped = [], []
for rel, a, b in relations:
if a in entity_map and b in entity_map:
mapped.append((rel, entity_map[a], entity_map[b]))
else:
unmapped.append((rel, a, b))
return mapped, unmapped
mapped, unmapped = transfer(source_relations, mapping)
print("Candidate claims:")
for claim in mapped:
print(" ", claim)
print("No counterpart in target:")
for claim in unmapped:
print(" ", claim)Running it prints two candidate claims and one unmapped relation, the loyalty card. An unmapped relation is not an error. It is a prompt to ask whether the target needs a counterpart, or whether the relation is simply part of the source's surface.
Step 5: Test and adapt
Each candidate claim gets three checks.
- Relation check. Does the relation really hold in the source, and does the target have the structure it depends on? A shared queue helps because any free server can take any item. If your agents have different skills, that condition fails.
- Constraint check. Does the transferred idea respect the limits from step 1? An express lane needs a way to judge job length at arrival. If you cannot, the idea cannot be used as is.
- Evidence check. Can you test the claim cheaply on the target? Use historical data, a small pilot, or a simulation before committing.
When a claim fails, ask whether it can be repaired. For example, if agents have different skills, you might keep the shared queue but add skill tags so each agent pulls only from the matching section. That is adaptation: the structure is kept and the implementation changes.
Step 6: Record and review
Keep a short log. Each entry needs five fields.
- The abstract problem statement.
- The sources you considered, including those you rejected.
- The mapping for the one you tried.
- Which claims held, which broke, and why.
- What you changed in the target, and what happened.
The log serves two purposes. First, it exposes your habits. If every entry draws on the same two fields, your search is too narrow. If most failures come from relations that did not exist in the target, you are mapping too quickly in step 4. Second, it is a library. An abstract problem you solved once will come back in another form, and the entry gives you a starting source.
A compact example of the whole routine
A team maintains a service that must retry failed network calls. Too many instant retries overload the server it is calling.
- Target. Retries from many clients arrive together and keep a struggling server down. Clients cannot coordinate directly.
- Abstract. Many agents compete for a shared resource. Collisions cause failure. Agents cannot communicate.
- Sources. Near: rate limiting. Far: Ethernet collision handling, where stations that collide wait a random time before trying again.
- Map and transfer. Station maps to client, shared cable maps to server, collision maps to failed call. The source says to wait a random time, and to widen the range after each repeated collision.
- Test and adapt. The relation holds: the problem has the same collision structure. The constraint check adds a limit, because users will not wait unbounded time, so you cap the wait. An evidence check with a load test shows that spreading retries reduces peak load.
- Record. Log the abstract problem, the Ethernet source, the cap you added, and the load-test result.
The final design is randomized exponential backoff with a cap. Notice the step 5 change. The source had no cap, and the target needed one.
Common ways the routine fails
| Failure | Where it shows up | Fix |
|---|---|---|
| Abstraction keeps domain words | Step 3 finds only near sources | Rewrite using "items," "agents," "resource" and similar neutral terms |
| Stopping after one source | Step 3 yields a single candidate | Require three candidates before evaluating |
| Mapping only entities | Step 4 table has no relation column | Add a column naming the relation each row preserves |
| Skipping the evidence check | Step 5 ends with "this makes sense" | Name a cheap test and run it |
| No record | The same problem is solved from scratch later | Write the log entry before closing the task |
Making it a habit
A routine you only use on big problems will stay unfamiliar. Practice on small ones.
- Once a week, take one small problem and run steps 1 to 3 only. It takes about ten minutes and builds the skill of abstraction.
- Keep a list of solved problems from other fields that you find interesting, written as abstract relations, not as stories.
- When a solution surprises you, ask what abstract problem it solves, and add that to the list.
- Review the log monthly. Look for fields you never draw from, and read one article in each.
Over time the list becomes your own search index. Step 3 becomes faster because you already hold many abstract problem and solution pairs.
Summary of the routine
State the problem with its limits, abstract it, search widely, map entities and relations in a table, transfer claims as hypotheses, test them against relations, constraints and evidence, adapt what can be repaired, and record the result.
Exercise
You need to decide which of several overdue tasks to do first, and you cannot do them all. Run steps 2 and 3 of the routine. Write an abstract statement of the problem using neutral words, then name two possible source fields, one near and one far, and say what each might offer.
Show answer
A sample answer: "Several items compete for limited capacity. Each item has a cost to process and a penalty that grows the longer it waits. Choose an order that minimizes total penalty." Near source: project management, which offers prioritizing by deadline or by value. Far source: hospital triage, which offers sorting by urgency and by whether a quick intervention prevents a large loss. Any answer is acceptable if the statement contains no domain words such as "tasks" or "deadline," and each source is tied to a specific relation it contributes.
Exercise
In the retry example, suppose a colleague proposes borrowing a further relation from Ethernet: stations listen to the cable before sending. Explain, using the step 5 checks, why this claim needs testing before you adopt it.
Show answer
Relation check: listening works because all stations share one cable and can sense whether it is busy. API clients do not share a medium and cannot observe each other's traffic, which the target description states. The structure the relation depends on is missing. Constraint check: the step 1 limit says clients cannot coordinate, so any sensing mechanism would break it. So the claim fails the relation and constraint checks as stated. It might be repaired by sensing a signal the clients can see, such as the server's error responses or a rate-limit header, and that adapted version would then need an evidence check.
Exercise
A log reveals that your last six analogies all came from software engineering, and four of them failed because a relation in the source had no counterpart in the target. Which two steps of the routine should you change, and how?
Show answer
Change step 3 and step 4. In step 3, require a far pass in a field outside software, because all six sources came from one field. In step 4, add a relation column to the mapping table and check each relation for a target counterpart before transferring claims, because four failures came from unmatched relations.