2.2-2.3 - CSC4510 AUTOMATA 2.2 Accepting the Union...

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

View Full Document Right Arrow Icon
1 CSC4510 AUTOMATA 2.2 Accepting the Union, Intersection, or Difference of Two Languages 2.3 Distinguishing One String from Another Accepting the Union, Intersection, or Difference of Two Languages Suppose that L 1 and L 2 are languages over Given an FA that accepts L 1 and another that accepts L 2 , we can construct one that accepts L 1 L 2 . The same approach works for L 1 L 2 and L 1 L 2 . If x  *, then knowing whether x L 1 and whether x L 2 is enough to determine whether x L 1 L 2. 2
Image of page 1

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

View Full Document Right Arrow Icon
2 Theorem: Suppose M 1 = ( Q 1 , , q 1 , A 1 , 1 ) and M 2 = ( Q 2 , , q 2 , A 2 , 2 ) are FAs accepting L 1 and L 2 . Let M = ( Q , , q 0 , A , ) be defined as follows: Q = Q 1 Q 2 q 0 = ( q 1 , q 2 )   (( p , q ), ) = ( 1 ( p , ), 2 ( q , )) Then, if : 1. A = {( p , q ) | p A 1 or q A 2 }, M accepts L 1 L 2. 2. A = {( p , q ) | p A 1 and q A 2 }, M accepts L 1 L 2. 3. A = {( p , q ) | p A 1 and q A 2 }, M accepts L 1 L 2.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

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