for some reason the diagram was not showing up on my computer, but it is probably my beat up laptop that I've been using to study......
The way I like to think of these problems is similar to the "Stars and Bars" Method used to find the No. of Distributions of Similar Items to Distinct Groups.
Ignoring the Park in the middle of the Map and FIRST assuming that we have a perfectly formed grid map with NO Park:
(1st)since he wants to travel the MINIMUM Distance to get to Y, he will only want to keep moving towards his objective. Therefore, at each Decision Point he will only want to move North (N) or East (E) ----- and never backwards (West) or downwards (South)
(2nd)again, assuming that the Park is filled in and we have a perfect grid, if we were to find every single possible MIN route he could take from X to Y, we would immediately notice that every Route would include:
6 moves East (E)
and
3 moves North (N)
he could go:
E-E-E-E-E-E-N-N-N-N
or
E-E-E-E-E-N-N-N-E-N
etc.
So if were to label pieces of paper with these Letters and scatter them on the floor and figure out how many different ways we could Shuffle the N's in and around all of the E's, we can find all the Unique and Distinct Routes that are possible.
We can calculate the above by using the formula for Arranging Identical Elements or using the "Stars and Bars" Method (pretending the N's are the Identical Partitions)
(6 + 4)! / (6! * 4!) = (10)! / (6! * 4!) = 210 ways
(2nd) However, because we can not travel through the Park, we need to Eliminate every possible Route that includes passage through the Park. In effect, we have over-counted the Actual Routes that are allowed under the constraints of the problem. We need to eliminate any Route that includes passage through the park.
Placing a dot immediately in the center of the park (Labeled Z) and filling in the grid with 3 more line segments that connect to Point Z, the routes that are NOT Allowed and that we need to Eliminate include all the different "shufflings" of:
-1st- the Unique Routes to get from X-to-Z
AND
-2nd- the Unique Routes to get from Z-to-Y
Finding all the Different Arrangements of these 2 Legs will give us all the Routes of the ENTIRE journey from X to Y that include passage through the Park. We can then eliminate all of these routes from the 210 over-count above as they are NOT allowed.
Using the Same Logic to find these routes that are NOT allowed:
-1st- Leg 1: Every single Minimum Route from X-to-Z will include:
3 Moves East (E)
and
2 Moves North (N)
Shuffling around the Different N's and E's again, we will get routes like:
E-E-E-N-N
or
E-E-N-E-N
etc.
the Number of different ways we can shuffle these Identical N's and E's around is equal to =
(5!) / (3!*2!) = 10 Distinct Routes for Leg 1
AND
-2nd- Leg 2: since we need to complete the entire journey to Point Y, we must find the Same No. of Unique Routes from Point Z to Point Y.
Again, there will always be 3 Moves East (E) and 2 Moves North (N)
(5!) / (3!*2!) = 10 Distinct Routes for Leg 2
Finally, to find the Total No. of Distinct Routes for the ENTIRE Journey from Point X to Point Y:
we have 10 Distinct Routes for Leg 1
and
these 10 Distinct Routes for Leg 1 can be shuffled and arranged with the 10 Distinct Routes for Legs 2 to find ------>
10*10 = 100 different Routes through the Park that we should not have counted originally.
(210 Original Over-Count) - (100 Routes NOT allowed) = 110 Possible Routes
Very difficult variation on a problem-type that has shown up in the Official Guide a few times......Nice 750+ type problem!