Question 41
Question 42
Question 43
You are given the postorder traversal, P, of a binary search tree on the n elements 1, 2, ..., n. You have to determine the unique binary search tree that has P as its postorder traversal. What is the time complexity of the most efficient algorithm for doing this?
Question 44
(A) [Tex]\\theta [/Tex](logn) (B) [Tex]\\theta[/Tex](n) (C) [Tex]\\theta[/Tex](nlogn) (D) [Tex]\\theta[/Tex](n^2)
Question 46
Given below are two finite state automata (→ indicates the start state and F indicates a final state)Which of the following represents the product automaton Z×Y?
[caption width="800"] [/caption]Question 47
I. Every left-recursive grammar can be converted to a right-recursive grammar and vice-versa II. All [Tex]\\epsilon[/Tex] productions can be removed from any context-free grammar by suitable transformations III. The language generated by a 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
Question 49
Match the following NFAs with the regular expressions they correspond to
1. ϵ + 0(01*1 + 00) * 01* 2. ϵ + 0(10 *1 + 00) * 0 3. ϵ + 0(10 *1 + 10) *1 4. ϵ + 0(10 *1 + 10) *10 *[caption width="800"] [/caption]
There are 85 questions to complete.