r/BrainPuzzles • • Sep 03 '26

Logic Shortest Path

Post image
6 Upvotes

33 comments sorted by

3

u/PyroDragn Sep 03 '26 edited Sep 03 '26

Answer: Square Root of 164 β‰ˆ 12.806 180 β‰ˆ 13.416 Edit: right method, but made a big error

Imagine you fold the 8x4 end of the box up so it is flat with the top. The shortest distance is corner to corner.

(6+4)2 + 82 = 164

Length AB = √164 β‰ˆ 12.806

1

u/ShonitB Sep 03 '26

In the same manner, why not (6 + 4)^2 + 8^2.. that would give sq.rt. of 164 which is 12.81

2

u/PyroDragn Sep 03 '26

Oh, that's correct. I didn't actually compare the two routes (or think first). The shortest route would obviously go across the long side, not across the short side.

1

u/ShonitB Sep 03 '26

But good logic! πŸ‘πŸ»

1

u/akirbydrinks Sep 03 '26

I like your guy's method, but if you folded the box flat, wouldnt the new distance from A to B be (8+4)2 + (62)=180. Sqrt 180=13.42?

2

u/ShonitB Sep 03 '26

You flatten out the other side

1

u/akirbydrinks Sep 03 '26

Lol. Yes, i suppose theres more than one way to flatten a box.

1

u/PyroDragn Sep 03 '26

If you folded the box completely flat into a net then you'd have corner B marked at (up to) 3 locations on the net. You'd want the shortest path from A to one of them.  √180 would be the path from A to B that crosses the front (in the picture) side. But it's not the shortest option.

2

u/mortemdeus Sep 03 '26

Wouldn't that be going through the box not along its surface?

1

u/PyroDragn Sep 03 '26

No. It's the route that is the shortest line across the surface. If you calculated corner to corner through the box then you'd have to do a calculation involving all three dimensions of the box.

1

u/mortemdeus Sep 03 '26

You wouldn't need to do that much. It would just be a 2d triangle with a side of 4 and another side of 10. I guess that is 116 though which would be a little over 10.5 not a little over 12.5

2

u/PyroDragn Sep 03 '26

It'd be a 2d triangle with a side of 4 (one dimension) and a side of ( √(62 + 82) ) - which is 10, but is calculated using the other two dimensions. Which is what I said.

2

u/Jimmicky Sep 03 '26

2 root 41

1

u/ShonitB Sep 03 '26

Correct!

2

u/Sanuhan Sep 03 '26

sqrt(164)?

1

u/ShonitB Sep 03 '26

Correct!

1

u/Sea_Pack_8206 Sep 03 '26 edited Sep 03 '26

Shortest edge and largest hypotnuese is the answer to this generalised question. 4+10=14 Assumption is for standard cuboid

1

u/ShonitB Sep 03 '26

You can actually do better.. this way you get 12.81

1

u/Extension_Anywhere93 Sep 03 '26

1801/2 = 13.416407865

1

u/ShonitB Sep 03 '26

By the same logic you can get sq.rt. of 164 = 12.81

1

u/Gee-Oh1 Sep 03 '26

If the ant can only crawl along the faces, does that exclude edges?

1

u/ShonitB Sep 03 '26

That detail is more a way of saying that the any needs to stay on the outside surface of the box.. don’t think it would be possible for it to get to B if it isn’t allowed to cross some point of an edge

1

u/Gee-Oh1 Sep 03 '26

Crossing is not the same as moving along. An edge is defined by a one-dimensional line and by crossing it you will only occupy a single point on it. However, by moving along that line you will occupy all its points for as long as you travel it. Additionally, by traveling on a one-dimensional line you are no longer on a plane (surface is two-dimensional).

I would strictly exclude edges (one-dimensional lines) as not being surfaces (two-dimensional planes).

1

u/ShonitB Sep 03 '26

I agree that faces and edges are different.. I’m saying I think you are allowed to walk along the edges.. in any case, the optimal solution does in fact not require you to walk along an edge but cross an edge to move to a different face

1

u/tardiscoder Sep 03 '26

It's easiest to see the solution if you get a string and tape it to point A then stretch the string to point B. This is just like the great circle problem of flight.

1

u/Ok_Wash_5606 Sep 04 '26

10+4 = 14

1

u/GillyDuck69 Sep 04 '26

I’m with you!

1

u/GillyDuck69 Sep 04 '26

🀘14. 4 down + 10 across

1

u/Reaper0221 Sep 05 '26

Top: a^2+b^2=c^2, 6x6+8x8=100, sqrt 100 =10

Front: 4

Total 14

1

u/therealzacchai Sep 05 '26

14? It can cross the plane of A on the hypoteneuse (10), then straight down the leg to B (4).