Skip to content

Deriving state from previous state [mp]

Micro pattern

Description

Compute a new state from completed earlier states instead of rebuilding it from the original input.

Problems

Construct the next object

Extend a collection or transform the preceding generated object.

Dynamic-programming transition

Derive a counting or optimal state from already solved dependencies.

Tree aggregation

Complete child summaries before computing a parent summary.

DAG aggregation

Propagate completed predecessor summaries along outgoing edges.