![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi all,
I wanted an application to write out all combinations given a set n, and subset k, otherwise written as choose(n,k). We all know that the number of combinations is n!/ (k!.(n-k)!) of course. David Erez took up the challenge and wote his. here is mine, just plain, simple and fast! I deliberately held it simple to let everyone see how the structure is set up. I used it to write out every possible combination in 7-card poker (133784560!) Modify at will....... Marc PS: I use the prefix $ to get all the applications I am working on at the top of my folder for fast picking. Last edited by Stellaferox : 02-22-2008 at 06:14 AM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Combinations Sub: choose(n,k) | Stellaferox | Code Samples & Tips | 2 | 02-21-2008 06:51 PM |
| Combinations function | derez | Share Your Creations | 0 | 02-04-2008 11:40 AM |
| code to write out combinations e.g. (10 choose 3) | Stellaferox | Questions & Help Needed | 4 | 02-04-2008 05:51 AM |
| List of possible combinations for x numbers. | EdQas | Questions & Help Needed | 3 | 10-07-2007 09:18 AM |
| DB Application | scott93727 | Share Your Creations | 0 | 05-02-2007 05:24 AM |