Brilli the ant is going from point to point on a grid. It can either move one unit up or one unit to the right in one move, along the grid lines. The perimeter of the area in which it can move is given in the figure by a quarter circle of radius 10 centred at point . Along the way it encounters small bead obstacles which can be moved by a unit distance along the direction in which it is moving. So if it is moving from to and if there is an obstacle at , then the obstacle moves to and Brilli moves to . There are three obstacles in total, at , and . The obstacles too are not allowed to cross the perimeter but move along the perimeter, just like Brilli. Find the number of possible paths such that Brilli can reach its destination from point A to point B.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Relevant wiki: Dynamic Programming
The problem is very much similar to the one posted here : Quartermeterpath with added constraint of movable obstacles.