Combinatoric Problem: Path to [20,30]

  • Thread starter Thread starter David Waiter
  • Start date Start date
  • Tags Tags
    Combinations
Click For Summary
The discussion revolves around calculating the number of paths from the point [0,0] to [20,30] on a square grid while avoiding specific forbidden points: [5,5], [15,10], and [17,23]. The initial solution proposed uses the principle of inclusion and exclusion to account for the paths that pass through these restricted points. However, there is confusion regarding the double counting of the point [15,10], which is mentioned twice. The principle of inclusion and exclusion is clarified as involving alternating sums to accurately count the valid paths. The conversation emphasizes the importance of correctly identifying and managing overlapping restrictions in combinatorial problems.
David Waiter
Messages
2
Reaction score
0
We have a square grid. In how many ways we get to the point [20,30], if we can not get points [5,5], [15,10] [15,10] [17,23]? The starting point is [0,0], we can only move up and to the right. Thanks

My solutions:
$$ \binom{50}{20} - \binom{10}{5}\binom{40}{15} - \binom{25}{10}\binom{25}{10} -\binom{25}{15}\binom{25}{5}-\binom{40}{17}\binom{10}{3}$$
 
Physics news on Phys.org
I moved the thread to the homework forum.

You are subtracting some paths more than once, e. g. every path that passes both through [5,5] and [15,10]. One [15,10] should be [10,15] I guess?
 
Yes, I use the principle of inclusion and exclusion
 
So where do you consider the double-counting I mentioned?
 
David Waiter said:
We have a square grid. In how many ways we get to the point [20,30], if we can not get points [5,5], [15,10] [15,10] [17,23]? The starting point is [0,0], we can only move up and to the right. Thanks

My solutions:
$$ \binom{50}{20} - \binom{10}{5}\binom{40}{15} - \binom{25}{10}\binom{25}{10} -\binom{25}{15}\binom{25}{5}-\binom{40}{17}\binom{10}{3}$$

You have included [15,10] twice in your list of forbidden points. What did you really mean?
 
David Waiter said:
Yes, I use the principle of inclusion and exclusion
The principle of inclusion and exclusion leads to expressions with both plus and minus signs, usually alternating. This is because you subtract out all the cases ruled out by each single criterion, then add back all that you have subtracted twice over because they were ruled out by two criteria, then add back in all that you've added back in too often because they were ruled out by three criteria, and so on.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 21 ·
Replies
21
Views
2K
Replies
4
Views
2K
Replies
5
Views
2K