Calculating Possible Sequences with Constraints

  • Thread starter pennypenny
  • Start date
In summary, for a given number of positions N, where each position can be filled with S, F, or T, there is a constraint that F and T cannot be next to each other. This means that sequences with FT or TF are not allowed. To calculate the number of possible sequences, we can start by considering N=1 and finding the number of strings ending with S, F, or T. Then, for N=2, we can use the previous values to calculate the number of strings ending with S, F, or T. However, we must also consider the cases where F and T are fixed together as one letter, and adjust the total number of permutations accordingly to avoid double-counting. This approach can be applied
  • #1
pennypenny
2
0
Suppose there are N positions.

For each position, one can fill it with S,F or T.

There is one constraint that F and T cannot be next to each other. This means that a filling with FT in the sequence or TF in the sequence is not allowed.

For example, if N = 5. We have FSSTT, SFSTT are valid sequences, but SFTFS is not.

Can anyone help me with calculating the number of possible sequences?
 
Physics news on Phys.org
  • #2
Here is a possible way to solve this:
For N=1, how many strings ending with S are possible?
For N=1, how many strings ending with F or T are possible?
For N=2, how many strings ending with S are possible, and how does that follow from the previous values?
For N=2, how many strings ending with F or T are possible, and how does that follow from the previous values?
...
 
  • #3
Thank! This helps:)
 
  • #4
Find total number of permutations first.
Now fix F and T together as 1 letter.Now total number of letters is 4 (in the case where N = 5).Find total number of cases for this (note that F and t can permute among themselves in 2 factorial ways so multiply your answer by 2) and subtract this from the total number of permutation you obtained the first case.
 
  • #5
Can you show how you would do this in detail, to avoid double-counting of strings like TFSFT?
 

FAQ: Calculating Possible Sequences with Constraints

What is a combinatorial problem?

A combinatorial problem is a mathematical problem that involves counting or arranging objects from a finite set. These problems often involve choosing a subset of objects, arranging objects in a certain order, or determining the number of possible outcomes for a given situation.

What are some examples of combinatorial problems?

Some examples of combinatorial problems include the binomial theorem, the birthday problem, the traveling salesman problem, and the Monty Hall problem. These problems can be found in various fields such as mathematics, computer science, statistics, and economics.

How are combinatorial problems solved?

Combinatorial problems can be solved using various techniques such as enumeration, combinatorial identities, generating functions, and graph theory. These methods help to systematically count or arrange objects and determine the total number of possible outcomes.

Why are combinatorial problems important?

Combinatorial problems have practical applications in many fields such as computer science, physics, biology, and economics. They help us understand the fundamental principles of counting and arranging objects, which are essential in solving real-world problems. Additionally, they also have theoretical significance in the study of discrete mathematics.

How can I improve my skills in solving combinatorial problems?

To improve your skills in solving combinatorial problems, it is important to practice regularly and familiarize yourself with different techniques and strategies. You can also study and solve problems from textbooks, online resources, and participate in combinatorics competitions. Seeking guidance from experienced mathematicians or attending workshops and seminars can also help improve your problem-solving abilities.

Similar threads

Replies
2
Views
2K
Replies
15
Views
2K
Replies
18
Views
2K
Replies
5
Views
2K
Replies
5
Views
1K
Replies
1
Views
1K
Back
Top