Exam 13: Modeling Computation

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Let G be the phrase-structure grammar with vocabulary V={A, B, 0,1, S} , terminal elements T={0,1} , start symbol S , productions Let  G  be the phrase-structure grammar with vocabulary  V={A, B, 0,1, S} , terminal elements  T={0,1} , start symbol  S , productions   from  S ?  (1) 000 , (2) 11 , (3) 010 , (4) 0000 , (5) 0001 (6) 110 , (7) 0010 . from S ? (1) 000 , (2) 11 , (3) 010 , (4) 0000 , (5) 0001 (6) 110 , (7) 0010 .

(Short Answer)
4.8/5
(36)

Determine if 1101 belongs to the regular set 11(00)(10)11 ( 00 ) ^ { * } ( 10 ) ^ { * } .

(Short Answer)
4.7/5
(34)

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

(Short Answer)
4.9/5
(31)

SA10,AB0S \rightarrow A 10 , A B \rightarrow 0

(Short Answer)
4.8/5
(31)

Find a deterministic finite-state automaton equivalent to the following nondeterministic finite-state machine. Find a deterministic finite-state automaton equivalent to the following nondeterministic finite-state machine.

(Short Answer)
4.8/5
(36)

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)
4.7/5
(41)

Consider the Turing machine T:(s0,0,s1,1,R),(s0,1,s1,1,R),(s1,0,s0,1,L),(s1,1,s0,0,R),(s0,B,s1,1,R)T : \left( s _ { 0 } , 0 , s _ { 1 } , 1 , R \right) , \left( s _ { 0 } , 1 , s _ { 1 } , 1 , R \right) , \left( s _ { 1 } , 0 , s _ { 0 } , 1 , L \right) , \left( s _ { 1 } , 1 , s _ { 0 } , 0 , R \right) , \left( s _ { 0 } , B , s _ { 1 } , 1 , R \right) For the following tape, determine the final tape when T halts, assuming that T begins in state s0 at the leftmost nonblank symbol. \@cdots 1 1 0 \@cdots

(Short Answer)
4.8/5
(41)

Let A={0,11} . Find A2

(Short Answer)
4.8/5
(35)

What language is generated by the phrase-structure grammar if the productions are S → S11, S → λ, where S is the start symbol?

(Short Answer)
4.8/5
(35)

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

(Short Answer)
4.8/5
(38)

S0B,B1A,B0,A0BS \rightarrow 0 B , B \rightarrow 1 A , B \rightarrow 0 , A \rightarrow 0 B

(Short Answer)
4.9/5
(28)

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

(Short Answer)
4.8/5
(29)

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

Determine if 1101 belongs to the regular set (111)(01)( 111 ) ^ { * } ( 01 ) ^ { * } .

(Short Answer)
4.8/5
(31)

In questions determine the output for - 10111.10111 .

(Short Answer)
4.9/5
(39)

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={SABa,SBa,AaB,ABb,Bab}P = \{ S \rightarrow A B a , S \rightarrow B a , A \rightarrow a B , A B \rightarrow b , B \rightarrow a b \} derivable from A ? (1) babaa, (2) aab , (3) bba .

(Short Answer)
4.8/5
(31)

Find a production of the form A"“ A \rightarrow \underline{\quad\quad}" such that S0A,AS \rightarrow 0 A , A \rightarrow \underline{\quad\quad} produces {00} .

(Short Answer)
4.9/5
(37)

Consider the Turing machine T:(s0,0,s1,1,R),(s0,1,s1,1,R),(s1,0,s0,1,L),(s1,1,s0,0,R),(s0,B,s1,1,R)T : \left( s _ { 0 } , 0 , s _ { 1 } , 1 , R \right) , \left( s _ { 0 } , 1 , s _ { 1 } , 1 , R \right) , \left( s _ { 1 } , 0 , s _ { 0 } , 1 , L \right) , \left( s _ { 1 } , 1 , s _ { 0 } , 0 , R \right) , \left( s _ { 0 } , B , s _ { 1 } , 1 , R \right) For the following tape, determine the final tape when TT halts, assuming that TT begins in state s0s _ { 0 } at the leftmost nonblank symbol. \@cdots 0 0 0 \@cdots

(Short Answer)
5.0/5
(31)

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={SABa,SBa,AaB,ABb,Bab}P = \{ S \rightarrow A B a , S \rightarrow B a , A \rightarrow a B , A B \rightarrow b , B \rightarrow a b \} derivable from ABa? (1) ba , (2) abb , (3) aba , (4) b , (5) aababa.

(Short Answer)
4.7/5
(34)

SB,AB,BAS \rightarrow B , A \rightarrow B , B \rightarrow A

(Short Answer)
4.7/5
(24)
Showing 41 - 60 of 71
close modal

Filters

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