Sub topic 2
Source domain and target problem
This chapter assumes you have solved problems in some field and can describe a problem in plain language. The Python examples are optional and need only basic reading ability. The chapter defines the two roles every analogy has, shows how to write each one down, and covers the mistakes that happen when the roles are blurred.
Two roles in every analogy
An analogy connects two situations. Each has a fixed role:
- The target problem is the problem you want to solve. You do not yet have a good answer for it.
- The source domain is the area of knowledge you borrow from. You already understand how things work there, and it contains a solved or well-understood problem.
"Source" and "target" name roles. They do not name kinds of things. Metallurgy is a source when you borrow from it to design a search procedure, and a target when someone applies software ideas to metal processing. The same domain can play either role in different analogies, so decide the roles each time.
The words "domain" and "problem" also differ in scale on purpose. A source is a whole body of understanding: its objects, how they behave, and why. A target is one specific problem with a goal, and you are trying to meet that goal. A source can be rich and unfocused. A target must be pointed at something you want.
| Property | Source domain | Target problem |
|---|---|---|
| Your state of knowledge | Understood well | Unsolved or poorly understood |
| Scale | A whole field or system | One specific question |
| Has a goal | Not necessarily | Always |
| Direction of flow | Gives structure | Receives structure |
What a description needs
An analogy is only as good as the two descriptions behind it. Vague descriptions produce vague mappings, so write each side down with four parts.
- Entities are the things involved: a planet, a server, a patient, a customer.
- Relations are the ways entities affect or depend on each other: "attracts", "waits for", "is cheaper than", "feeds".
- Constraints are the limits that shape what is possible: a budget, a law of physics, a deadline, a rule nobody may break.
- Goal is what counts as success. A target must have one. A source often has an implicit one, such as "keep the metal from cracking".
Write the relations as short statements with a verb, such as "supplier delivers to warehouse". Avoid summaries like "supply chain stuff". A verb makes it possible to check the statement later.
Constraints are the part people skip, and they are the part that most often breaks an analogy. A solution that works in the source is shaped by that domain's constraints. If the target does not share them, the solution may be unusable even when the entities line up perfectly.
A worked mapping in code
The classic example is the planetary picture of the atom. The source is the solar system. The target is the question "how is an atom organized?". The code below stores the source as a list of relations, defines an entity mapping, and rewrites each relation in target terms.
# Source domain: relations among entities in a planetary system
source_relations = [
("attracts", "sun", "planet"),
("warms", "sun", "planet"),
("orbits", "planet", "sun"),
("has_moon", "planet", "moon"),
]
# Mapping between source entities and target entities.
# Note that "moon" has no counterpart.
mapping = {"sun": "nucleus", "planet": "electron"}
def transfer(relations, entity_map):
"""Split source relations into mapped candidates and unmappable ones."""
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
candidates, unmapped = transfer(source_relations, mapping)
print("Candidate claims about the atom:")
for claim in candidates:
print(" ", claim)
print("Source relations with no target counterpart:")
for relation in unmapped:
print(" ", relation)Running it prints:
Candidate claims about the atom:
('attracts', 'nucleus', 'electron')
('warms', 'nucleus', 'electron')
('orbits', 'electron', 'nucleus')
Source relations with no target counterpart:
('has_moon', 'electron', 'moon')Wait, that last line is not what the code prints. The unmapped relation is stored in its original source form, so the program prints ('has_moon', 'planet', 'moon'). The mistake in the sample output above is worth noticing: the unmapped list holds source vocabulary, because those relations never made it across.
The three outputs under the first heading are all produced mechanically, and they are not equally good:
('attracts', 'nucleus', 'electron')is plausible. Opposite charges attract.('orbits', 'electron', 'nucleus')is a famous early model, later replaced. Electrons are not well described as small bodies on paths.('warms', 'nucleus', 'electron')is nonsense. The code produced it just as confidently as the others.
The program cannot tell these apart. A mapping generates candidate claims about the target, and none of them counts as knowledge until you check it against evidence about the target. This is the rule to keep: the source suggests, and only the target can confirm.
Directionality
The flow in an analogy runs one way, from source to target. Three consequences follow.
- Questions go to the target and answers come from the source. You start with "how should the target be organized?" and ask what the source suggests.
- The source is not on trial. If the analogy fails, the source is still correct about itself. The failure belongs to the mapping.
- You can reverse an analogy, but it is a different analogy. If you use the atom to understand the solar system, the source and target swap, and different relations matter.
Missing from the source is as informative as present in it. In the code, has_moon found no target entity. That could mean the target lacks something the source has, so the analogy simply does not cover it. It could also mean you have not yet found the target's equivalent. Both readings are worth recording.
Common errors in setting up the two sides
Describing the target in the source's words. If you write the target problem as "the heat must dissipate gradually" because you already have cooling metal in mind, you have mapped before looking. Describe the target in its own vocabulary first, and only then search for a source.
Choosing a source for its familiarity. People pick sources they know well, such as sports, cooking or the military. Familiarity makes an analogy easy to explain, but it does not make it accurate. A source earns its place by sharing relations with the target.
Leaving the target's goal unstated. Without a goal you cannot tell which relations matter. "Improve onboarding" and "reduce onboarding cost" lead to different sources.
Hiding constraints. If the target has a fixed budget or a regulation and the source does not, state it explicitly. Otherwise you will adopt a solution that violates it.
Treating the source as one fact. A source domain is large. Name the specific part you are borrowing, such as "the cooling schedule" and not "metallurgy". The narrower the claim, the easier it is to test.
A short template
Before searching or mapping, fill in this template for the target. Later chapters use it as the starting point for abstraction and source search.
Target problem: <one sentence>
Goal: <what success looks like>
Entities: <list>
Relations: <verb statements>
Constraints: <limits that cannot move>
Unknowns: <what I cannot yet describe>For a source, fill in the same fields, then add one line: Part being borrowed: <specific mechanism or solution>. Keeping both sides in the same format makes the comparison in later chapters easier.
Exercise
A team must decide how to schedule many small jobs on a limited pool of workers. A member says, "This is like an airport: planes are jobs and runways are workers." Identify the source domain, the target problem, and the entities in the proposed mapping. Then name one constraint you would ask about on each side before trusting the analogy.
Show answer
The source domain is airport operations (runway scheduling). The target problem is scheduling small jobs on a limited pool of workers, with a goal such as minimizing waiting time or maximizing throughput. The entities mapped are plane to job and runway to worker. Sample constraints to check: in the airport, a runway cannot be shared at the same moment and planes need a safety gap between uses. In the target, ask whether a worker can handle several jobs at once and whether jobs need any recovery time between them. If the target allows sharing and has no gaps, the airport solution may be too restrictive. Also ask about relations such as "planes cannot be paused in the air", because jobs may be pausable.
Exercise
Why is it a mistake to describe your target problem as "the code needs to cool down slowly" if you have only just thought of simulated annealing as a source?
Show answer
The description already uses the source's vocabulary, so the mapping has been done before the target was examined. That hides which target relations actually exist and biases the search toward one source. Describe the target in its own terms first (for example, "the search gets stuck in poor local solutions"), then look for sources that share that relation.