Exam 3: Computational Theory : Grammar, Language, and Complexity

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Recursively enumerable languages are not closed under:

Free
(Multiple Choice)
4.7/5
(35)
Correct Answer:
Verified

C

Consider the following statements about the context free grammar G = {S - >SS,S - >ab,S ->ba, S - ?} I. G is ambiguous II. G produces all strings with 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?

Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
Verified

D

Let S be an NP-complete problem, Q and R be two other problems not known to be in NP. Q is polynomial-time reducible to S and S is polynomial-time reducible to R. Which one of the following statements is true?

Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
Verified

A

Give a production grammar for the language L = {x/x ? (a,b)*, the number of a's in x is multiple of 3}.

(Multiple Choice)
4.8/5
(37)

A PC not connected to a network is equivalent to

(Multiple Choice)
4.8/5
(47)

A FSM can be considered, having finite tape length without rewinding capability and unidirectional tape movement

(Multiple Choice)
4.9/5
(43)

The following CFG is in S ? Abb B ? bAA A ? a B ? b

(Multiple Choice)
4.7/5
(34)

The part of an FA, where the input string is placed before it is run, is called _______

(Multiple Choice)
4.9/5
(42)

The production Grammar is {S->aSbb,S->abb} is

(Multiple Choice)
4.8/5
(37)

Regular expression (x/y)(x/y) denotes the set

(Multiple Choice)
4.8/5
(36)

Let SHAM3 be the problem of finding a Hamiltonian cycle in a graph G =(V,E)with Let SHAM3 be the problem of finding a Hamiltonian cycle in a graph G =(V,E)with   divisible by 3 and DHAM3 be the problem of determining if a Hamiltonian cycle exists in such graphs. Which one of the following is true? divisible by 3 and DHAM3 be the problem of determining if a Hamiltonian cycle exists in such graphs. Which one of the following is true?

(Multiple Choice)
4.8/5
(37)

Which of the following statement is true?

(Multiple Choice)
4.9/5
(32)

Let L be any infinite regular language, defined over an alphabet ? then there exist three strings x, y and z belonging to ? such that all the strings of the form XY^ n Z for n=1,2,3, … are the words in L called

(Multiple Choice)
4.9/5
(34)

Recursively enumerable languages are not closed under

(Multiple Choice)
4.8/5
(42)

Which of the following assertions about Turing Machines is true? Blank symbol(s) may occur in the input. At any stage of a computation, there are only finitely many non-blank Symbols on the tape.

(Multiple Choice)
4.8/5
(33)

The regular expression have all strings in which any number of 0's is followed by any number of 1's followed by any number of 2's is :

(Multiple Choice)
4.8/5
(29)

For s ? (0+1)* let d(s) denote the decimal value of s(e.g.d(101)) = 5 Let L = {s ? (0+1)* d(s) mod 5=2 and d(s) mod 7 != 4} Which one of the following statements is true?

(Multiple Choice)
4.9/5
(34)

Suppose that a problem A is known to have a polynomial-time verification algorithm. Which of the following statements can be deduced.

(Multiple Choice)
4.9/5
(28)

If an effectively solvable problem has answered in yes or no, then this solution is called

(Multiple Choice)
4.8/5
(32)

Languages are proved to be regular or non regular using pumping lemma.

(Multiple Choice)
4.9/5
(35)
Showing 1 - 20 of 25
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)