@vanadana
why are you calculating 3 complete... use minimized distance..
min.{ sqrt(4^2+x^2)+sqrt(3^2+(5-x)^2)};

so final answer is 8.6023144 units..

On Dec 31, 4:30 pm, Vandana Bachani <vandana....@gmail.com> wrote:
> The ant needs to cover: 9.403 units. It will need to pass the diagonal of
> the side (4 by 5) and go up or down the side 3 units.
> 3+ sqrt(16+25)
>
> On Fri, Dec 31, 2010 at 4:16 PM, bittu <shashank7andr...@gmail.com> wrote:
>
> > 2nd puzzle
>
> > An ant has to crawl from one corner of a room to the diametrically
> > opposite corner as quickly as possible. If the dimensions of the room
> > are 3 x 4 x 5, what distance does the ant cover?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Algorithm Geeks" group.
> > To post to this group, send email to algoge...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/algogeeks?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to