Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution of thirsty_men_problem #33

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Rahul1227
Copy link

I have proposed 3 approaches to solve the thirst_men_problem. Please, have a look at it.
Thank you

Signed-off-by: Rahul1227 <[email protected]>
Signed-off-by: Rahul1227 <[email protected]>
Signed-off-by: Rahul1227 <[email protected]>
Signed-off-by: Rahul1227 <[email protected]>
@bellaj
Copy link
Owner

bellaj commented Jan 25, 2024

interesting proposition, but the proposed approaches tend to forget that a given participant may block the process by not participating and claiming an incentive. All the approaches suppose participants will join the game.

@Rahul1227
Copy link
Author

Thank you for your clarification. Considering the time constraint mentioned in Rule 5 (Failure to act within the time limit results in a loss of opportunity), attempting to stop the process would likely lead to the loss of the opportunity.

Moreover, participants cannot prevent the process from taking place since the host will assign named cups for every guest, and eventually, the first and last cups will be filled. Even if someone decides not to participate, their cup will still be placed in the middle, resulting in a lost opportunity.

If you have any further questions or if there's anything else you'd like to discuss, feel free to let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants