[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference rusure::math

Title:Mathematics at DEC
Moderator:RUSURE::EDP
Created:Mon Feb 03 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2083
Total number of notes:14613

337.0. "Real World Problem - How many C" by LSTARK::THOMPSON () Wed Oct 02 1985 18:54

	We, various people in my group, have been trying to answer a question.
To wit, how many possible VAXclusters are there? Given that there are 5 node
types (today, we know of several more in the pipe line) and a total of 16 nodes
in a cluster (again as of today). Obviously the same collection of nodes in a
different order is not a new cluster. 

	My group tests clusters so it is important for us to have these numbers.
Especially when someone asks why we missed a certain configuration. I am not a
mathematician so I'll explain what I need as best as I can. For example, if 
you have 2 types that could be in 3 slots you get.

	111
	112
	122
	222

or four clusters.

	What I'd like is an equation or algorithm, that I could plug in the
number of node types and the numbers of node 'slots' and get a) the number of
configurations using all the slots and b) the cumulative total ie. n types in
1 slot, n types in 2 slots,... n types in y slots.

	We have a solution but it is very slow and I'd like to see if there 
isn't a better way to do it. Especially since the numbers (5 & 16) will change
and may get very large (ie. NI clusters??) and our current method could take
VERY long to get the answers. Proposed solutions/algorithms?


	Alfred Thompson
	Cluster Verification Group
T.RTitleUserPersonal
Name
DateLines
337.1LATOUR::JMUNZERThu Oct 03 1985 01:2337
Alfred:

I believe that the answers you're looking for are:

	a)	T types & S slots:  (S + T - 1)! / (T - 1)! / S!

	b)	T types & 0-to-S slots:  (S + T)! / T! / S!

For the example in .0:  T = 2, S = 3; (3 + 2 - 1)! / (2 - 1)! / 3! = 4

Reasoning for first formula:  one-to-one correspondences between

	Configurations of T types into S slots

	Sequences of T numbers {a1, a2, a3, ..., aT}, each 0 <= aj <= S,
		with a1 + a2 + a3 + ... + aS = S

    	Sequences of (T - 1) numbers {a1, a2, a3, ..., aT-1}, each
		0 <= aj <= S, with a1 + a2 + a3 + ... + aT-1 <= S

    	Sequences of (T - 1) numbers 0 <= b1 <= b2 <= b3 <= ...
		<= bT-1 <= S [method:  bj = a1 + a2 + a3 + ... + aj]

       	Sequences of (T - 1) numbers 1 <= c1 < c2 < c3 < ... < cT-1 <=
		(S + T - 1) [method:  cj = bj + j]

	(T - 1)-subsets of (S + T - 1) things

Reasoning for second formula:  visualize another node type -- the not-there
type.  Every configuration of T types into S-or-fewer slots corresponds
one-to-one with that same configuration padded to S slots with the not-there
type.

Thanks to Stan for an earlier combinatorial problem that didn't seem real-
world.

John Munzer                              
337.2BEING::POSTPISCHILThu Oct 03 1985 11:2219
Re .1:

I hate to complain about English in a math file, but I really had trouble
figuring out what was being done in your response.  Changing the phrase
"one-to-one correspondences between" to "Each of the following sets of
configurations or numbers has the same number of elements:" would have helped
a lot, simply by forming a complete sentence -- putting in a verb really
helps get the idea across.

Also, some of the steps could use a bit more explanation, especially the last,
where a sequence of T-1 distinct numbers (the cj's) chosen from the set of
numbers from { 1, 2, . . . S+T-1 } is changed into T-1 subsets of S+T-1 things
-- just mentioning what the cj's and the S+T-1 things are (a subset of numbers
and a set of numbers from 1 to S+T-1) really helps.

Other than the English, the proof is rather clever and interesting.  Thanks.


				-- edp