Exam 13: A: Modeling Computation

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Let G be the phrase-structure grammar with vocabulary V={A, B, a, b, S} , terminal element set T={a, b} , start symbol S , and production set P= {S→ABa,S→Ba,A→aB,AB→b,B→ab}\{ S \rightarrow A B a , S \rightarrow B a , A \rightarrow a B , A B \rightarrow b , B \rightarrow a b \} are derivable from S ? (1) ba , (2) ab , (3) baab, (4) aababa, (5) aba

(Short Answer)
4.8/5
(86)

Construct a finite-state machine with output that produces a 1 if and only if the last 3 input bits read are 0's.

(Essay)
4.8/5
(83)

let V={S,A,B,0,1} and T={0,1}. For each set of productions determine whether the V = \{ S , A , B , 0,1 \} \text { and } T = \{ 0,1 \} \text {. For each set of productions determine whether the } resulting grammar G is (i) type 0 grammar, but not type 1 , (ii) type 1 grammar, but not type 2 , (iii) type 2 grammar, but not type 3 , (iv) type 3 grammar. - S→0B,B→1A,B→0,A→0BS \rightarrow 0 B , B \rightarrow 1 A , B \rightarrow 0 , A \rightarrow 0 B

(Short Answer)
4.8/5
(73)

For the following Turing machine T , find the final tape when T is run on the following tape, beginning in the initial position (the first nonzero entry from the left): \@cdots 0 0 0 1 0 \@cdots ,0,,1,R , ,1,,0,R , ,1,,1,R , ,B,,0,R .

(Short Answer)
5.0/5
(72)

Suppose a phrase-structure grammar has productions S → S11, S → 0A, S → A1, A → 0. Find a derivation of 011111.

(Short Answer)
4.8/5
(75)

Suppose a phrase-structure grammar has productions S → S0, S → A1, A → 0. Find a derivation of 0100.

(Short Answer)
5.0/5
(82)

let V={S,A,B,0,1} and T={0,1}. For each set of productions determine whether the V = \{ S , A , B , 0,1 \} \text { and } T = \{ 0,1 \} \text {. For each set of productions determine whether the } resulting grammar G is (i) type 0 grammar, but not type 1 , (ii) type 1 grammar, but not type 2 , (iii) type 2 grammar, but not type 3 , (iv) type 3 grammar. - S→AB,A→0B1,0B1→0S \rightarrow A B , A \rightarrow 0 B 1,0 B 1 \rightarrow 0

(Short Answer)
4.9/5
(83)

determine the output for each input string, using determine the output for each input string, using   -11000 -11000

(Short Answer)
4.9/5
(79)

What is the output produced by this finite-state machine when the input string is 11101? What is the output produced by this finite-state machine when the input string is 11101?

(Short Answer)
4.8/5
(87)

Construct a Turing machine that computes f(n)=n+2, where n≥0f ( n ) = n + 2 , \text { where } n \geq 0

(Short Answer)
4.8/5
(78)

Suppose that A = {1, 11, 01} and B = {0, 10}. Find BA. this state table.

(Short Answer)
4.9/5
(71)

let V={S,A,B,0,1} and T={0,1}. For each set of productions determine whether the V = \{ S , A , B , 0,1 \} \text { and } T = \{ 0,1 \} \text {. For each set of productions determine whether the } resulting grammar G is (i) type 0 grammar, but not type 1 , (ii) type 1 grammar, but not type 2 , (iii) type 2 grammar, but not type 3 , (iv) type 3 grammar. - S→A10,AB→0S \rightarrow A 10 , A B \rightarrow 0

(Short Answer)
4.8/5
(91)

Which strings are recognized by the following finite-state automaton? Which strings are recognized by the following finite-state automaton?

(Short Answer)
4.7/5
(79)

For the following Turing machine T , find the final tape when T is run on the following tape, beginning in the initial position (the first nonzero entry from the left): \@cdots 0 0 0 1 0 \@cdots ,0,,1,R , ,1,,1,L , ,0,,1,L

(Short Answer)
4.9/5
(83)

Determine if 1101 belongs to the regular set (01)*(11)*(01)*.

(Short Answer)
4.7/5
(78)

let V={S,A,B,0,1} and T={0,1}. For each set of productions determine whether the V = \{ S , A , B , 0,1 \} \text { and } T = \{ 0,1 \} \text {. For each set of productions determine whether the } resulting grammar G is (i) type 0 grammar, but not type 1 , (ii) type 1 grammar, but not type 2 , (iii) type 2 grammar, but not type 3 , (iv) type 3 grammar. - S→1A,A→1,S→λS \rightarrow 1 A , A \rightarrow 1 , S \rightarrow \lambda

(Short Answer)
4.7/5
(79)

Suppose V={S, A, a, b}, T={a, b} , and S is the start symbol. Find a set of productions that includes S→AaS \rightarrow A a and A→aA \rightarrow a and generates the language {a, a a} .

(Short Answer)
4.8/5
(64)

Let A = {1, 10}. Which strings belong to A∗?

(Essay)
4.9/5
(71)

 The productions of a phrase-structure grammar are S→S1,S→0A,A→1. Find a derivation of 0111\text { The productions of a phrase-structure grammar are } S \rightarrow S 1 , S \rightarrow 0 A , A \rightarrow 1 \text {. Find a derivation of } 0111 .

(Essay)
4.9/5
(94)

Suppose a phrase-structure grammar has productions S → S0, S → A1, A → 0. Find a derivation of 010.

(Short Answer)
4.7/5
(89)
Showing 41 - 60 of 67
close modal

Filters

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