Web Page

Regular expressions and finite automata, Context-free grammars and push-down automata, Regular and context-free languages, Pumping lemma, Turing machines and undecidability.

$$\scriptsize{\overset{{\large{\textbf{Mark Distribution in Previous GATE}}}}{\begin{array}{|c|c|c|c|c|c|c|c|}\hline
\textbf{Year}&\textbf{2024-1} & \textbf{2024-2} & \textbf{2023} & \textbf{2022} & \textbf{2021-1}&\textbf{2021-2}&\textbf{Minimum}&\textbf{Average}&\textbf{Maximum}
\\\hline\textbf{1 Mark Count} &1&1&3& 2 &2&3& 1&2&3
\\\hline\textbf{2 Marks Count} &2&3&3& 3 &3&4& 2&3&4
\\\hline\textbf{Total Marks} &5&7&9& 8 &8&11&\bf{5}&\bf{8}&\bf{11}\\\hline
\end{array}}}$$

Recent questions in Theory of Computation

#4361
2.0k
views
1 answers
2 votes
Q3) Given,$L_1 = (aaa^*b)$L_2 = (aab^*aba^*)$Find (c) the union of $L_1$ and $L_2$, and also find (d) $L_1 - L_2$.Q4) Find the npda's of the following:f) $L = \{ a^nb ... $L = \{w : 2n_a(w) \leq n_b(w)) \leq 3n_a(w) \}$.
#4362
390
views
1 answers
1 votes
Complement of non regular language is regular or not?
#4363
523
views
1 answers
0 votes
Let r1= (b* ab* ab* ab*)*, r2= (b* ab* ab*)* what is L(r1) intersection L(r2)???
#4364
791
views
1 answers
0 votes
Union & Concatenation property of regular language are closed for both DFA & NFA. But while doing union or concatenation of 2 DFAs, we have to insert epsilon ... as DFA but make them epsilon-NFA. So is both property closed for DFA?
#4365
1.1k
views
2 answers
0 votes
L = {ai bj ck | i = k or j = k}Is it a DCFL or an NCFL?
#4366
421
views
1 answers
0 votes
can anyone explain this Let L1 = {w ∈ {0,1}∗ | w has at least as many occurrences of (110)'s as (011)'s}. Let L2 = { ∈ {0,1}∗ | w ... is regular but not L2BL2 is regular but not L!CBoth L2 and L1 are regularDNeither L1 nor L2 are regular
#4367
947
views
2 answers
2 votes
L={a^n b^(2n+1) | n>=1}Also can you give acceping PDA diagram...plz
#4368
2.7k
views
2 answers
0 votes
Can we make NPDA? L= {anbn| n>=0,a,b are input variables}if yes then make it .
#4369
363
views
0 answers
1 votes
How can a DTM can simulate a NTM, but a DPDA can not simulate a NPDA. ? Reason?I read the proedure for a DTM to simulate a NTM but can not get why its not so with pda. Any clue ?
#4370
1.3k
views
1 answers
1 votes
I think the below language is Regular-L = {xy | na(x) = nb(y) where x,y $\in$ (a,b)* }Doubt : Since if we consider any string in ... - brackets are just for understanding purpose). Can some one write the regular grammar for this language?
#4371
3.1k
views
1 answers
2 votes
Given the Grammar, S -> abB, A -> aaBb,B -> bbAa,A -> ∈Please explain how we get expression:-L = { ab(bbaa)^n bba (ba)^n / n>= 0 }Please explain step by step.
#4372
546
views
0 answers
1 votes
#4373
2.2k
views
3 answers
1 votes
Regular Expression:-Q1) What languages do the expression (∅*)* and a∅ denote?Q2) Find a regular expression and finite automata for all bit strings, with leading bit 1 interpreted ... / (number of a in w + 3*number of b) in w is even }
#4374
528
views
1 answers
2 votes
Here is the DFA and I need to convert it to regular expression. I get two different answers when removing states in different order.i get b(c+ab)*d when I remove B ... while I get (bc*a)*bc*d when I eliminate A first. Which one is right?
#4375
699
views
1 answers
1 votes
let L1 =a*b* and L2 = {ab} L3 = prefix (L1* intersection L2)where prefix(L) = { u| uv belongs L for any v} find the number of strings in L3????
#4376
189
views
1 answers
1 votes
L = { $a^{i}b^{2i} $ | i>=1}Is this language regular or not ?Is there any specific way to check weather language is regular or not ?
#4377
365
views
1 answers
1 votes
Consider the statements:S1: Regular Expression for the language over the alphabet Σ={a} containing strings whose length is either multiple of 2 or a multiple of ... even} is a Context free language Which of the above statements are TRUE?
#4378
679
views
1 answers
2 votes
Consider the following languages:L1={an bn:n≥0 and n is not multiple of 5}L2=complement of {(0n 1n )m│m,n>0}
#4379
581
views
1 answers
1 votes
Which of the following is the language L={0n#02n#03n│n≥0}( Marks: -0.33 ) Regular but not Context free Context free but not Regular Not Context free None of these
#4380
376
views
1 answers
1 votes
Are r(*) and r* equivalent Regular Expression and What is the meaning of r(*)?