card trick based on pigeon hole principle

13
A CARD TRICK BASED ON PIGEON-HOLE PRINCIPLE J.M.S.S.Silva

Upload: shashindra-silva

Post on 18-May-2015

3.431 views

Category:

Education


1 download

TRANSCRIPT

Page 1: Card Trick based on Pigeon hole principle

A CARD TRICK BASED ON PIGEON-HOLE

PRINCIPLEJ.M.S.S.Silva

Page 2: Card Trick based on Pigeon hole principle

Combinatorial Card Trick

A magician asks an unsuspecting observer to randomly choose five cards from a standard deck of playing cards.

The participant does not show these cards to the magician, but does show them to the magician’s accomplice.

The accomplice looks at the five cards, chooses four of them, and shows these four to the magician in a certain ordered manner.

The magician immediately identifies the fifth hidden card.

Page 3: Card Trick based on Pigeon hole principle

Explanation Note that in any hand of five cards there must be

two cards of the same suit (by Pigeonhole Principle).

The first card that the accomplice shows to the magician is one of these two cards.

The other card of the same suit is never shown – it is the mystery card, the card which the magician must discover.

Thus, the accomplice can easily communicate the suit of the hidden card.

Page 4: Card Trick based on Pigeon hole principle

Explanation From those two cards of the same suit, A and B,

the accomplice shows the magician card A such that distance(A, B) is 6 or less.

Using Pigeonhole principle

it can be shown that there

is such an arrangement

for any two cards.

Page 5: Card Trick based on Pigeon hole principle

Example For example, given the choice between the three of

clubs and the Jack of clubs, the accomplice reveals the Jack.

Distance (Jack ,3) = 5 and Distance(3, Jack)= 8. The three of clubs remains hidden.

Page 6: Card Trick based on Pigeon hole principle

Explanation Finally, the accomplice arranges the last three

cards to encode a number from 1 to 6 – the distance from the value of first card to that of the hidden card.

A quick calculation allows the magician to discover the value of the mystery card.

This is done by decoding the sequence of shown cards.

Page 7: Card Trick based on Pigeon hole principle

Explanation There are three more cards left.

These cards can be arranged in 6 different ways.

Based on a numbering method, the 3 remaining cards can be ranked 1st, 2nd and 3rd.

The accomplice may agree with the magician that each arrangement of these 3 cards represent a specific number between 1 and 6.

Page 8: Card Trick based on Pigeon hole principle

Example Below table is an example of a decoding

method.

Arrangement Encoded Number

1, 2, 3 1

1, 3, 2 2

2, 1, 3 3

2, 3, 1 4

3, 1, 2 5

3, 2, 1 6

Page 9: Card Trick based on Pigeon hole principle

Explanation The the magician will decode the above

sequence and add the decoded number to the first card.

This will be the hidden card.

Page 10: Card Trick based on Pigeon hole principle

Question

If following cards are selected what cards have to be shown to the magician and in what order ?

Page 11: Card Trick based on Pigeon hole principle

Answer

First card should be 8 of Hearts.

There are two cards from Hearts.

Distance (8,Jack)=3 . But Distance (Jack,8)=10.

Therefore 8 is showed first.

Page 12: Card Trick based on Pigeon hole principle

Answer Now we have to encode number 3 using the

remaining 3 cards. Using the previous table the arrangement

should be 2,1,3 according to their ranks. Below is the correct order.It is assumed that

A is the lowest ranked card.

Page 13: Card Trick based on Pigeon hole principle

Thank You