Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.
Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.
The chapter focuses on dynamic programming and its application in solving grid path problems. It explains how paths from the origin to various points can be calculated using recursive relations, while also addressing the concepts of memoization and the significance of handling obstacles or holes in the paths. The distinction between recursive calculations and dynamic programming is highlighted alongside practical examples.
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
References
ch46 part b.pdfClass Notes
Memorization
What we have learnt
Final Test
Revision Tests
Term: Paths in a Grid
Definition: The number of different ways to navigate from the origin (0,0) to a target point (i,j), based on valid moves (right and up).
Term: Dynamic Programming
Definition: An algorithmic technique that solves problems by breaking them down into simpler subproblems, solving each subproblem once, and storing their solutions.
Term: Memoization
Definition: An optimization technique that involves storing results of expensive function calls and returning the cached result when the same inputs occur again.
Term: DAG (Directed Acyclic Graph)
Definition: A finite directed graph with no directed cycles, used here to represent dependencies between subproblems.