13_DPDA.pdf - DPDA Deterministic PDA Deterministic PDA DPDA Allowed transitions q1 q1 a b w b w q2 q2(deterministic choices Allowed transitions a b w1

13_DPDA.pdf - DPDA Deterministic PDA Deterministic PDA DPDA...

This preview shows page 1 - 11 out of 24 pages.

DPDA Deterministic PDA
Image of page 1

Subscribe to view the full document.

Deterministic PDA: DPDA q 1 q 2 w b a , 1 q 2 q w b , Allowed transitions: (deterministic choices)
Image of page 2
Allowed transitions: q 1 q 2 1 , w b q 3 2 , w c q 1 q 2 1 , w b a q 3 2 , w c a (deterministic choices)
Image of page 3

Subscribe to view the full document.

q 1 q 2 1 , w b a q 3 2 , w b a Not allowed: (non deterministic choices) q 1 q 2 1 , w b q 3 2 , w b a
Image of page 4
DPDA example a , a b , a q 0 q 1 q 2 q 3 b , a , $ $ } 0 : { ) ( n b a M L n n a , a
Image of page 5

Subscribe to view the full document.

} 0 : { ) ( n b a M L n n The language is deterministic context-free Definition: A language is deterministic context-free if there exists some DPDA that accepts it L Example:
Image of page 6
Example of Non-DPDA (PDA) , $ $ q 1 q 2 b b a a , , , q 0 b b a a , , } } , { : { ) ( * b a v vv M L R
Image of page 7

Subscribe to view the full document.

, $ $ q 1 q 2 b b a a , , , q 0 b b a a , , Not allowed in DPDAs
Image of page 8
PDAs Have More Power than DPDAs
Image of page 9

Subscribe to view the full document.

Deterministic Context-Free Languages (DPDA) Context-Free Languages PDAs Since every DPDA is also a PDA It holds that:
Image of page 10
Image of page 11
  • Fall '19
  • Abyaym

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

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes