logo Sign In

ricarleite

User Group
Members
Join date
9-Apr-2004
Last activity
21-Aug-2020
Posts
6,592

Post History

Post
#90372
Topic
Rankings
Time
Originally posted by: Bossk
Originally posted by: ricarleite
I don't think I'll ever be able to achieve 5 thousand posts... It would take me another full year...


I think it's about time for you to get reeeeeaaalllllyyyyyy bored at work.


I am quite bored. I'm a little bit ahead of schedule, so I gotta kill some time.
Post
#90429
Topic
Riddles
Time
OK let me add two things:

The philosofers are "blind".

The philosophers already grab one fork at a time. Imagine all of them grab the left one at the same time, and they all go with their hands to the right one, and of course they won't find the right fork. They'll just wait in that position, and this will lock things up. Now, define a rule for the philosophers to follow, so a lock up never happens.
Post
#90396
Topic
Riddles
Time
Quote

Originally posted by: Starboy
Can I just have one filosopher (generally we spell it philosopher, after the Greek spelling) grab right then left?


It's almost that. Just think a little bit harder and you'll get it.

And no, no coding please. This is "riddles", not "coding".
Post
#90384
Topic
Riddles
Time
Quote

Originally posted by: ricarleite
Imagine that there are five filosofers sitting on a round table, each with a plate with spaghetti on it. These filosofers eat the spaghetti using 2 forks at the same time. Now, between each plate there is only one fork, so that a filosofer can see his plate, a fork on the left side, and a fork on the right side. OK? Now, every filosofer will start eating his spaghetti at a random time, eat it for a random time, and stop eating it at a random time, the proceed to eat again, ad infinitum. When a filosofer decides to eat the spaghetti, he'll reach for BOTH forks and proceed to eat. The problem is, if a filosofer grabs a fork, let's say, on his left side, the filosofer to his left can't grab his RIGHT fork, get it? Now, if a filosofer wants to eat, and he can't get both of his right and left forks, he'll just stay there, waiting for the fork. Unfortunally, this can lead to a lock up if every filosofer grabs one fork. Now, you gotta decide a special rule so that this scenario never happens, and the filosofers never lock up.


Since I got the last one right, this is my riddle. It's not as insane as it may seem, it's actually as easy as the ball one.
Post
#90383
Topic
The DanielB Prisoners and Lightbulbs Thread
Time
Quote

Originally posted by: Starboy

Daniel, have you found a solution to this, or am I just too pessimistic about the probability? Does the math work out like the "two people in the room with the same birthday" problem? No...it can't. Hmmm...


It dosen't, because it's like throwing a dice twice and getting sequential numbers.

It's a good probability problem, the "same birthday" one... It's one of those "I can't belive this is the answer" problems.