Puzzle time - Medieval etiquette and rivers
-
In eighth century Europe, it was considered unseemly for a man to be in the presence of a married woman, unless her husband was there as well. This posed problems for three married couples who wished to cross a river, the only means being a rowboat that could carry at most two people.
Can they get to the other side without violating their social norms? If so, what's the minimum number of crossings needed?
-
:::
Let's designate the people M 0,W 0,M 1,W 1,M 2,W 2, whereby M x is married to W x.Here's a valid move sequence.
[M 0,W 0],[M 0],[W 1,W 2],[W 1],[M 2,M 0],[W 0,M 0],[M 1,M 0],[W 2],[W 1,W 0],[M 2],[W 2,M 2]
From what I can see, there are 192 different solutions. If you factor out permutations, 32 distinct solutions remain, 8 of which have length 11, 8 of which have length 13, and 16 of which have length 15. So, the minimum number of crossings is 11.
Would be a nice exercise to model and verify this in a class on verification of finite state systems. It would be easy to express the safety condition and the desired final state in LTL.
::: -
Which reminds me of an important PSA. Don’t ever try to fuck in a canoe.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login