Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Miscellaneous > Lounge

Notices

Reply
 
Thread Tools Search this Thread
Old 07-23-2010, 08:03 AM   #1
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,948
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Queen's Heads Puzzle 2

Follow-on to this puzzle (as suggested by LazyScot). If you haven't tried that puzzle yet, do so now.

Having gained your freedom, by luck or judgement, after a few months you succumbed to temptation, were caught, and have ended up in the gaol again.

The same chance to win your freedom is given to you (see the above link to the original puzzle), with one important difference. As a second-time offender, you may only choose 20 coins.

1. What strategy maximises your chance of gaining your freedom?
2. Using this strategy, how likely are you to gain your freedom?

As usual, answers in
Spoiler:
spoiler tags
please, so everyone can have a go.

I haven't thought about this puzzle myself yet, so I don't know what the correct answers are! Hopefully I'll have answers to post in a few days.
pdurrant is offline   Reply With Quote
Old 07-23-2010, 08:26 AM   #2
obs20
Wizard
obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.
 
obs20's Avatar
 
Posts: 2,793
Karma: 29028512
Join Date: May 2010
Location: Florida
Device: Sony PRS 600, Nook ST, Toshiba Excite 10.1 AT 300
Is This It?

Spoiler:
I'd have to plan on a stay in prison. At best I'd have 20 to heads to 21 which are already on the table. If I took only those which are already heads I'd still be down by one.
obs20 is offline   Reply With Quote
Advert
Old 07-23-2010, 08:42 AM   #3
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,948
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by obs20 View Post
Spoiler:
I'd have to plan on a stay in prison. At best I'd have 20 to heads to 21 which are already on the table. If I took only those which are already heads I'd still be down by one.
The question is not "What are the odds of freedom following the strategy used in the previous puzzle answer?", as that is certainly not the best strategy in this instance.
pdurrant is offline   Reply With Quote
Old 07-23-2010, 09:14 AM   #4
obs20
Wizard
obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.
 
obs20's Avatar
 
Posts: 2,793
Karma: 29028512
Join Date: May 2010
Location: Florida
Device: Sony PRS 600, Nook ST, Toshiba Excite 10.1 AT 300
Quote:
Originally Posted by pdurrant View Post
The question is not "What are the odds of freedom following the strategy used in the previous puzzle answer?", as that is certainly not the best strategy in this instance.
Spoiler:
While It's possible to pick off 11 of the existing 21 heads(without turning them over) on the table it doesn't seem probable; but it is the only strategy that I can think of at the moment.
obs20 is offline   Reply With Quote
Old 07-23-2010, 09:39 AM   #5
LCF
Wizard
LCF ought to be getting tired of karma fortunes by now.LCF ought to be getting tired of karma fortunes by now.LCF ought to be getting tired of karma fortunes by now.LCF ought to be getting tired of karma fortunes by now.LCF ought to be getting tired of karma fortunes by now.LCF ought to be getting tired of karma fortunes by now.LCF ought to be getting tired of karma fortunes by now.LCF ought to be getting tired of karma fortunes by now.LCF ought to be getting tired of karma fortunes by now.LCF ought to be getting tired of karma fortunes by now.LCF ought to be getting tired of karma fortunes by now.
 
LCF's Avatar
 
Posts: 1,472
Karma: 9795311
Join Date: Aug 2008
Location: Germany
Device: Hanlin V3 (LBook), GS3
Spoiler:

I wouldn't flip anything. The chances that I take 11 or more from the right ones are not so great, but flipping them all is 100% lose and I can't think of a strategy, where random flipping helps. There is probably one though.
I know, this is not a complete answer, but that's as far away as I came for 2 minutes with the pencil
LCF is offline   Reply With Quote
Advert
Old 07-23-2010, 04:52 PM   #6
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,948
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Not an answer, just my thoughts so far

Spoiler:
It seems to me that the best strategy might just be to take simply choose 20 coins at random. It's a poor chance, but I don't see a way to improve it yet. Perhaps there isn't a way.
pdurrant is offline   Reply With Quote
Old 07-24-2010, 04:19 AM   #7
jbjb
Somewhat clueless
jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.
 
Posts: 772
Karma: 9999999
Join Date: Nov 2008
Location: UK
Device: Kindle Oasis
Spoiler:

I think you can do much better than simply picking 20 without turning over. I calculate the probability of being freed with that strategy as 0.000136 i.e. a 0.0136% chance of survival. (calculation below).

On the other hand, while we know that if we turn over all 20 we are guaranteed to lose, we also know that:

- each coin chosen and turned over reduces the gaoler’s excess by one.
- each coin chosen and not turned over either reduces the excess by 2 or 0, if it is a head or not (respectively)

Thus a strategy of pick one without turning over and then pick 19 with turning over (in fact the order doesn’t matter) will result in success if the one not turned over was a head. I.e. if it was a head the deficit is now 19, so our remaining 19 draws can eliminate that using the turning over method.

The chance of picking a head on the first draw is 21/101, i.e. 20.79% - much better!

Looking at the other options (e.g. drawing 3 without turning and hoping for 2 or more heads in that set, and then following up with 17 turn-over draws), shows that 1 unturned and 19 turned gives the best chance.

So, the best strategy is to draw one without turning it over then draw and turn over 19, which gives a survival probability of 20.79%.


Analysis of drawing 20 coins at random and hoping for survival:

In general, the probability of drawing h heads from n draws in a particular way is:

((21!/(21-h)!)*(80!/(80+h-n)!))/(101!/(101-n)!)

And the number of ways of drawing h from n is:

n!/((n-h)!h!)


For example, the probability of drawing 3 in 5 draws in a particular way is:
(21*20*19)*(80*79)/(101*100*99*98*97)
The number of ways of drawing 3 from 5 is:
5!/3!2!


The overall probability of drawing h from n is the product of these two.

If we call this probability p(h,n), then we survive if we draw at least 11 (leaving him with 10).

I.e. The probability of survival is:
p(11,20)+p(12,20)+ ... + p(20,20)

Putting this in a spreadsheet shows that the probability of survival is 0.000136.



/JB
jbjb is offline   Reply With Quote
Old 07-24-2010, 08:36 AM   #8
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,948
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by jbjb View Post
Spoiler:

I think you can do much better than simply picking 20 without turning over. I calculate the probability of being freed with that strategy as 0.000136 i.e. a 0.0136% chance of survival. (calculation below).

On the other hand, while we know that if we turn over all 20 we are guaranteed to lose, we also know that:

- each coin chosen and turned over reduces the gaoler’s excess by one.
- each coin chosen and not turned over either reduces the excess by 2 or 0, if it is a head or not (respectively)

Thus a strategy of pick one without turning over and then pick 19 with turning over (in fact the order doesn’t matter) will result in success if the one not turned over was a head. I.e. if it was a head the deficit is now 19, so our remaining 19 draws can eliminate that using the turning over method.

The chance of picking a head on the first draw is 21/101, i.e. 20.79% - much better!

Looking at the other options (e.g. drawing 3 without turning and hoping for 2 or more heads in that set, and then following up with 17 turn-over draws), shows that 1 unturned and 19 turned gives the best chance.

So, the best strategy is to draw one without turning it over then draw and turn over 19, which gives a survival probability of 20.79%.


Analysis of drawing 20 coins at random and hoping for survival:

In general, the probability of drawing h heads from n draws in a particular way is:

((21!/(21-h)!)*(80!/(80+h-n)!))/(101!/(101-n)!)

And the number of ways of drawing h from n is:

n!/((n-h)!h!)


For example, the probability of drawing 3 in 5 draws in a particular way is:
(21*20*19)*(80*79)/(101*100*99*98*97)
The number of ways of drawing 3 from 5 is:
5!/3!2!


The overall probability of drawing h from n is the product of these two.

If we call this probability p(h,n), then we survive if we draw at least 11 (leaving him with 10).

I.e. The probability of survival is:
p(11,20)+p(12,20)+ ... + p(20,20)

Putting this in a spreadsheet shows that the probability of survival is 0.000136.



/JB
Oh, excellent analysis. It seems sound to me, but I'll think about it for a bit. Increasing your chance of survival by over a thousand-fold is a very significant improvement!
pdurrant is offline   Reply With Quote
Old 07-24-2010, 09:38 AM   #9
obs20
Wizard
obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.
 
obs20's Avatar
 
Posts: 2,793
Karma: 29028512
Join Date: May 2010
Location: Florida
Device: Sony PRS 600, Nook ST, Toshiba Excite 10.1 AT 300
Quote:
Originally Posted by jbjb View Post
Spoiler:

I think you can do much better than simply picking 20 without turning over. I calculate the probability of being freed with that strategy as 0.000136 i.e. a 0.0136% chance of survival. (calculation below).

On the other hand, while we know that if we turn over all 20 we are guaranteed to lose, we also know that:

- each coin chosen and turned over reduces the gaoler’s excess by one.
- each coin chosen and not turned over either reduces the excess by 2 or 0, if it is a head or not (respectively)

Thus a strategy of pick one without turning over and then pick 19 with turning over (in fact the order doesn’t matter) will result in success if the one not turned over was a head. I.e. if it was a head the deficit is now 19, so our remaining 19 draws can eliminate that using the turning over method.

The chance of picking a head on the first draw is 21/101, i.e. 20.79% - much better!

Looking at the other options (e.g. drawing 3 without turning and hoping for 2 or more heads in that set, and then following up with 17 turn-over draws), shows that 1 unturned and 19 turned gives the best chance.

So, the best strategy is to draw one without turning it over then draw and turn over 19, which gives a survival probability of 20.79%.


Analysis of drawing 20 coins at random and hoping for survival:

In general, the probability of drawing h heads from n draws in a particular way is:

((21!/(21-h)!)*(80!/(80+h-n)!))/(101!/(101-n)!)

And the number of ways of drawing h from n is:

n!/((n-h)!h!)


For example, the probability of drawing 3 in 5 draws in a particular way is:
(21*20*19)*(80*79)/(101*100*99*98*97)
The number of ways of drawing 3 from 5 is:
5!/3!2!


The overall probability of drawing h from n is the product of these two.

If we call this probability p(h,n), then we survive if we draw at least 11 (leaving him with 10).

I.e. The probability of survival is:
p(11,20)+p(12,20)+ ... + p(20,20)

Putting this in a spreadsheet shows that the probability of survival is 0.000136.



/JB
I think you've got something:
Spoiler:
Say you do pick off a head on the first draw now he has 20 heads and you have 19 more picks. The situation has gone from bleak to grim.
obs20 is offline   Reply With Quote
Old 07-24-2010, 10:26 AM   #10
jbjb
Somewhat clueless
jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.jbjb ought to be getting tired of karma fortunes by now.
 
Posts: 772
Karma: 9999999
Join Date: Nov 2008
Location: UK
Device: Kindle Oasis
Quote:
Originally Posted by obs20 View Post
I think you've got something:
Spoiler:
Say you do pick off a head on the first draw now he has 20 heads and you have 19 more picks. The situation has gone from bleak to grim.
Spoiler:

If you pick off a head in the first draw, and don't turn it over, you're now safe. He now has 20 heads and you've got 1. By picking and turning over the next 19, you can be sure to match his number.


/JB
jbjb is offline   Reply With Quote
Old 07-24-2010, 04:25 PM   #11
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,948
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by jbjb View Post
Spoiler:

If you pick off a head in the first draw, and don't turn it over, you're now safe. He now has 20 heads and you've got 1. By picking and turning over the next 19, you can be sure to match his number.


/JB
Yes, I agree. Another way to look at it:

Spoiler:
You pick a coin and it's a head.

There are now 20 heads and 80 tails left. Pick 19 coins than have X heads in them. The gaoler is left with 20-X heads. You turn your coins over and now have 19-X heads. Add in the one head you first picked, and you have 20-X heads, matching the Gaoler and you go free.

Of course, if you picked a tail with that first coin, the gaoler has 21-X while you only have 19-X.

But yes, a definite 21/100 chance of freedom


So — we have a strategy that gives just over a 20% chance of freedom. Can anyone do any better?
pdurrant is offline   Reply With Quote
Old 07-24-2010, 04:58 PM   #12
obs20
Wizard
obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.obs20 ought to be getting tired of karma fortunes by now.
 
obs20's Avatar
 
Posts: 2,793
Karma: 29028512
Join Date: May 2010
Location: Florida
Device: Sony PRS 600, Nook ST, Toshiba Excite 10.1 AT 300
Quote:
Originally Posted by jbjb View Post
Spoiler:

If you pick off a head in the first draw, and don't turn it over, you're now safe. He now has 20 heads and you've got 1. By picking and turning over the next 19, you can be sure to match his number.


/JB

Like I said a 20% chance of freedom is grim.
obs20 is offline   Reply With Quote
Old 07-26-2010, 06:05 PM   #13
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,948
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
The next puzzle is up.

https://www.mobileread.com/forums/showthread.php?t=92200
pdurrant is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Queen's Heads Puzzle pdurrant Lounge 24 07-23-2010 08:10 AM
Historical Fiction Bowen, Marjorie: The Queen's Caprice. V1. 28 Nov 2008 crutledge Kindle Books 1 12-21-2008 06:36 AM
Science Fiction Phillips, Mark: Queen's Own FBI Trilogy. v2, 9 Jun 2008 HarryT Kindle Books (offline) 5 06-11-2008 02:30 PM
Science Fiction Phillips, Mark: Queen's Own FBI Trilogy. v2, 9 Jun 2008 HarryT BBeB/LRF Books (offline) 13 06-09-2008 04:32 AM


All times are GMT -4. The time now is 10:07 AM.


MobileRead.com is a privately owned, operated and funded community.