Abstract

We consider the following solitaire game whose rules are reminiscent of the childrenʼs game of leapfrog. The game is played on a poset (P,≺) with n elements. The player is handed an arbitrary permutation π=(x1,x2,…,xn) of the elements in P. At each round an element may “skip over” a smaller element preceding it, i.e. swap positions with it. For example, if xi≺xi+1, then it is allowed to move from π to the permutation (x1,x2,…,xi−1,xi+1,xi,xi+2,…,xn) of Pʼs elements. The player is to carry out such steps as long as such swaps are possible. When there are several consecutive pairs of elements that satisfy this condition, the player can choose which pair to swap next. Does the playerʼs choice of swaps matter for the final permutation or is it uniquely determined by the initial order of Pʼs elements? The reader may guess correctly that the latter proposition is correct. What may be more surprising, perhaps, is that this question is not trivial. The proof works by constructing an appropriate system of invariants.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.