...
GATE 2008
September 29, 2024
TCP
September 30, 2024
GATE 2008
September 29, 2024
TCP
September 30, 2024

GATE 2008

Question 10

Which of the following are decidable?

    I. Whether the intersection of two regular languages is infinite
    II. Whether a given context-free language is regular
    III. Whether two push-down automata accept the same language
    IV. Whether a given grammar is context-free
A
I and II
B
I and IV
C
II and III
D
II and IV
Question 10 Explanation: 
The intersection of two regular languages is always a regular language (by closure property of regular language) and testing infiniteness of regular language is decidable. Hence statement I is decidable.
Statement IV is also decidable, we need to check that whether the given grammar satisfies the CFG rule (TYPE 2 grammar productions).
But statements II and III are undecidable, as there doesn’t exist any algorithm to check whether a given context-free language is regular and whether two push-down automata accept the same language.
Correct Answer: B
Question 10 Explanation: 
The intersection of two regular languages is always a regular language (by closure property of regular language) and testing infiniteness of regular language is decidable. Hence statement I is decidable.
Statement IV is also decidable, we need to check that whether the given grammar satisfies the CFG rule (TYPE 2 grammar productions).
But statements II and III are undecidable, as there doesn’t exist any algorithm to check whether a given context-free language is regular and whether two push-down automata accept the same language.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!