in Theory of Computation edited by
16,858 views
48 votes
48 votes

Consider the transition diagram of a PDA given below with input alphabet $\Sigma=\{a,b\}$ and stack alphabet $\Gamma = \{X,Z\}$. $Z$ is the initial stack symbol. Let $L$ denote the language accepted by the PDA

Which one of the following is TRUE

  1. $L =\{a^nb^n\mid n \geq0 \}$ and is not accepted by any finite automata 
  2. $L =\{a^n\mid n \geq0 \} \cup \{a^nb^n \mid n \geq 0\}$ and is not accepted by any deterministic PDA 
  3. $L$ is not accepted by any Turing machine that halts on every input 
  4. $L =\{a^n\mid n \geq0 \} \cup \{a^nb^n \mid n \geq 0\}$ and is deterministic context-free
in Theory of Computation edited by
16.9k views

4 Comments

1
1

@once_2019 when we say that a language is closed under some property, we guarantee that it will be closed in any case. But when we say that it is not closed, we say that it may not be closed. So the union of two DCFL is not closed means it may or may not be DFCL depending upon the language.

0
0

@once_2019 If you see first part of union then it is regular language &  union of DCFL with regular is DCFL.

1
1

6 Answers

2 votes
2 votes
Ans is d because a^n b^n can't be accepted by finite automata
–1 vote
–1 vote
Answer should be D.
Answer:

Related questions