|
|
| Author |
Message |
BSvK science forum beginner
Joined: 02 Oct 2005
Posts: 1
|
Posted: Sun Oct 02, 2005 5:01 pm Post subject:
counting words
|
|
|
Consider four sets of symbols, first of m alphas, second of m betas,
third of n gammas, fourth of n deltas. These are to be arranged in
2(m+n)-long words such that no pair of identical symbols are adjacent. I
would like to count the number of different words so formed. I think Polya
theory should apply here but I was unable to do so. Please, help. |
|
| Back to top |
|
 |
Proginoskes science forum Guru
Joined: 29 Apr 2005
Posts: 2593
|
Posted: Tue Oct 04, 2005 4:33 am Post subject:
Re: counting words
|
|
|
BSvK wrote:
| Quote: | Consider four sets of symbols, first of m alphas, second of m betas,
third of n gammas, fourth of n deltas. These are to be arranged in
2(m+n)-long words such that no pair of identical symbols are adjacent. I
would like to count the number of different words so formed. I think Polya
theory should apply here but I was unable to do so. Please, help.
|
You need to supply the following information, unless you want the most
general solution:
How many alphas, betas, gammas, and deltas are there?
How many alphas are also betas?
How many betas are also gammas?
How many gammas are also deltas?
--- Christopher Heckman |
|
| Back to top |
|
 |
Proginoskes science forum Guru
Joined: 29 Apr 2005
Posts: 2593
|
Posted: Wed Oct 05, 2005 6:24 am Post subject:
Re: counting words
|
|
|
Proginoskes wrote:
| Quote: | BSvK wrote:
Consider four sets of symbols, first of m alphas, second of m betas,
third of n gammas, fourth of n deltas. These are to be arranged in
2(m+n)-long words such that no pair of identical symbols are adjacent. I
would like to count the number of different words so formed. I think Polya
theory should apply here but I was unable to do so. Please, help.
You need to supply the following information, unless you want the most
general solution:
How many alphas, betas, gammas, and deltas are there?
How many alphas are also betas?
How many betas are also gammas?
How many gammas are also deltas?
|
BSvK has responded privately, saying:
| Quote: | There are m alphas, m betas, n gammas, n deltas. Alphas, betas ,gammas,
deltas are all different from each other.
|
This is easy then. The number of ways to choose the first alpha is m,
the second way m-1, the third way m-1, etc., so the number of strings
of alphas with no consecutive identical symbols is m*(m-1)^(m-1). This
will also be the number of strings of betas. The number of gamma
strings will be n*(n-1)^(n-1), and this will also be the number of
delta strings. We can combine any alpha string with any beta string,
etc., so the total number of strings is
m*(m-1)^(m-1) * m*(m-1)^(m-1) * n*(n-1)^(n-1) * n*(n-1)^(n-1), or
m^2*(m-1)^(2m-2) * n^2 * (n-1)^(2n-2).
--- Christopher Heckman |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Jan 09, 2009 8:26 pm | All times are GMT
|
|
Modded Xbox | Credit Card Advice | Loans | Channing Tatum | Libro arquitectura
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
Other DeniX Solutions sites:
Electronics forum |
Medicine forum |
Unix/Linux blog |
Unix/Linux documentation |
Unix/Linux forums
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|