aspose file tools*
The moose likes Programming Diversions and the fly likes how to cut a cake which is round into 8 equal pieces with just 3 strokes of a Knife?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "how to cut a cake which is round into 8 equal pieces with just 3 strokes of a Knife??" Watch "how to cut a cake which is round into 8 equal pieces with just 3 strokes of a Knife??" New topic
Author

how to cut a cake which is round into 8 equal pieces with just 3 strokes of a Knife??

J radolf
Ranch Hand

Joined: Jan 08, 2009
Posts: 121
can anybody solve this simple puzzle


i know the answer by the way.
John Plaer
Greenhorn

Joined: Apr 09, 2009
Posts: 10
1. First stroke:Straight from the middle, dividing the cake in two equal halves
2. 2nd stroke: Similar cut at 90 degrees, so that cake is now in 4 equal parts
3. 3rd: From the side throughout the cake ;) (you will need a knife longer than cake)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41574
    
  54
I can. But why are you banging your head against the wall if you know the answer?


Ping & DNS - my free Android networking tools app
J radolf
Ranch Hand

Joined: Jan 08, 2009
Posts: 121
I can. But why are you banging your head against the wall if you know the answer?



i like that bangHead Emoticon.

J radolf
Ranch Hand

Joined: Jan 08, 2009
Posts: 121
Good Answer John Plaer
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41574
    
  54
John's answer assumes that the cake is symmetrical along the vertical axis. :-) An approach that also works for asymmetrical cakes would involve rearranging the 4 pieces before making the third cut.

I like that bangHead Emoticon.

Let's not turn this into Meaningless Drivel, please ...
J radolf
Ranch Hand

Joined: Jan 08, 2009
Posts: 121
Let's not turn this into Meaningless Drivel, please ...


Ya sure Sir
Pranav Bhatt
Ranch Hand

Joined: Mar 20, 2006
Posts: 284
Cut the cake into two halves. Put one half on top of other, cut again. Now again the put 4 pieces on top of each other. Cut the piled up pieces from top in half again. You get 8 equal pieces with 3 blows...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to cut a cake which is round into 8 equal pieces with just 3 strokes of a Knife??