Click here to Skip to main content
15,916,945 members
Home / Discussions / C#
   

C#

 
GeneralMath question Pin
leppie22-Aug-02 7:24
leppie22-Aug-02 7:24 
GeneralRe: Math question Pin
David Stone22-Aug-02 7:55
sitebuilderDavid Stone22-Aug-02 7:55 
GeneralRe: Math question Pin
leppie22-Aug-02 8:03
leppie22-Aug-02 8:03 
GeneralRe: Math question Pin
Richard Deeming22-Aug-02 8:06
mveRichard Deeming22-Aug-02 8:06 
GeneralRe: Math question Pin
leppie22-Aug-02 8:16
leppie22-Aug-02 8:16 
GeneralRe: Math question Pin
Stephane Rodriguez.22-Aug-02 8:11
Stephane Rodriguez.22-Aug-02 8:11 
GeneralRe: Math question Pin
leppie22-Aug-02 9:19
leppie22-Aug-02 9:19 
GeneralNew developments :) Pin
leppie23-Aug-02 6:07
leppie23-Aug-02 6:07 
I derived that the number of possible "repeatable combinations" (proper words Smile | :) ) would be:

# = n ^ size where n is the # of unique objects and size is the width of the "population".

EG: (using 0 and 1 for clarity)

Repeatble Combination of 0 and 1 with size 2: 2 ^ 2 = 4 combinations
0 0
0 1
1 0
1 1

Repeatble Combination of 0 and 1 with size 3: 2 ^ 3 = 8 combinations
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1

Now this leads me to believe i could effectively "count" the combinations by applying a unique tag for each object using the numbers of objects as base number. In this case, 0 and 1, counting in binary (base 2).

Now if we have say 3 objects, A B C, we tag 0 1 2, base 3. At this point I must say, this is all my own theorizing and I could have it all wrong. Now, if I am right, all I need to use is non standard base numbers for counting.

Is there an easy way to do this? Maybe a formula? Does .Net have builtin support for nonstandard basenumbers like this?

All help appreciated Smile | :)

MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc
for more info. Big Grin | :-D
GeneralRe: New developments :) Pin
Stephane Rodriguez.23-Aug-02 6:58
Stephane Rodriguez.23-Aug-02 6:58 
GeneralRe: New developments :) Pin
leppie23-Aug-02 7:14
leppie23-Aug-02 7:14 
GeneralRe: New developments :) Pin
Stephane Rodriguez.23-Aug-02 7:49
Stephane Rodriguez.23-Aug-02 7:49 
GeneralRe: New developments :) Pin
leppie23-Aug-02 8:10
leppie23-Aug-02 8:10 
GeneralTwo Access database questions Pin
Luis Alonso Ramos22-Aug-02 6:18
Luis Alonso Ramos22-Aug-02 6:18 
GeneralRe: Two Access database questions (update) Pin
Luis Alonso Ramos22-Aug-02 6:28
Luis Alonso Ramos22-Aug-02 6:28 
GeneralRe: Two Access database questions Pin
David Stone22-Aug-02 6:30
sitebuilderDavid Stone22-Aug-02 6:30 
GeneralRe: Two Access database questions Pin
Luis Alonso Ramos22-Aug-02 7:09
Luis Alonso Ramos22-Aug-02 7:09 
GeneralRe: Two Access database questions Pin
David Stone22-Aug-02 7:20
sitebuilderDavid Stone22-Aug-02 7:20 
GeneralRe: Two Access database questions Pin
Luis Alonso Ramos22-Aug-02 7:39
Luis Alonso Ramos22-Aug-02 7:39 
GeneralRe: Two Access database questions Pin
David Stone22-Aug-02 7:56
sitebuilderDavid Stone22-Aug-02 7:56 
GeneralRe: Two Access database questions Pin
Luis Alonso Ramos22-Aug-02 8:12
Luis Alonso Ramos22-Aug-02 8:12 
GeneralRe: Two Access database questions Pin
David Stone22-Aug-02 8:25
sitebuilderDavid Stone22-Aug-02 8:25 
GeneralRe: Two Access database questions Pin
Luis Alonso Ramos22-Aug-02 8:35
Luis Alonso Ramos22-Aug-02 8:35 
GeneralRe: Two Access database questions Pin
James T. Johnson22-Aug-02 9:40
James T. Johnson22-Aug-02 9:40 
GeneralRe: Two Access database questions Pin
Luis Alonso Ramos22-Aug-02 12:37
Luis Alonso Ramos22-Aug-02 12:37 
GeneralRe: Two Access database questions Pin
David Stone22-Aug-02 12:47
sitebuilderDavid Stone22-Aug-02 12:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.