An ant had to travel from one corner of a room to diagonally
opposite corner. It can walk on walls, floor and roof only.
How will you find the shortest path for this ant ?

Answers were Sorted based on User's Feedback



An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / kelley w.

The room is a rectangular prism (like a cube only
rectangular). The 4 floor corners will be represented by
A,B, C, and D. The ceiling corners will be represented by
E, F, G, and H, with E being directly above A, F being
directly above B, Gbeing directly above C, and H being
directly above D. (Draw a picture, it helps) the ant needs
to go from the floor corner A to the ceiling corner G (if
I’m not mistaken). The shortest path would be a diagonal
line from A to G, but seeing as the ant cannot walk on air,
we have to find the quickest path using the walls, floor
and ceiling.
F__________G
/| /|
/B|________/_|C
E/_________H/ /
| / | /
|/_________| /
A D

The ant has four logical choices:

1) He could cross diagonally from A to C, then crawl
up the wall to G. We would have to find the length of
diagonal AC and the height of the room, which would be CG.
(He could also crawl up from A to E, and then diagonally
from E to G, but this would be the same distance as the
aforementioned choice.)
2) He could cross along the wall from A to D, then
crawl diagonally up the wall from D to G. We would have to
find the width of the room, which would be AD, and the
length of diagonal DG.
(He could also go diagonally from A to F, and then crawl
along the ceiling from F to G, but that would be the same
distance as the aforementioned choice.)
3) He could cross along the floor from A to B, then
crawl diagonally from B to G. We would have to find the
length of the room, which would be AB, and the length of
diagonal BG.
(He could also go diagonally from A to H, and then crawl
along the ceiling from H to G, but that would be the same
distance as the aforementioned choice.)
4) He could cross along the wall from A to the
midpoint of DH, then continue from the midpoint of DH to G.
We’ll call the midpoint of DH “M”. We would have to find
the width of the room, which would be AD, and half the
height of the room, which would be DM and HM. We would then
have to find the length of the diagonal AM, and then the
length of the diagonal MG.
(He could also go diagonally from A to the midpoint of BF
and then diagonally to G, but this would be the same
distance as the aforementioned choice.)
Using common sense, we can see that choice 4 will be the
quickest route for the ant. If you have trouble seeing how
this option is quickest, make up fake dimensions for the
room and find the values I mentioned above for each choice
to determine the shortest distance.
(For example, pretend the room is 5 feet high, 10 feet
wide, and 20 long. AE=5, AD=10, and AB=20.)

Is This Answer Correct ?    43 Yes 12 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / hemant from india

1. sqrt((a+b)^2+c^2),
2. sqrt((b+c)^2+a^2)
3. sqrt((c+a)^2+b^2)
which one is smaller in these is right answer

cos ant travels only thorough plane so , just unfold cuboid
u will find u have to add 2 dimensions and third dimension
in perpendicular direction and gets this ans

Is This Answer Correct ?    36 Yes 8 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / dhruv saksena

The ant will walk to the midpoint of the edge touching the corner opposite diagonally on the floor. From the mid point it will travel directly to its destination corner. this is the shortest distance possible for it to travel.

This can be calculated using a combination of differentiation and the Pythagoras theorem, it was in my test.

Is This Answer Correct ?    10 Yes 5 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / guest

Shortest path is always a straight line.
So do flat the room walls and floor and draw a straight line
between the opposite corners of the room. If room is not
cubical then that line will not pass through any edge of room.

Is This Answer Correct ?    24 Yes 23 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / jawahir kashim

Unfold the 3D cuboid into 2D. Let (A B C D,E F G H) be the edges of the cuboid.Such that A is below E and others edges resp.Unfold such that point A and its diagonal are in the same plane. The straight line joining A and G ie the diagonal in 2D is the shortest line.

Is This Answer Correct ?    2 Yes 4 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / avinash singh

shortest distance in a cube is diognaly. but ant cant fly. she can travel in a flor or roof diognaly from one corner to another one. and one side.
ex= if side is given 3. so diognaly on floor distance is 3 under root 2. and add one side is 3. so total distance is 3(1+under root 2).

Is This Answer Correct ?    3 Yes 5 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / suda

Insteatd of moving on wall and roof,If the ant moves in a
straight way in floor,it can reach the opp.corner
diagonally and it would be the shortest path for the ant.

Is This Answer Correct ?    24 Yes 28 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / devangini

There is no restriction on the way the ant can walk.

Consider the cuboid given in answer 3 and let X be the
midpoint of the surface ABCD. now the ant can walk from A to
X, X to D and D to G.

Is This Answer Correct ?    1 Yes 6 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / guru

I tried with above 10,20, and % dimensions.But the shortest
is to move diagonally across the 2 longest dimensioned wall
(10 & 10) and then move straight..(5)

So its sqrt(10^2+20^2)+5 = 27.36
if you take any other method its beyond 30.2

So A to C and then G is shortest

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More Puzzles Interview Questions

ek cricket match chal raha he jitne ke liye 7 ball me 3 runs lag rahe he. dono batsman ke runs he 94and 94. 3 balls me se koi bhi whide,extra, noball nahi gira.fir bhi dono batsman ne centuri puri ki.aur teem match jeet gayi. to dono batsman ne apni centuri puri ki kese?

13 Answers  


In a hotel, rooms are numbered from 101 to 550. A room is chosen at random. What is the probability that room number starts with 1, 2 or 3 and ends with 4, 5 or 6?

2 Answers  


agar aapse wo insaan i love you kahe jis se aap pyar nahi karte to aap uska bina dil dukhaye kya jawab doge?

11 Answers  


A cow is standing 5 feet from the middle of the bridge .A train is at a distance of 2 times length of the bridge from direction in which cow is nearer to end of the bridge is coming at a speed of 90 miles/hour.If cow moves towards train it will be saved by 1 foot.If cow moves away from train it will be hit by three inches of cow (i)Find length of bridge (ii)Find cows speed

1 Answers   eLitmus, Infosys, TCS,


Makayla had $1.19 in change. None of the coins was a dollar. Nicole ask her for change for a dollar, but Makayla could not make change. What coins did she have?

2 Answers  






During a recent school reunion,four men were discussing their starting salaries back in 1962.The salaries in question were 8,10,12 and 14 thousand pounds per year.of course the MP earned the most.Alan earned more thean brain and the doctor earnd more than Derek,the vet.charles could not remember what he started on.Brain,the lawyer,didnot start on 10,000pounds nor did Derek.can you determine who has which job and their starting salaries?

1 Answers   QA,


In rail road there are some stations. Each station should have tickets to all other stations.If they add some new stations they need 46 more tickets.How many stations are there before and after adding the stations?

0 Answers   Infosys,


Each of the five characters in the word BRAIN has a different value between 0 and 9. Using the given grid, can you find out the value of each character? B R A I N 31 B B R B A 31 N I A B B 32 N I B A I 30 I R A A A 23 37 29 25 27 29

1 Answers  


two father and two son went to a hotel, each paid rs-5 but still total amount was rs-15, how?

2 Answers   Deeanne London,


9 9 9 9 5 5 5 5 3 3 3 3 1 1 1 1 is me se kin 6 number ka total 21 hota he..? its challange..

53 Answers   Bhel, TCS, TGB,


To move a Safe, two cylindrical steel bars 7 inches in diameter are used as rollers. How far will the safe have moved forward when the rollers have made one revolution?

3 Answers  


Given the following facts: 1. Dinesh is younger than Farukh and older than Gurmit. 2. Jatin is younger than Chandu and older than Eshrat. 3. Amit is younger than Irfan and older than Chandu. 4. Farukh is younger than Bhavin and older than Hemant. 5. Irfan is younger than Gurmit and older than Jatin. 6. Hemant is older than Gurmit. Who is the Youngest?

1 Answers  


Categories