Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
How do you calculate the number of paths to (2,1) from (0,0)?
Count the ways to get to the first point and then to the second.
What is the value of paths(0,0)?
Think about staying in one spot.
What is the key method used to calculate paths(i,j) in a grid?
Think about the movement options on a grid.
True or False: If there is a hole at (2,1), paths(2,1) would be zero.
Consider how holes affect calculations.
Design a 5x5 grid with multiple holes. Calculate paths to (4,4) considering obstacles dynamically and using memoization. Discuss the efficiencies and pitfalls of each method.
Document steps as you fill in the grid, then analyze results.
Create a real-life application for pathfinding similar to this grid setup. How would obstacles affect routing?
Think algorithms used in GPS applications or logistics.
5 more questions in this section. Enroll free to practise them all.
Enroll free