Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Share Your Creations
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.


Combinations application


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-21-2008, 08:24 PM
Senior Member
 
Join Date: Apr 2007
Posts: 192
Default Combinations application

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.
Attached Files
File Type: sbp $Combinations.sbp (3.8 KB, 27 views)

Last edited by Stellaferox : 02-22-2008 at 06:14 AM.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 11:41 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0