hw1 - CS181 Spring 2010 Problem Set 1 Due Friday April 9...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CS181 Spring 2010 - Problem Set 1 Due Friday, April 9, 2010 Online Work 0. Online Survey (10 points) Complete the online survey by Sunday, April 4th. JFLAP Problems Use JFLAP for the following problems. Submit each part on CourseWeb in a separate file named pXY.jff , where X is the problem number and Y is the part ( e.g. use p2a.jff for problem 2 part (a)). 1. RegExps (30 points) Give regular expressions for the following languages: (a) L 1 = { w ∈ { a , b } * | w / a * b * + b ( a + b ) * } . (b) L 2 = { w ∈ { 0 , 1 } * | w begins and ends with 111 (not necessarily disjoint) } . (c) L 3 = { w ∈ { 0 , 1 } * | w has no more than two occurences of 01 } . 2. DFSAs (30 points) Create DFSAs for the following languages: (a) L 2 (as defined above). You can do this using 8 states. (b) L 4 = { w ∈ { a , b } * | every b is directly followed by an odd length block of a s } . Thus ε, ba , ababaaa , aabababa L 4 but baa , ababaa , aabb / L 4 . (c)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/02/2010 for the course CS 181 taught by Professor Rupak during the Spring '08 term at UCLA.

Ask a homework question - tutors are online