>
Exams
>
Computer Science & Information Technology
>
Theory of Computations
>
what is the regular expression for all strings sta
Question:
What is the regular expression for all strings starting with ab then any number of a or b and ending with bba?
Show Hint
Use (a+b)* to denote any number of a’s or b’s in regex. Ensure prefixes and suffixes match.
TS PGECET - 2024
TS PGECET
Updated On:
June 02, 2025
aba*b*bba
ab(ab)*bba
ab(a+b)*bba
ab(a+b)bba
Hide Solution
Verified By Collegedunia
The Correct Option is
C
Solution and Explanation
Start with "ab", followed by any number of "a" or "b": \((a+b)^*\), and end with "bba" gives: \[ ab(a+b)^*bba \]
Download Solution in PDF
Was this answer helpful?
0
0
Top Questions on Theory of Computations
For a machine to surpass all the letters of alphabets excluding vowels, how many states in DFA would be required?
TS PGECET - 2024
Computer Science & Information Technology
Theory of Computations
View Solution
Moore machine is an example of
TS PGECET - 2024
Computer Science & Information Technology
Theory of Computations
View Solution
A Turing machine that is able to simulate other Turing machines is known as
TS PGECET - 2024
Computer Science & Information Technology
Theory of Computations
View Solution
Choose the correct option when
S1: Initial state of NFA is initial state of DFA
S2: The final state of DFA will be every combination of final set of NFA
TS PGECET - 2024
Computer Science & Information Technology
Theory of Computations
View Solution
A language $L$ is said to be Turing machine (TM) decidable if
TS PGECET - 2024
Computer Science & Information Technology
Theory of Computations
View Solution
View More Questions
Questions Asked in TS PGECET exam
Which of the following expression is a tautology?
TS PGECET - 2024
Digital Logic
View Solution
The 2’s complement representation of the decimal value $-15$ is
TS PGECET - 2024
Digital Logic
View Solution
The value of the integral \[ \int_C \frac{2e^z}{(z-4)(z-2)} \, dz \] where \( C: |z| = 3 \) is
TS PGECET - 2024
Complex numbers
View Solution
As per URDPFI Guidelines 2015 of Government of India, choose the correct hierarchy of plans from higher order to lower order
TS PGECET - 2024
Planning Theory
View Solution
What distinguishes a "Multi-Sector" SEZ from a "Single-Sector" SEZ in terms of city planning?
TS PGECET - 2024
City Planning
View Solution
View More Questions
TS PGECET Notification
OCT Bhopal Admission 2025
June 02, 2025
OCT Bhopal Admission 2025
Read More