Guichard-Combinatorics-Graph-Theory · Problem 1.3.1
Fundamentals
Mathematics — Probability · binomial-coefficients
Problem
Suppose a street grid starts at position and extends up and to the right. A shortest route along streets from to is blocks long, going blocks east and blocks north. How many such routes are there? Suppose that the block between and is closed, where and . How many shortest routes are there from to ?Intuitive explanation
The first part is about counting arrangements: to reach in steps, you need to choose which of those steps go east (the rest go north). This is a binomial coefficient. For the second part, use complementary counting—find all shortest routes that would use the blocked street, then subtract from the total. A route uses that blocked street only if it passes through both and , so count paths that go and subtract.
Intuitive explanation
The first part is about counting arrangements: to reach in steps, you need to choose which of those steps go east (the rest go north). This is a binomial coefficient. For the second part, use complementary counting—find all shortest routes that would use the blocked street, then subtract from the total. A route uses that blocked street only if it passes through both and , so count paths that go and subtract.