Exam 13: Modeling Computation

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Suppose a phrase-structure grammar has productions SS0,SA1,A0S \rightarrow S 0 , S \rightarrow A 1 , A \rightarrow 0 Find a derivation of 010 .

(Short Answer)
4.9/5
(31)

Suppose a phrase-structure grammar has productions SS1,S0A,SA1,A0S \rightarrow S \rightarrow 1 , S \rightarrow 0 A , S \rightarrow A 1 , A \rightarrow 0 Finf a derivation of 01 .

(Short Answer)
4.8/5
(34)

Suppose a phrase-structure grammar has productions S1S0.S0A,A0.S \rightarrow 1 S 0 . S \rightarrow 0 A , A \rightarrow 0 . Find a derivation of 1000 .

(Short Answer)
4.8/5
(37)

In questions determine the output for - 000000 \text {. }

(Short Answer)
5.0/5
(40)

For the following Turing machines 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 (s0,0,s0,0,R),(s0,1,s1,0,R),(s1,0,s1,1,R),(s1,1,s2,1,L),(s1,B,s1,1,L).\left( s _ { 0 } , 0 , s _ { 0 } , 0 , R \right) , \left( s _ { 0 } , 1 , s _ { 1 } , 0 , R \right) , \left( s _ { 1 } , 0 , s _ { 1 } , 1 , R \right) , \left( s _ { 1 } , 1 , s _ { 2 } , 1 , L \right) , \left( s _ { 1 } , B , s _ { 1 } , 1 , L \right) .

(Short Answer)
4.9/5
(34)

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.8/5
(33)

Construct a finite-state machine that models a vending machine accepting only quarters that gives a container of orange juice when 50 cents has been deposited, followed by a button being pushed. (The possible inputs are quarters and the button, and the possible outputs are nothing, orange juice, and a quarter. The machine returns any extra quarters.)

(Short Answer)
4.9/5
(39)

Suppose a phrase-structure grammar has productions SS11,S0A,SA1,A0S \rightarrow S 11 , S \rightarrow 0 A , S \rightarrow A 1 , A \rightarrow 0 Find a derivation of 0011 .

(Short Answer)
4.8/5
(29)

Find all strings recognized by this deterministic finite-state automaton. Find all strings recognized by this deterministic finite-state automaton.

(Short Answer)
5.0/5
(38)

In questions determine the output for - 11000.11000 .

(Short Answer)
5.0/5
(42)

S1A,A1,SλS \rightarrow 1 A , A \rightarrow 1 , S \rightarrow \lambda

(Short Answer)
4.8/5
(35)

Determine if 1101 belongs to the regular set (01)1( 0 \cup 1 ) ^ { * } \mathbf { 1 }

(Short Answer)
4.9/5
(36)

Determine if 1101 belongs to the regular set 1*0*1 .

(Short Answer)
4.8/5
(44)

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

(Short Answer)
4.8/5
(40)

Suppose a phrase-structure grammar has productions SS0,SA1,A0S \rightarrow S 0 , S \rightarrow A 1 , A \rightarrow 0 Find a derivation of 0100 .

(Short Answer)
4.8/5
(41)

 Find the set recognized by this deterministic finite-state machine. \text { Find the set recognized by this deterministic finite-state machine. } \text { Find the set recognized by this deterministic finite-state machine. }

(Short Answer)
4.9/5
(40)

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

(Short Answer)
4.8/5
(41)

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 (s0,0,s2,0,R),(s0,B,s0,1,R),(s1,0,s2,1,R),(s2,0,s1,1,L),(s2,1,s0,1,R).\left( s _ { 0 } , 0 , s _ { 2 } , 0 , R \right) , \left( s _ { 0 } , B , s _ { 0 } , 1 , R \right) , \left( s _ { 1 } , 0 , s _ { 2 } , 1 , R \right) , \left( s _ { 2 } , 0 , s _ { 1 } , 1 , L \right) , \left( s _ { 2 } , 1 , s _ { 0 } , 1 , R \right) .

(Short Answer)
4.9/5
(38)

In questions determine the output for - 1111.1111 . each input string, using this state table.  In questions determine the output for - 1111 .  each input string, using this state table.

(Short Answer)
4.7/5
(34)

Suppose a phrase-structure grammar has productions S1S0,S0A,A0.S \rightarrow 1 S 0 , S \rightarrow 0 A , A \rightarrow 0 . Find a derivation of 110000 .

(Short Answer)
4.7/5
(31)
Showing 21 - 40 of 71
close modal

Filters

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