Search the courses, subjects, tracks, games and features, or jump straight to a page.
Learn it your way
A short class with Sarah and her students. The other ways are under More.
Sign up free to listen. Transcripts are free to read.
Let’s start our discussion about grid paths! Can anyone tell me what we mean by paths in a grid?
Are those the different ways we can move from one corner of the grid to the opposite corner?
Exactly! In a rectangular grid, we can move either right or up. If we start at (0,0) and aim to reach (m,n), we have to make 'm' moves to the right and 'n' moves up.
So how do we figure out how many different ways we can do that?
Great question! We calculate this using combinations. The total number of moves you need to make is 'm+n' and then you can choose positions for the 'm' right moves, which gives you .
And what does stand for?
Good catch! represents combinations, which is the number of ways to choose 'k' items from 'n' items. In our case, that's how we calculate the paths.
So if we have a 5 column and 10 row grid, how many paths are there?
That would be . So remember, the formula is key here!
To summarize: We can calculate paths using combinations and learn that in a grid with 'm' columns and 'n' rows, total paths are .
Now, let’s talk about what happens when there are blocked intersections, like (2,4). What do we do then?
Do we just exclude the paths that go through that intersection?
Exactly! We can calculate how many paths go through the blocked intersection and then subtract that from the total. But first, can anyone tell me how to find paths passing through (2,4)?
We would need to find paths from (0,0) to (2,4) and then from (2,4) to (5,10).
Correct! So we compute the two segments: for the first segment and for the second.
And then we multiply those two values together to find all paths that pass through that point?
Right! So if we multiply these, we would calculate the invalid paths and to compute the valid paths, we perform: total paths minus these invalid ones. What do we end up with if the total is 3003 and invalid paths are 1260?
That would be 1743 remaining valid paths!
Exactly! Well done! So remember, counting invalid paths helps us filter out valid paths in grids with blocked intersections.
In summary: Blocked intersections require us to calculate invalid paths through them and subtract from the total. We keep adjusting our calculations based on new blocks entering the picture.
Now that we’ve tackled single block paths, what happens if we have two blocked intersections? For example, (2,4) and (4,4)?
Wouldn't we just add blocked path counts together?
That's a common mistake! We need to subtract paths through both intersections because we’ll end up counting some paths twice. Can anyone tell me what that principle is called?
I think it’s inclusion-exclusion!
Correct! We include individual blocked paths and exclude the paths traversing both blocks.
How do we find those paths that go through both?
You’d compute the paths from (0,0) to (2,4) then to (4,4) and finally to (5,10). It’s a combination of three segments. Path count through both is then added back after subtraction. What’s our result if we calculate that?
So we learn to adjust our block counts to keep everything intact!
Exactly! Always be cautious of double counts, using inclusion-exclusion helps us keep our math aligned. Well done!
To recap: For multiple blocked intersections, use inclusion-exclusion to accurately calculate and adjust path counts.
The total number of paths from (0,0) to (m,n) is given by the formula , where . For a 5-column, 10-row grid, there are 3003 paths.
When an intersection, such as (2,4), is blocked, paths that pass through this point must be excluded from the total count. We categorize valid paths by first calculating invalid paths that traverse through the blocked point.
In cases where multiple intersections are blocked, we compute the number of paths through each intersection and use the inclusion-exclusion principle to avoid double-counting paths that may pass through both blocked points.
Through these combinatorial methods, students can effectively solve more complex grid path problems while considering constraints such as blocked intersections.
To travel up or move right, choose your steps with delight!
Imagine a brave traveler journeying from the bottom of a grand city grid to the top, dodging obstacles in their path with wise strategies!
Remember 'Right and Up are the paths to choose' — RUP helps us recall our options while navigating grids!
C.A.R.E (Combinations Always Result in Easy paths) reminds us how to choose paths efficiently!
Term
Paths in grid
Click to flip
Term
Blocked Intersection
Click to flip
Term
Combination Formula
Click to flip
A route taken through a grid moving only in right and upward directions.
A selection of items from a larger set where the order does not matter, represented mathematically as .
A point in the grid that cannot be passed through when calculating paths.
A combinatorial technique used to count the size of the union of overlapping sets.
This section discusses the combinatorial problem of finding grid paths and computing valid paths given blocked intersections.
The section presents the classic problem of calculating the number of unique paths in a grid from the bottom left to the top right corner, exploring combinatorial techniques. Special attention is given to paths that must avoid blocked intersections, and the application of these combinatorial concepts is illustrated through examples and inclusion-exclusion principles.
In this section, we explore how to compute paths on a rectangular grid from the bottom left corner (0,0) to the top right corner (m,n), only allowing movements to the right and up. With m columns and n rows, the total number of unique paths can be calculated using combinatorial principles based on binomial coefficients.
Through these combinatorial methods, students can effectively solve more complex grid path problems while considering constraints such as blocked intersections.