Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Puzzle  





2 Solution  





3 Generalisations  





4 References  














Four glasses puzzle






Հայերեն
Português
Русский
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


A four glasses puzzle solution
? denote glasses in either state: face up or down. Ticks denote solved arrangements. In each step, only distinct arrangements are shown.
In step 3, if a glass is face down, it is turned face up; otherwise, either glass is turned face down.

The four glasses puzzle, also known as the blind bartender's problem,[1] is a logic puzzle first publicised by Martin Gardner in his "Mathematical Games" column in the February 1979 edition of Scientific American.[2]

Puzzle

[edit]

Four glasses or tumblers are placed on the corners of a square Lazy Susan. Some of the glasses are upright (up) and some upside-down (down). A blindfolded person is seated next to the Lazy Susan and is required to re-arrange the glasses so that they are all up or all down, either arrangement being acceptable, which will be signalled by the ringing of a bell. The glasses may be re-arranged in turns subject to the following rules. Any two glasses may be inspected in one turn and after feeling their orientation the person may reverse the orientation of either, neither or both glasses. After each turn the Lazy Susan is rotated through a random angle. The puzzle is to devise an algorithm which allows the blindfolded person to ensure that all glasses have the same orientation (either up or down) in a finite number of turns. The algorithm must be non-stochastic i.e. it must not depend on luck.[3]

Solution

[edit]

An algorithm that guarantees the bell will ring in at most five turns is as follows:[2]

  1. On the first turn choose a diagonally opposite pair of glasses and turn both glasses up.
  2. On the second turn choose two adjacent glasses. At least one will be up as a result of the previous step. If the other is down, turn it up as well. If the bell does not ring, then there are now three glasses up and one down.
  3. On the third turn choose a diagonally opposite pair of glasses. If one is down, turn it up and the bell will ring. If both are up, turn one down. There are now two glasses down, and they must be adjacent.
  4. On the fourth turn choose two adjacent glasses and reverse both. If both were in the same orientation then the bell will ring. Otherwise there are now two glasses down and they must be diagonally opposite.
  5. On the fifth turn choose a diagonally opposite pair of glasses and reverse both. The bell will ring.

Generalisations

[edit]

The puzzle can be generalised to n glasses instead of four. For two glasses it is trivially solved in one turn by inverting either glass. For three glasses there is a two-turn algorithm. For five or more glasses there is no algorithm that guarantees the bell will ring in a finite number of turns.[2]

A further generalisation allows k glasses (instead of two) out of the n glasses to be examined at each turn. An algorithm can be found to ring the bell in a finite number of turns as long as k ≥ (1 − 1/p)n where p is the greatest prime factor of n.[2]

References

[edit]
  1. ^ Ehrenborg, Richard; Skinner, Chris (1995). "The Blind Bartender's Problem" (PDF). Journal of Combinatorial Theory, Series A. 70 (2): 249–266. doi:10.1016/0097-3165(95)90092-6.
  • ^ a b c d *Havil, Julian (2007). "Chapter 4: The Spin of a Table". Nonplussed!. Princeton University Press. ISBN 978-0-691-12056-0.
  • ^ "Braingle » 'Four glasses' Brain Teaser".

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Four_glasses_puzzle&oldid=1191918307"

    Categories: 
    Logic puzzles
    Recreational mathematics
    Hidden categories: 
    Articles with short description
    Short description matches Wikidata
     



    This page was last edited on 26 December 2023, at 16:05 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki