---
library: "bootstrap"
slug: "LeastToMost"
name: "LeastToMost"
ref: "LeastToMost#942d"
hash: "sema:LeastToMost#mh:SHA-256:942de8e9b154190e8a85a88d74c46350b5b9c936d4d463d33e697297f02ba0e3"
type: "Reasoning"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/LeastToMost"
---

# LeastToMost

Solve subproblems from easiest to hardest sequentially

Mind · Reasoning

## Mechanism

A prompting strategy that breaks a complex [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) into a series of simpler subproblems, then solves them in sequence. Each subproblem's solution becomes context for the next. Unlike standard decomposition, the subproblems are ordered from easiest to hardest, and solutions explicitly build on each other. It employs [Decompose](https://semahash.org/vocabularies/bootstrap/patterns/Decompose.md) to sort sub-tasks by complexity, solving them sequentially.

## Invariants

- [Solution](https://semahash.org/vocabularies/bootstrap/patterns/Solution.md) to P(i) enables P(i+1)
- Subproblems solved in order of dependency

## Preconditions

- Complex problem
- Decomposition strategy

## Postconditions

- Full solution built from simple parts

## Failure modes

- Subproblem Coupling: Later subproblems depend on earlier errors.
- Ordering Misjudgment: Wrong difficulty ordering leads to missing prerequisites.
- Overhead: Simple problems don't benefit from decomposition.

## Where this came from

—

## Builds on

- [Decompose](https://semahash.org/vocabularies/bootstrap/patterns/Decompose.md) (references)
- [Solution](https://semahash.org/vocabularies/bootstrap/patterns/Solution.md) (references)
- [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) (accepts)

## Related

- [RecursionDive](https://semahash.org/vocabularies/bootstrap/patterns/RecursionDive.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: LeastToMost#942d
- Hash: sema:LeastToMost#mh:SHA-256:942de8e9b154190e8a85a88d74c46350b5b9c936d4d463d33e697297f02ba0e3

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/LeastToMost
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/LeastToMost.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
