Sub topic 1
What Analogical Thinking Is and Why It Works
Prerequisites
This chapter assumes that you have solved problems in at least one field, can describe a problem in plain language, and can read simple Python. The Python example is optional.
What analogical thinking is
Analogical thinking solves a new problem by recalling a similar problem you already understand and reusing its solution. It works because many systems follow the same patterns. Water in a pipe, cars on a road, and people in a queue all slow down when too much passes through one narrow point.
Source domain and target problem
The problem you want to solve is the target. The familiar field that supplies the idea is the source domain. Start by stating the target clearly. You cannot search for a useful source until you know what you need.
Surface likeness versus shared structure
Two situations can look alike without sharing any useful logic. Surface likeness is a match in appearance or vocabulary. Structural similarity is a match in relationships: which parts affect which other parts, and in what direction.
A hospital waiting room and a checkout line both involve people waiting. They share structure only if both serve people in arrival order with a fixed number of staff. Keep the relationships and set the decoration aside.
Mapping entities and relations between domains
A mapping pairs each entity in the source with an entity in the target, then carries the relations across. Entities are things. Relations describe how entities connect.
source_relations = [
("attracts", "sun", "planet"),
("orbits", "planet", "sun"),
]
mapping = {"sun": "nucleus", "planet": "electron"}
def transfer(relations, entity_map):
return [(rel, entity_map[a], entity_map[b]) for rel, a, b in relations]
for rel in transfer(source_relations, mapping):
print(rel)
# ('attracts', 'nucleus', 'electron')
# ('orbits', 'electron', 'nucleus')Exercise
A traffic jam at a single-lane bridge and a slowed water pipe both involve a bottleneck. Which relation would you transfer, and which surface details would you leave behind?
Show answer
Transfer the relation that flow into a narrow point is limited by the narrowest capacity, so flow backs up upstream. Leave behind surface details such as cars, asphalt, and water pressure gauges.