###0

Read the full description in Towards a discipline of dynamic programming.

Sequence 1: Sequence 2: