1
   

Binary Strings

 
 
Reply Tue 21 Feb, 2006 07:52 am
Ok i'm having trouble getting my head around this and i just wondered if anyone could help please. Firstly if i have a binary 8-string how many have exactly 3ones can anyone tell me how you work that out and secondly how many ternary strings of length 5 have a run of 012 now i think its 3! put i may be getting confused. Can anyone help?

Thanks Embarrassed
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 595 • Replies: 6
No top replies

 
DrewDad
 
  1  
Reply Tue 21 Feb, 2006 08:23 am
For the ternary string:

012xx
x012x
xx012

So you have three cases, each case has nine possible permutations.
0 Replies
 
engineer
 
  1  
Reply Tue 21 Feb, 2006 08:24 am
The first problem is a standard probability problem. It is the same question as "you have three red balls and five blue balls. How many permutations can you make?" The answer is 8!/(5! 3!)

The second problem can also be simplified into a probability problem, but you don't use factorial because the values that can go into each slot are not dependent on the previous values used like the above problem. You know three of your five slots are taken by 012. You need to know how many permutations you can make with the remaining two positions given that each one could be one of three options. For each position of 012, there would be 3^2 total permutations. There are three different places you could place the 012, so multiply that by three again for a total of 27. Here is an example:

With 012 up front
012 00
012 01
012 02
012 10
012 11
etc.

Next with 012 in the middle
0 012 0
0 012 1
0 012 2
1 012 0
1 012 1
etc.

You can do the same with 012 on the end.
0 Replies
 
abergirl
 
  1  
Reply Tue 21 Feb, 2006 08:34 am
thanks i think i understand that now.
0 Replies
 
abergirl
 
  1  
Reply Tue 21 Feb, 2006 01:31 pm
Ok heres another one along the same line, for the fibonacci series where f0=f1=1 and fn+1=fn+fn-1 prove fn = the sum of (n-r)!/(r!(n-2r)!) (from r=0 to n) does anyone have any starting points for this i havent a clue where to begin!
0 Replies
 
abergirl
 
  1  
Reply Tue 21 Feb, 2006 01:44 pm
ok sorry ive got that now had a brain wave Smile
0 Replies
 
abergirl
 
  1  
Reply Tue 21 Feb, 2006 01:46 pm
but can anyone tell me how to show that the sum of fn/2^n = 4
0 Replies
 
 

Related Topics

Evolution 101 - Discussion by gungasnake
Typing Equations on a PC - Discussion by Brandon9000
The Future of Artificial Intelligence - Discussion by Brandon9000
The well known Mind vs Brain. - Discussion by crayon851
Scientists Offer Proof of 'Dark Matter' - Discussion by oralloy
Blue Saturn - Discussion by oralloy
Bald Eagle-DDT Myth Still Flying High - Discussion by gungasnake
DDT: A Weapon of Mass Survival - Discussion by gungasnake
 
  1. Forums
  2. » Binary Strings
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.04 seconds on 06/26/2024 at 08:44:03