381hw7solns - CS 381 Homework #7 Problem 1 S S1 | S2 S1 AC...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 381 Homework #7 Problem 1 S S 1 | S 2 S1 AC case where i = j A aAb A ε C cC C ε S 2 aS 2 c case where i = k S 2 B B bB B ε
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Write a cfg for the complement of {ww R | w (a + b)*} S b a S a | b S b | a E b | b E a | a | b E b a E | b E | ε Course 381 Homework 7 Problem 2
Background image of page 2
CS 381 Homework #7 Problem 3 Twice as many b’s as a’s S SaSbSbS | SbSaSbS | SbSbSaS | ε
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CS 381 Homework #7 Problem 4 Convert regular set to its corresponding DFA, M and have all its states be variables in the CFL, G. The alphabet of G is that of M. For every δ (q n , a) = p, there’s a corresponding Q n aP For every q f F in the DFA, there’s a corresponding Q f ε Let S Q 0
Background image of page 4
Problem 5 There are 2 different types of errors that must be generated. Error type 1 – number of blocks differ from number of 0’s in the first block
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This homework help was uploaded on 09/28/2007 for the course COM S 381 taught by Professor Hopcroft during the Fall '05 term at Cornell University (Engineering School).

Page1 / 5

381hw7solns - CS 381 Homework #7 Problem 1 S S1 | S2 S1 AC...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online