CS381-2005fa-final - CS 381 Fall 2005 Final Exam Closed...

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

CS 381 Final Exam Wednesday Dec 14 Fall 2005 Closed book Philips 101 7-9:30pm All problems should be straight forward. Partial credit will depend on clarity and conciseness of your answer. Please do not put down correct but irrelevant information. 1. Construct a finite automaton for the set of all strings of 0’s and 1’s with an even number of zeros and an odd number of ones. You can draw the state diagram of the finite automaton or you can specify the delta function by a table. In either case you must indicate the start state and the set of final states. 2. Give a one or two sentence definition of the symbol k ij R which was used in converting a finite automaton to a regular expression. 3. Let L= { } 2 | 1 n n a b n . Prove or disprove that L is a context-free language. 4. Let L= { } | 1 n n n a b c a b c n + + + . Either give a context-free grammar for L or use the
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.
  • Summer '07
  • HOPCROFT
  • Formal language, Halting problem, Formal languages, finite automaton, Let L=, polynomial time problem

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern