SOURH7WK
In city A, the streets are aligned in a grid, where the east-west roads are called 1st Rd, 2nd Rd, 3rd Rd, etc, increasing in number as one moves northward. The north-south roads are called 1st Ave, 2nd Ave, 3rd Ave, etc, increasing in number as one moves eastward. There is a park that runs from 5th Ave to 7th Ave and from 3rd Rd to 5th Rd, as pictured. If Bill needs to walk from the corner of 2nd Rd and 3rd Ave to the corner of 6th Rd and 8th Ave in the shortest possible time without walking through the park, how many different routes could he take?
A) 6
B) 66
C) 72
D) 126
E) 262
Is there any formula to find out directly??
Let me add a little bit of detail to the solution given above.
You need to go from a point that is to the bottom left to a point that is to the top right. So you should take steps towards right and top. Since Bill wants to take shortest possible time, he should not go left or down because that is the opposite direction. His destination lies towards right and up.
Say, he takes one step to go from one intersection to the next one. He can take various routes e.g.
RRRRRUUUU (R represents one step right and U represents one step up)
RRRRUUUUR
etc
The total number of ways is basically obtained by re-arranging 5 Rs and 4 Us. You can do it in 9!/5!*4! = 126 ways (we divide by 5! and 4! because all Rs and all Us are identical)
Now, what happens due to the park? Everything is the same except that one intersection is not available - 4th Rd, 6th Ave. You cannot include this intersection in your journey. So what do you do? You remove all paths that include this intersection.
Now our question is this: In how many ways can you go from the corner of 2nd Rd and 3rd Ave to the corner of 6th Rd and 8th Ave when you include the corner of 4th Rd, 6th Ave?
From the corner of 2nd Rd and 3rd Ave to the corner of 4th Rd and 6th Ave - You need to take 3 steps right and 2 steps up - RRRUU etc. No of ways = 5!/3!*2! = 10
From the corner of 4th Rd and 6th Ave to the corner of 6th Rd and 8th Ave - You need to take 2 steps right and 2 steps up - RRUU etc. No of ways = 4!/2!*2! = 6
Total number of ways in which the 4th Rd, 6th Ave is included = 10*6 = 60 ways
Number of paths in which the corner of 4th Rd, 6th Ave is not included = 126 - 60 = 66