Sub topic 9
Adapting the Borrowed Solution
Assume you can describe a problem in plain language, distinguish source and target domains, and read basic Python. This chapter focuses on the step after finding an analogy: changing the borrowed idea so it fits the target problem.
Why direct copying fails
A source solution was designed for the source domain. Its entities, resources, rules, and goals may differ from those in the target. An analogy gives you a candidate mechanism, not a finished implementation.
For example, metallurgy inspired simulated annealing. A metal is heated and cooled physically. An optimization program has no physical temperature. The program uses temperature as a control value for how often it accepts a worse candidate. The relationship transfers, but the implementation changes.
Adaptation usually requires you to:
- Keep the source mechanism that creates the useful effect.
- Replace source entities with target equivalents.
- Remove steps that depend on source-only conditions.
- Add safeguards required by the target.
- Define how success will be measured.
Preserve the relationship, not the material
Start by writing the source solution as a sequence of relationships.
| Source element | Target equivalent | Adaptation question |
|---|---|---|
| Heat gives atoms freedom to move | High temperature permits exploratory moves | What target variable controls exploration? |
| Cooling reduces movement | Lower temperature favors stable choices | How should exploration decrease? |
| Slow cooling produces an ordered structure | Gradual restriction can improve the final result | What counts as an acceptable result? |
This table prevents a common error: copying visible details instead of preserving the mechanism. You do not need metal, heat, or atoms. You need a way to explore alternatives early and settle on better choices later.
A practical adaptation process
Use this sequence when borrowing a solution:
- State the source mechanism. Write what causes the result, without naming its original objects.
- List target constraints. Include limits on time, money, safety, data, hardware, and user behavior.
- Map the controllable parts. Identify which target variables can play the source roles.
- Replace incompatible operations. Keep the purpose of an operation while changing how it is performed.
- Add target-specific checks. A source solution may not handle your failure conditions.
- Test a small version. Compare it with a simple baseline before expanding it.
- Record broken correspondences. These mark the analogy's limits.
The result should be a target design informed by the source, not a disguised copy of it.
import math
import random
def optimize(cost, neighbor, start, temperature=1.0,
cooling=0.99, steps=1000):
current = start
best = start
for _ in range(steps):
candidate = neighbor(current)
change = cost(candidate) - cost(current)
accepts = change <= 0
if not accepts and temperature > 0:
accepts = random.random() < math.exp(-change / temperature)
if accepts:
current = candidate
if cost(current) < cost(best):
best = current
temperature *= cooling
return best
result = optimize(
cost=lambda x: (x - 3) ** 2,
neighbor=lambda x: x + random.uniform(-0.5, 0.5),
start=0.0,
)
print(round(result, 2))Here, the borrowed idea is gradual cooling. The target-specific choices include the cost function, the neighbor function, the starting value, and the cooling schedule. Those choices determine whether the adaptation fits the optimization problem.
Check the adaptation
Evaluate the adapted solution at three levels:
- Mechanism: Does the transferred relationship still produce the intended effect?
- Constraints: Does it obey the target's limits and safety rules?
- Outcome: Does it improve the target metric compared with a baseline?
A useful adaptation can preserve only part of the original analogy. It may keep exploration and gradual restriction while rejecting the source's exact timing or terminology.
Common errors
- Literal copying: Reusing source parts that have no target equivalent.
- Ignoring constraints: Assuming the target has the source's resources or rules.
- Skipping the baseline: Calling an analogy successful without comparison.
- Over-adaptation: Changing so much that the original mechanism disappears.
- One-shot testing: Trusting one favorable result instead of repeated trials.
Exercise
A hospital wants to reduce patient waiting time. A team borrows the supermarket idea of opening more checkout lanes. What should the team adapt before implementing it?
Show answer
It should map checkout lanes to clinical capacity, such as available clinicians or examination rooms, then check constraints such as staff skill, equipment, triage rules, and uneven appointment types. It should test whether the change reduces waiting against the current process.