All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Logic > Liars and Knights
Election in Logistan (Posted on 2008-03-24) Difficulty: 4 of 5

M, military ruler of Logistan, has deferred to international pressure and agreed to hold an election in which he will run against his arch-nemesis, B. Both M and B, being politicians, are liars. You have been engaged as an independent consultant and charged with devising a representative voting procedure, i.e., your mission is to tally the true preference of each citizen who has a consistent, determinable opinion, and no other.

The chief complication relates to the fact that the Logistani electorate is composed of five (to your eyes) indistinguishable ethnic groups, each of which have a distinctive relationship to the truth. When expressing their voting preference:

  • Knights respond honestly.
  • Liars negate their true view.
  • Subversives consider how a a knight with the same views would respond, then say the opposite.
  • Revisionists admire knights and liars, and despise subversives. A revisionist will copy the most recent knight or liar to have voted, unless a subversive has voted more recently. In this latter case, the revisionist will vote for the opposite of that subversive.
  • Contrarians reverse the answer of the most recent voter.

A contrarian or revisionist would respond randomly if he were the first voter queried.

You are to hold the election at the national stadium, to which the entire Logistani electorate has been invited. After some thought, you decide you can conduct the vote by asking members of the assembled electorate a single yes/no question. This is an open ballot, so each voter will call out his/her answer to the question for all to hear.

Suggest a viable question and any procedural arrangements, explaining how they enable you to fulfill your mission.

See The Solution Submitted by FrankM    
Rating: 2.5000 (4 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution re(2): Much more than just a Simplistic solution | Comment 12 of 31 |
(In reply to re: Much more than just a Simplistic solution by FrankM)

The question: Are you a knight who wants to vote B or a lier who votes M?

A knight and a lier would always express their true desire regarding whether they want to vote for B or not.

The scheme consists of two stages.

Stage 1: Finding a revisionist R

Li is ith Logistani where i=1 and i <= total no of Logistanis

1) B votes B (i.e. answers Yes)

2) Li votes Vi

3) M votes M(i.e. answers No)

4) Li votes Vi`

if (Vi==Vi`)

{

   send Li back into stadium; repeat steps from 1) for next Li;

}

else

{

   if (Vi==B) // i.e. Li is revisionist

   {

      tell Li to stay; call him R (revisionist); move to Stage 2;

   }

   else // Li is contrarian

   {

      tell Li to go home; repeat steps from 1) for next Li;

   }

}

Stage 2: Conducting actual vote

Li is ith Logistani where i=1 and i <= total no of Logistanis left after Stage 1. Now, we also have a known revisionist R.

1) B votes B

2) Li votes Vi

3) M votes M

4) Li votes Vi`

if (Vi==Vi`)

{

   5) R votes Vr

   if (Vr != Vi) //meaning that Li is Subversive (because a known revisionist voted opposite to Li)

   {

      Count inverse of Vi as the vote;     

   }

   else

   {

      Count Vi as the vote;

   }

   go to step 1 for the next Li;

}


  Posted by elementofsurprize on 2008-03-25 20:22:23
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (12)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information