Dynamic Programming- pebbles example

Finding optimal alignment of non-adjacent pebbles in a weighted grid using dynamic programming