Coin Community Family of Web Sites Join Thousands of Coin, Bullion, & Money Collectors
Join Thousands of Coin, Bullion, & Money Collectors 300,000 items to help build your collection! Coin, Banknote and Medal Collectors's Online Mall Vancouvers #1 Coin and Paper Money Dealer Royal Canadian Mint products, Canadian, Polish, American, and world coins and banknotes. Shop for APMEX Bullion on eBay!Specializing in Modern Numismatics








Username:
Password:
Save Password
Forgot your Password?


This page may contain links that result in small commissions to keep this free site up and running.

Welcome Guest! Registering and/or logging in will remove the anchor (bottom) ads. It's Free!

Mastermind - Winner Scooby Due !

To participate in the forum you must log in or register.
Author Previous TopicReplies: 79 / Views: 3,392Next Topic
Page: of 6
Valued Member
rikcando's Avatar
Canada
287 Posts
 Posted 05/28/2010  09:39 am  Show Profile   Bookmark this reply Add rikcando to your friends list Get a Link to this Reply
I have a daughter in grade 11, so I've been refreshing on alot of stuff I had put aside or forgotten over the last {insert large number} years. Permutations was one of them.

My wife made comment this morning about my additons to the list of currencies. She feels that everyone will know that since I've added them I will most likely use them in my answer. To enusre this does not become an advantage to anyone paying attention I wrote a quick and simple permutation generator that I will be using to select my currencies.
It will be completely random.

Valued Member
rikcando's Avatar
Canada
287 Posts
 Posted 05/28/2010  09:42 am  Show Profile   Bookmark this reply Add rikcando to your friends list Get a Link to this Reply

Quote:
The part I'm confused about is the continuing to *9


The ten highest numbers are 18 - 9, as 18-10 is only 9 distinct values. {I think}
Pillar of the Community
Scooby Due's Avatar
United States
4000 Posts
 Posted 05/28/2010  10:15 am  Show Profile   Bookmark this reply Add Scooby Due to your friends list Get a Link to this Reply

Quote:
I thought you only go to the number of slots


You do. But you were only going to 9 slots. From 18*17...*10 is only 9 slots.
Pillar of the Community
svslav's Avatar
United States
2605 Posts
 Posted 05/28/2010  10:57 am  Show Profile   Bookmark this reply Add svslav to your friends list Get a Link to this Reply
Looks like you don't need me. Scooby is right. Since we're looking for correct order it would be number of permutations, P(18, 10)=18!/(18-10)!=18*17*...*9.

If the order didn't matter it would be the number of combinations, C(18, 10)=18!/[10!(18-10)!] or the number above over 10*9*...*1.
Pillar of the Community
xshift's Avatar
United States
2669 Posts
 Posted 05/28/2010  2:03 pm  Show Profile   Bookmark this reply Add xshift to your friends list Get a Link to this Reply
I finally figured out where my short-circuit was - I got my 10's crossed. Like I went to the 6 in other example. So it's a count of (x available slots), not to the actual number (18*17 ...*10) <--wrong 10! What is it the kids say now? Epic Fail?

Thanks everyone, for explaining.

Professor, are you playing this round?
Pillar of the Community
Scooby Due's Avatar
United States
4000 Posts
 Posted 05/28/2010  6:48 pm  Show Profile   Bookmark this reply Add Scooby Due to your friends list Get a Link to this Reply
Valued Member
rikcando's Avatar
Canada
287 Posts
 Posted 05/28/2010  7:36 pm  Show Profile   Bookmark this reply Add rikcando to your friends list Get a Link to this Reply
Ok, I'm taking my wife out for ice cream and I'll pick my currencies when I get back. If you care to see how I am going to pick them, here's the program I wrote this morning.
http://24.57.62.251/perm_gen.php
Pillar of the Community
Scooby Due's Avatar
United States
4000 Posts
 Posted 05/28/2010  7:55 pm  Show Profile   Bookmark this reply Add Scooby Due to your friends list Get a Link to this Reply
Man, you had me foaming at the mouth, I thought I was gonna get to see some code.
Edited by Scooby Due
05/28/2010 7:56 pm
Valued Member
rikcando's Avatar
Canada
287 Posts
 Posted 05/28/2010  7:57 pm  Show Profile   Bookmark this reply Add rikcando to your friends list Get a Link to this Reply
Scooby, if you want the code, I'll arrange it for you.

Valued Member
rikcando's Avatar
Canada
287 Posts
 Posted 05/28/2010  7:58 pm  Show Profile   Bookmark this reply Add rikcando to your friends list Get a Link to this Reply
It is 7:57 and I have selected my currencies. Good luck to everyone !
Pillar of the Community
Scooby Due's Avatar
United States
4000 Posts
 Posted 05/28/2010  8:04 pm  Show Profile   Bookmark this reply Add Scooby Due to your friends list Get a Link to this Reply
After the game.

I always enjoy looking at other peoples programming. I like the various logic forms you run across. Sometimes you see a different or more efficient approach to a problem. What language?
Pillar of the Community
Scooby Due's Avatar
United States
4000 Posts
 Posted 05/28/2010  8:06 pm  Show Profile   Bookmark this reply Add Scooby Due to your friends list Get a Link to this Reply
So, we're sticking with RON and USZ? Kinda strange without XAU/XAG - kinda like a missing family member.
Pillar of the Community
Scooby Due's Avatar
United States
4000 Posts
 Posted 05/28/2010  8:09 pm  Show Profile   Bookmark this reply Add Scooby Due to your friends list Get a Link to this Reply
OK everybody! Let's throw out some clues before midnight to give us something to work on!

I'll go with the example:

EUR, MXN, JPY, NZD, SGD, DKK, SEK, USZ, AUD, RON
Valued Member
rikcando's Avatar
Canada
287 Posts
 Posted 05/28/2010  8:09 pm  Show Profile   Bookmark this reply Add rikcando to your friends list Get a Link to this Reply
Sorry Scooby, but I've already picked the currencies, so it would not be right to change the rules now. No gold or silver, just plain ol' money.

As for the program, it is PHP, but I wrote it with NotePad at work and uploaded to my server, so it is a bit rough, and simple. Here is where you can see the raw code. http://home.cogeco.ca/~rbalkwill/perm_gen.php
Valued Member
rikcando's Avatar
Canada
287 Posts
 Posted 05/28/2010  8:12 pm  Show Profile   Bookmark this reply Add rikcando to your friends list Get a Link to this Reply

Quote:
EUR, MXN, JPY, NZD, SGD, DKK, SEK, USZ, AUD, RON


5 correct, 0 in the right place.
  Previous TopicReplies: 79 / Views: 3,392Next Topic
Page: of 6

To participate in the forum you must log in or register.



    




Disclaimer: While a tremendous amount of effort goes into ensuring the accuracy of the information contained in this site, Coin Community assumes no liability for errors. Copyright 2005 - 2026 Coin Community Family- all rights reserved worldwide. Use of any images or content on this website without prior written permission of Coin Community or the original lender is strictly prohibited.
Contact Us  |  Advertise Here  |  Privacy Policy / Terms of Use

Coin Community Forum © 2005 - 2026 Coin Community Forums
It took 0.35 seconds to rattle this change. Forums