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
- - - - -

With Flying Colors


  • Please log in to reply
30 replies to this topic

#11 EventHorizon

EventHorizon

    Senior Member

  • VIP
  • PipPipPipPip
  • 512 posts
  • Gender:Male

Posted 31 May 2012 - 05:52 AM

I'm not going to get the minimum, but let's try a starting guess.

Spoiler for Hmm.


Spoiler for Does that really help the worst case scenario?

  • 0

#12 EventHorizon

EventHorizon

    Senior Member

  • VIP
  • PipPipPipPip
  • 512 posts
  • Gender:Male

Posted 31 May 2012 - 11:52 AM

Spoiler for

  • 0

#13 phil1882

phil1882

    Advanced Member

  • Members
  • PipPipPip
  • 496 posts

Posted 31 May 2012 - 04:23 PM

i belive witchofsecrets solution works better for a larger number of cards.
Spoiler for

  • 0

#14 phil1882

phil1882

    Advanced Member

  • Members
  • PipPipPip
  • 496 posts

Posted 31 May 2012 - 05:37 PM

Spoiler for solution in 9?

  • 0

#15 Assassin.MTS

Assassin.MTS

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 31 May 2012 - 07:18 PM

this is my first Post in the forum :thumbsup:

Spoiler for first try

  • 0

#16 EventHorizon

EventHorizon

    Senior Member

  • VIP
  • PipPipPipPip
  • 512 posts
  • Gender:Male

Posted 01 June 2012 - 02:10 AM

i belive witchofsecrets solution works better for a larger number of cards.

Spoiler for

Spoiler for problems I see

Edit:
Spoiler for Also

Edited by EventHorizon, 01 June 2012 - 02:16 AM.

  • 0

#17 EventHorizon

EventHorizon

    Senior Member

  • VIP
  • PipPipPipPip
  • 512 posts
  • Gender:Male

Posted 01 June 2012 - 05:02 AM

i belive witchofsecrets solution works better for a larger number of cards.

Spoiler for

Spoiler for A little more to say on this one


Spoiler for solution in 9?


Spoiler for Thoughts on this method


Hopefully you don't think I'm being too harsh here. It's just thought and observations before and after testing the method with my code. And speaking of code... here it is for those who know c++.
Spoiler for Code

Spoiler for Info on code


this is my first Post in the forum :thumbsup:

Spoiler for first try

Welcome to the Den :)
  • 0

#18 EventHorizon

EventHorizon

    Senior Member

  • VIP
  • PipPipPipPip
  • 512 posts
  • Gender:Male

Posted 01 June 2012 - 09:04 AM

Spoiler for For those interested, more info on the code

If anyone actually tests it out or uses it, let me know what you think and if you want me to add an option or change something.

Edit: Also... I have no idea how it happened, but a b was capitalized (or maybe even more errors introduced) in the line "unsigned int n = (~(a ^ B)) & mask;" in the getCorrect method. I didn't notice any other strange capitalizations introduced, but they may be there.

Edited by EventHorizon, 01 June 2012 - 09:11 AM.

  • 0

#19 phil1882

phil1882

    Advanced Member

  • Members
  • PipPipPip
  • 496 posts

Posted 01 June 2012 - 12:13 PM

event horizon:
Spoiler for

Edited by phil1882, 01 June 2012 - 12:14 PM.

  • 0

#20 EventHorizon

EventHorizon

    Senior Member

  • VIP
  • PipPipPipPip
  • 512 posts
  • Gender:Male

Posted 01 June 2012 - 01:52 PM

event horizon:

Spoiler for

Spoiler for First guesses

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users