Deprecated: Implicit conversion from float-string "1673144971.500" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1673144971.500" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1673144971.500" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1673144971.500" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1673144971.500" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1673769270.927" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1673769270.927" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1673769270.927" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1673769270.927" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1673769270.927" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1628314634.980" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1628314634.980" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1628314634.980" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1628314634.980" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1628314634.980" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
True or False Question regarding DPDA and prefix property / GATE Overflow for GATE CSE
retagged by
5,456 views
8 votes
8 votes

a) A DPDA which accepts by empty stack cannot accept all Regular Languages?

b) All Regular Languages doesn't satisfy prefix property?

retagged by

3 Answers

Best answer
24 votes
24 votes

a. True. Reason explained later.
b. True. Simple example $L = \{a, aa\}$. 

Prefix property requires that if a string $w$ is in $L$, then no prefix of $w$ is in $L$.

So, for above language, $a$ is a prefix of $aa$ and both are in $L$ violating the prefix property. And $L$ is a regular as well as finite language. 

Now, a language is DCFL and accepted by a DPDA with empty stack it must have the prefix property. This is because to accept a string stack must become empty. Now, when the stack becomes empty it must accept the string and due to determinism, it cannot have another move possible. So, no more characters from the input can be accepted. This is the reason why 'a' is TRUE. But the same property is not relevant for DPDA which accepts by final state. So, 

  1. Power of DPDA which accept by final state is more than that which accepts by empty stack
  2. Power of PDA (which includes non-deterministic) which accept by final state is same as that which accepts by empty stack.
selected by
0 votes
0 votes
1. False as every regular language is DCFL , hence a DPDA accepting DCFL by empty stack can also accept regular language .

2. The prefix property for a language is defined as ,

 for all x,y belongs to L, either  x is a prefix of y or y is a prefix of x.

the statement is true as all regular languages does not satisfy prefix property.

ex:  L = (a+b)* ,

a is not prefix of b but a,b belongs to L.

correct me if I’m wrong.
0 votes
0 votes

Both statements are TRUE.

prerequisite : prefix property. 

Stmt 1DPDA with empty stack method, accepts those languages which satisfies prefix property. 

Consider a Regular Expression a*, the language corresponds to this regular expression is L={null, a, aa,aaa...},

here, does not satisfy prefix property and hence cannot be accepte by DPDA with empty stach method.

Stmt 2   Consider the language L in above explanation.

Related questions


Deprecated: Implicit conversion from float-string "1532783348.471" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1532783348.471" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1532783348.471" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1532783348.471" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
580
views
1 answers
0 votes
iarnav asked Sep 17, 2017
580 views
The following question is a modified version of this question https://gateoverflow.in/3785/gate2005-it-38, in this GATE question they have NPDA, but I'm asking about DPDA...
2.6k
views
0 answers
2 votes
Shubhanshu asked Aug 28, 2017
2,602 views
Construct the DPDA with empty stack and final state method for the language L = ${ a^n b^n / n>= 0}$.
1.6k
views
0 answers
1 votes
Matrix asked Jul 28, 2018
1,553 views
Is this approach of acceptance by empty stack correct ?I am confused because i have read that acceptance by empty stack may not be able to accept all regular languages.
720
views
1 answers
3 votes
AskHerOut asked Oct 22, 2017
720 views
1) Can a Deterministic PDA has two epsilon transition each reading different Stack symbol to perform a transition?2) Can a transition be performed without reading Stack s...
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 5.7 5% 4.3 4% 72 1.8 1% 2 0.0 0% 569k 41%
Control 22.8 21% 1.9 1% 5 21.1 19% 12 0.0 0% 376k 27%
View 5.1 4% 5.1 4% 12 0.0 0% 0 0.0 0% 91k 6%
Theme 67.6 63% 8.0 7% 15 59.6 56% 3 0.0 0% 345k 24%
Stats 5.3 4% 0.1 0% 0 5.2 4% 1 0.0 0% 0k 0%
Total 106.3 100% 19.4 18% 104 87.7 82% 18 0.0 0% 1384k 100%