View Single Post
  #3 (permalink)  
Old 05-15-2008, 01:05 AM
gofer gofer is offline
Newbie
 
Join Date: May 2008
Posts: 3
Credits: 0
Rep Power: 0
gofer is on a distinguished road
Default Re: Generating all sequences of 1s and 0s of length 30

Thanks for the reply. The language is irrelevant - I can do it in a language that best suits the task (although I was planning to use C++).

However I still don't understand how am I supposed to use permutations to solve the problem. Permutations simply change the order of the elements in a set. What's the set?

Are you suggesting to generate every possible combination of 1s and 0s of length 30 and then search for consecutive sequences in all of them? Because that seems awfully slow to me...
Reply With Quote