Jump to content


Welcome to BrainDen.com - Brain Teasers Forum

Welcome to BrainDen.com - Brain Teasers Forum. Like most online communities you must register to post in our community, but don't worry this is a simple free process. To be a part of BrainDen Forums you may create a new account or sign in if you already have an account.
As a member you could start new topics, reply to others, subscribe to topics/forums to get automatic updates, get your own profile and make new friends.

Of course, you can also enjoy our collection of amazing optical illusions and cool math games.

If you like our site, you may support us by simply clicking Google "+1" or Facebook "Like" buttons at the top.
If you have a website, we would appreciate a little link to BrainDen.

Thanks and enjoy the Den :-)
Guest Message by DevFuse
 

Photo
- - - - -

Card Counting


Best Answer bonanova, 29 April 2013 - 11:39 AM

Spoiler for Comparing the two approaches:

Go to the full post


  • Please log in to reply
19 replies to this topic

#11 superprismatic

superprismatic

    Not just Prismatic

  • Moderator
  • PipPipPipPip
  • 1281 posts
  • Gender:Male

Posted 27 April 2013 - 02:53 PM

Spoiler for corrected version of my last post #8


  • 0

#12 BMAD

BMAD

    Senior Member

  • Members
  • PipPipPipPip
  • 1679 posts
  • Gender:Female

Posted 27 April 2013 - 07:31 PM

Spoiler for hint3

  • 0

#13 bonanova

bonanova

    bonanova

  • Moderator
  • PipPipPipPip
  • 5841 posts
  • Gender:Male
  • Location:New York

Posted 29 April 2013 - 11:39 AM   Best Answer

Spoiler for Comparing the two approaches:


  • 0
The greatest challenge to any thinker is stating the problem in a way that will allow a solution.
- Bertrand Russell

#14 superprismatic

superprismatic

    Not just Prismatic

  • Moderator
  • PipPipPipPip
  • 1281 posts
  • Gender:Male

Posted 29 April 2013 - 08:25 PM

Spoiler for how I computed it


  • 0

#15 bonanova

bonanova

    bonanova

  • Moderator
  • PipPipPipPip
  • 5841 posts
  • Gender:Male
  • Location:New York

Posted 29 April 2013 - 10:03 PM

Spoiler for how I computed it

Nice. At first blush it looks solid.

Intuitively I'm expecting something closer to 1/13, but it is what the process says it is.

Having just learned generating functions, I'm thinking the gf for this approach might be reasonably straightforward.


  • 0
The greatest challenge to any thinker is stating the problem in a way that will allow a solution.
- Bertrand Russell

#16 BMAD

BMAD

    Senior Member

  • Members
  • PipPipPipPip
  • 1679 posts
  • Gender:Female

Posted 30 April 2013 - 01:46 AM

Spoiler for hint4

  • 0

#17 bonanova

bonanova

    bonanova

  • Moderator
  • PipPipPipPip
  • 5841 posts
  • Gender:Male
  • Location:New York

Posted 30 April 2013 - 06:39 AM

Spoiler for hint4

 

BMAD, for generating-function result, see post 13.


  • 0
The greatest challenge to any thinker is stating the problem in a way that will allow a solution.
- Bertrand Russell

#18 BMAD

BMAD

    Senior Member

  • Members
  • PipPipPipPip
  • 1679 posts
  • Gender:Female

Posted 05 May 2013 - 12:56 AM

Spoiler for my solution

  • 0

#19 superprismatic

superprismatic

    Not just Prismatic

  • Moderator
  • PipPipPipPip
  • 1281 posts
  • Gender:Male

Posted 05 May 2013 - 08:29 PM

I found a novice programmer mistake in my code which computed the values in

my post #14.  The value I get now is the same that bonanova and BMAD get.

I'm relieved that my approach agrees with the concise generating function one.


  • 0

#20 BMAD

BMAD

    Senior Member

  • Members
  • PipPipPipPip
  • 1679 posts
  • Gender:Female

Posted 05 May 2013 - 08:43 PM

I found a novice programmer mistake in my code which computed the values in

my post #14.  The value I get now is the same that bonanova and BMAD get.

I'm relieved that my approach agrees with the concise generating function one.

i am too :-)


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users