hw1 - CS 181 Winter 2008 Formal Languages and Automata...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 181 — Winter 2008 Problem Set #1 Formal Languages and Automata Theory Due Jan 16, 2008 Problem 1.1. a. Show that Σ 1 Σ 2 implies Σ * 1 Σ * 2 . Is the converse true? b. Let ( Q, Σ , δ, q 0 , F ) be an FA. Define ˆ δ : Q × Σ * Q by induction as follows: ˆ δ ( q, ) = q ˆ δ ( q, w.a ) = δ ( ˆ δ ( q, w ) , a ) where w Σ * and a Σ. Argue (using induction) that a word w Σ * is accepted iff ˆ δ ( q 0 , w ) F . Problem 1.2. Give state-transition diagrams for DFA s that accept the following two languages. a. A 1 = { x ∈ { 0 , 1 } * | x has at least 3 letters, and x begins and ends with the same letter } . b. A 2 = { x ∈ { 0 , 1 } * | x contains an even number of occurrences of the substring 11 } . For example, the word 111 contains 2 (overlapping) occurrences of 11 . For this exercise, consider 0 to be an even number. Use the following four states: a . . . “have encountered an even number of 11 s, and the last input letter was 0 b . . . “have encountered an even number of 11 s, and the last input letter was 1 c . . . “have encountered an odd number of 11 s, and the last input letter was 0
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Winter '08
  • Rupak
  • Formal language, Regular expression, Automata theory, Formal Languages and Automata Theory, Σ∗, input letter

{[ 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