Q.

Consider the following decision problems:
(P1) Does a given finite state machine accept a given string
(P2) Does a given context free grammar generate an infinite number of stings
Which of the following statements is true?

A. Both (P1) and (P2) are decidable
B. Neither (P1) nor (P2) are decidable
C. Only (P1) is decidable
D. Only (P2) is decidable
Answer» A. Both (P1) and (P2) are decidable
3.4k
0
Do you find this helpful?
31

Discussion

No comments yet

Related MCQs