Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > College/University Maths Help > Discrete Math
Reply
 
Thread Tools Display Modes
  #1  
Old 09-04-2008, 09:00 AM
Member
 
Join Date: Apr 2008
Posts: 77
Country:
Thanks: 11
Thanked 2 Times in 2 Posts
wik_chick88 is on a distinguished road
Default Enumeration problem

hey im having trouble getting started on this question:

how many strings of at least one and at most three characters from the alphabet have their characters in alphabetical order? repeated characters are allowed and strings such as aab are in alphabetical order.

i figured with only one character strings, the number of alphabetically-ordered strings is 26, because each string will only have 1 letter, thus n alphabetical order.

im getting stuck with 2 and 3 characters in the string. i considered starting with each letter in the string, but that was going to take too long. i know it has something to do with commutations/pemutations...
with 2 character strings, i guess u could do sum of (26-r) from r=0 to 25...cause for the first letter r=0 (ie. a) there are 26 ways, r=1 (b), there are 25 ways etc...but this doesnt have anything to do with commutations/permutations??

please help!!!
Reply With Quote
Advertisement
 
  #2  
Old 09-04-2008, 09:25 AM
MHF Contributor


 
Join Date: Aug 2006
Posts: 3,510
Thanks: 23
Thanked 1,166 Times in 1,072 Posts
Plato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud of
Default

\sum\limits_{k = 1}^3 {{26+k-1} \choose k}
Can you explain why this works?
Reply With Quote
The following users thank Plato for this useful post:
Donate to MHF
  #3  
Old 09-05-2008, 07:43 AM
Member
 
Join Date: Apr 2008
Posts: 77
Country:
Thanks: 11
Thanked 2 Times in 2 Posts
wik_chick88 is on a distinguished road
Default

well that formula looks like the one for unordered repetitions. but where does the sum of come from? and why k from 1 to 3? is that because u have at least 1 and at most 3 strings of characters? how did u separate the alphabetically arranged from the non-alphabetically arranged? im so confused...
Reply With Quote
  #4  
Old 09-05-2008, 09:08 AM
Super Member


 
Join Date: May 2006
Location: Lexington, MA (USA)
Posts: 5,640
Thanks: 274
Thanked 2,909 Times in 2,347 Posts
Soroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond repute
Default

Hello, wik_chick88!

I had to make lists ... and look for patterns.


Quote:
How many strings of at least one and at most three characters
from the alphabet have their characters in alphabetical order?
Repeated characters are allowed and strings such as aab are in alphabetical order.
One-letter strings

You are right . . . there are {\color{blue}26} possible one-letter strings.



Two-letter strings

\begin{array}{cc}& \text{choices for} \\
\text{1st letter} & \text{2nd letter} \\ \hline
a\,\_ & 26 \\ b\,\_ & 25 \\ c\,\_ & 24 \\ \vdots & \vdots \\ y\,\_ & 2 \\ z\,\_ & 1 \end{array}

Two-letter strings: .1 + 2 + 3 + \cdots + 26 \;=\;T_{26} \;=\;\frac{26\cdot27}{2} \;=\;{\color{blue}351}



Three-letter strings

\begin{array}{cc}aa\_ & 26 \\ ab\_ & 25 \\ ac\_ & 24 \\ \vdots & \vdots \\ ay\_ & 2 \\ az\_ & 1 \end{array} . . \begin{array}{cc}bb\_ & 25 \\ bc\_ & 24 \\ bd\_ & 23 \\ \vdots& \vdots \\ by\_ & 2 \\ bz\_ & 1 \end{array} . . \begin{array}{cc}cc\_ & 24 \\ cd\_ & 23 \\ ce\_ & 22 \\ \vdots & \vdots \\ cy\_ & 2 \\ cz\_ & 1 \end{array} . . \cdots . . \begin{array}{cc}ww\_ & 4 \\wx\_ & 3 \\ wy\_ & 2 \\ wz\_ & 1\end{array} . . \begin{array}{cc}xx\_ & 3 \\xy\_ & 2 \\ xz\_ & 1 \end{array} . . \begin{array}{cc}yy\_ & 2 \\ yz\_ & 1 \end{array} . . \begin{array}{cc}zz\_ & 1 \end{array}


Reading from the right, we have:

(1) + (1+2) + (1+2 +3) + \cdots + (1+2+3+\cdots+26)

. . = \;T_1 + T_2 + T_3 + \cdots + T_{26} \;=\;\frac{26\cdot27\cdot28}{3!} \;=\;{\color{blue}3276} 3-letter strings



Answer: .26 + 351 + 3276 \;=\;\boxed{3653}

Reply With Quote
The following users thank Soroban for this useful post:
Donate to MHF
  #5  
Old 09-05-2008, 09:56 AM
MHF Contributor


 
Join Date: Aug 2006
Posts: 3,510
Thanks: 23
Thanked 1,166 Times in 1,072 Posts
Plato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud of
Default

Quote:
Originally Posted by wik_chick88 View Post
well that formula looks like the one for unordered repetitions. but where does the sum of come from?
Exactly, we do use unordered repetitions to solve these problems.
Let me give you another problem to demonstrate the concept.
How many way can we select five letters from the alphabet allowing repetitions: {{5+26-1} \choose {5}}. Correct?
If you are given any collection for five letters, say any five Scrabble pieces, you can always arrange those pieces in alphabetical order. Can you not?
Therefore, we have just counted the number of five letters strings appearing in alphabetical order.
Now the sum is for one, two, or three strings.
Reply With Quote
The following users thank Plato for this useful post:
Donate to MHF
  #6  
Old 09-08-2008, 07:11 AM
Member
 
Join Date: Apr 2008
Posts: 77
Country:
Thanks: 11
Thanked 2 Times in 2 Posts
wik_chick88 is on a distinguished road
Default

ok. im pretty sure the question is ordered ie. the first letter has to stay the first letter. so i made the lists, saw the patterns and worked out how many strings would be possible. BUT the next question is how many strings of at least one and at most n characters from the alphabet have the characters in alphabetical order? you used T1, T2,...,T26 in your answer what is the definition of Tn? Thanks for all your help!
Reply With Quote
  #7  
Old 09-08-2008, 10:31 AM
MHF Contributor


 
Join Date: Aug 2006
Posts: 3,510
Thanks: 23
Thanked 1,166 Times in 1,072 Posts
Plato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud ofPlato has much to be proud of
Default

Quote:
Originally Posted by wik_chick88 View Post
ok. im pretty sure the question is ordered ie. the first letter has to stay the first letter. so i made the lists, saw the patterns and worked out how many strings would be possible. BUT the next question is how many strings of at least one and at most n characters from the alphabet have the characters in alphabetical order? you used T1, T2,...,T26 in your answer what is the definition of Tn? Thanks for all your help!
Well of course they are ordered!
But the point here is that we count the number of unordered selections each of which we can then in turn order.
The selection <B,A,L,L,O,O,N> can be ordered into ABLLNOO.
That selection is one of {{7+26-1} \choose {7}}=3365856 possible selections of seven choices of letters allowing repeats.
But that is also the number of seven letter ‘words’ having their letters is alphabetical order.

Thus the answer to the second part, “n characters from the alphabet have the characters in alphabetical order”, is {{n+26-1} \choose {n}}.
Now you add k=1,..,n.
Reply With Quote
The following users thank Plato for this useful post:
Donate to MHF
  #8  
Old 09-09-2008, 06:13 AM
Member
 
Join Date: Apr 2008
Posts: 77
Country:
Thanks: 11
Thanked 2 Times in 2 Posts
wik_chick88 is on a distinguished road
Default

thanks guys for all ur help now i understand what to do and i can explain it in my own words!! THANKS!!!
Reply With Quote
  #9  
Old 09-17-2008, 06:52 AM
Junior Member
 
Join Date: Mar 2008
Posts: 13
Country:
Thanks: 0
Thanked 0 Times in 0 Posts
asw-88 is on a distinguished road
Default

I stil don't understand what T1 + T2 + T3... is suppose to stand for and thus don't understand how you came to the conclusion that it equals 26x27x28/3!

\

If possible can you please explain this!
Thanks Soroban!
Reply With Quote
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 04:42 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2008 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.