Gate Bits 4 CFL and PDA || Lesson 81.4 || Finite Automata || Learning Monkey ||
Автор: Wisdomers - Computer Science and Engineering
Загружено: 2022-02-15
Просмотров: 375
Описание:
Gate Bits 4 CFL and PDA
In this class, we discuss Gate Bits 4 CFL and PDA.
The reader should have prior knowledge of CFL and PDA. Click Here.
Gate 2006:
Consider the following statements about context-free grammar.
G={S→SS,S→ab,S→ba,S→ϵ}
I: G is ambiguous
II: G produces all strings with an equal number of a’s and b’s
III: G can be accepted by a deterministic PDA.
Which combination below expresses all the true statements about G?
(A) I only
(B) I and III only
(C) II and III only
(D) I, II, and III
Answer: B
The explanation given in the above video.
Gate 2008:
Which of the following statements are true?
I: Every left-recursive grammar can be converted to a right-recursive grammar and vice-versa
II: All ϵ-productions can be removed from any context-free grammar by suitable transformations
III: The language generated by context-free grammar all of whose productions are of the form X→w or X→wY
(where w is a string of terminals and Y is a non-terminal), is always regular
IV: The derivation trees of strings generated by a context-free grammar in Chomsky Normal Form are always binary trees
(A) I, II, III, and IV
(B) II, III, and IV only
(C) I, III, and IV only
(D) I, II, and IV only
Answer: C
The explanation provided in the above video
Link for playlists:
/ @wisdomerscse
Link for our website: https://learningmonkey.in
Follow us on Facebook @ / learningmonkey
Follow us on Instagram @ / learningmonkey1
Follow us on Twitter @ / _learningmonkey
Mail us @ [email protected]
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: