PrepGenAICerts

Decomposition Techniques: Sequential, Parallel, Routing, Hierarchical

Core

Apply decomposition techniques to make complex problems tractable · Difficulty 3/5

0%
decompositionsequentialparallelroutinghierarchical

Explanation

Complex problems are made tractable by decomposition -- breaking one large, ambiguous task into smaller, well-scoped units.

The Four Decomposition Techniques

  • Sequential decomposition -- break a task into ordered sub-steps (prompt chaining) when each depends on the last.
  • Parallel decomposition -- split into independent subtasks that run concurrently and merge.
  • Routing decomposition -- classify first, then send each class down a specialized path.
  • Recursive / hierarchical decomposition -- an orchestrator spawns subagents that may themselves decompose further.

These four techniques map directly onto the workflow composition patterns and the multi-agent hierarchy pattern already covered in this domain: decomposition is the general design move, and prompt chaining / parallelization / routing / orchestrator-workers are its concrete implementations.

Why Decomposition Improves Reliability

Decomposition also improves reliability: smaller, well-scoped steps are easier to prompt, evaluate, and debug than one monolithic mega-prompt, and each boundary is a natural place for a gate check or validation. A single sprawling prompt asking a model to do everything at once is harder to test (which part failed?), harder to evaluate (what does "correct" mean for the whole output?), and harder to debug than a chain of smaller steps each with a clear input/output contract.

Choosing the Right Technique

SituationTechnique
Each step needs the previous step's outputSequential
Subtasks are independent and can run at onceParallel
Inputs fall into distinguishable categoriesRouting
The task needs an orchestrator that spawns subagents which may decompose furtherRecursive / hierarchical

Decomposition choice should follow directly from the dependency structure of the task: ask whether sub-steps depend on each other (sequential), are independent (parallel), differ by category (routing), or require open-ended delegation (recursive/hierarchical).

Key Takeaways

  • Four decomposition techniques: sequential, parallel, routing, recursive/hierarchical
  • Sequential decomposition (prompt chaining) fits ordered sub-steps that depend on the last
  • Parallel decomposition fits independent subtasks that run concurrently and merge
  • Routing decomposition classifies first, then sends each class down a specialized path
  • Decomposition improves reliability: smaller steps are easier to prompt, evaluate, and debug, and boundaries are natural gate-check points

Glossary Terms

Related Concepts

PrepGenAICerts.com is an independent third-party exam-prep platform for the Claude Certified Architect (CCA-F) certification. We are not affiliated with, endorsed by, or acting on behalf of Anthropic PBC.

Note: New premium upgrades are temporarily paused while we resolve an issue with our payment provider. Existing premium members retain full access.