Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
2.1.3. Initial Conditions
This section
Practice test
12 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
3 cards from this lesson. Good the night before a test.
Try these first
- 1.
How many paths are there to the point (0,0)?
Hint
Consider your starting point.
- 2.
What happens to the path count if there’s a hole at (2,3)?
Hint
Think about the implications of obstacles.
- 3.
What is the path count from (0,0) to (0,0)?
- 0
- 1
- More than 1
Hint
Think about movement options.
- 4.
Paths to a point with a hole are counted as?
- True
- False
Hint
Remember the role of obstacles.
- 5.
In a 6x6 grid with holes at (2,2) and (3,3), compute the number of paths to (5,5) through dynamic programming and illustrate your table.
Hint
Start with your base cases and fill each cell considering blockage from holes.
- 6.
Construct a comprehensive table showing both memoized and dynamically programmed solutions for a 5x5 grid with four holes randomly distributed.
Hint
Use both methods to fill the same grid and compare the resulting path counts, especially noting differences in efficiency.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
2 more questions available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting