Dynamic Programming21 sections · 916 units
Open in Course

Simplified Recurrence - Walkthrough

Finding the pattern

For small width, Broken Profile DP often reduces to a simple recurrence. Hand-find or compute numerically. Method 11: compute first 1010 values with DP, then guess the recurrence and verify.

Method 22: the transition matrix has constant size. Its eigenvalues determine the recurrence's characteristic polynomial. Example: 2×n2 \times n domino tiling has f[n]=f[n1]+f[n2]f[n] = f[n-1] + f[n-2] (Fibonacci). The transition matrix is [[1,1],[1,0]][[1,1],[1,0]].