RE to DFA by direct method (Compile Design) Example 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • RE to DFA by direct method(Compiler Design), Regular Expression to DFA by computing Nullable, Firstpos, Lastpos and Followpos functions. Here we are converting Regular Expression to DFA by direct method. We generate syntax tree for Firstpos, Lastpos, then we compute followpos using algorithm. Using followpos we design DFA, for this you can refer book "Compilers" by Aho, Lam, Ullman, Sethi.
    Also watch the Video RE to DFA by direct method example 1: • RE to DFA by direct me...

ความคิดเห็น • 49

  • @chandanam4296
    @chandanam4296 4 ปีที่แล้ว +7

    Mam really awesome.... It very useful to me.. 👍👍..

  • @anushav2669
    @anushav2669 2 ปีที่แล้ว +4

    Ma'am, thank you so much. Today my teacher in college explained, I couldn't understand properly. Now I'm cleared. THANKs a lot. Subscribing your channel 🖤👍...!!!

    • @rajashri86
      @rajashri86  2 ปีที่แล้ว

      Thank you Anusha🙏🙏

  • @tingletimu22
    @tingletimu22 2 ปีที่แล้ว +2

    Follow pos to DFA generation is explained very easily. Thank you.

    • @rajashri86
      @rajashri86  2 ปีที่แล้ว

      Thank you so much..🙏

  • @059_riyaraj4
    @059_riyaraj4 2 ปีที่แล้ว +4

    The way you explained is fabulous 👌

    • @rajashri86
      @rajashri86  2 ปีที่แล้ว

      Thank you so much ❤️

  • @mdkamruzzamanleion9950
    @mdkamruzzamanleion9950 4 ปีที่แล้ว +2

    Great tutorial, lots of love from Bangladesh

    • @rajashri86
      @rajashri86  4 ปีที่แล้ว

      Thanks a lot😊🙏

  • @CrazyMonkeytututu
    @CrazyMonkeytututu หลายเดือนก่อน +1

    Thank you ma'am!❤

    • @rajashri86
      @rajashri86  หลายเดือนก่อน

      Thank you so much 🙏

  • @metin2dare
    @metin2dare ปีที่แล้ว +1

    Actually its not dfa , because its have undefined states. Like if starting with 'a' on initial state its need to gonna be to halt state. So we need to convert nfa to dfa in last part. But i think its best video for creating syntax tree. Ty for sharing.

    • @rajashri86
      @rajashri86  ปีที่แล้ว

      Thank you.. It's algorithm from Compiler Design book, Author Names . Ahi,Ulman Sethi. For more information check this book.

  • @kalgikansara7369
    @kalgikansara7369 3 ปีที่แล้ว +2

    Node 2,3,4 has same followpos so 2=3=4 then how to draw dfa

  • @mdrajibhasnat2321
    @mdrajibhasnat2321 2 ปีที่แล้ว +1

    Wow.Excellent.Thank you very much.❤️

    • @rajashri86
      @rajashri86  2 ปีที่แล้ว

      Thank you so much

  • @adityashukla5102
    @adityashukla5102 4 ปีที่แล้ว +2

    thank u so much for this video

  • @bharathp4436
    @bharathp4436 2 ปีที่แล้ว +1

    Teaching level is vv good

    • @rajashri86
      @rajashri86  2 ปีที่แล้ว

      Thank you so much 😊

  • @sivahari6748
    @sivahari6748 4 ปีที่แล้ว +3

    Mam, i have a doubt, What about the b transition on a...if that is not defined we cant say that it is a DFA...can you please explain??

    • @rajashri86
      @rajashri86  4 ปีที่แล้ว

      If there are more transition on same symbol it's called NFA. Here not necessary on each symbol ther e will be transition its depend on RE. If any transition is missing then we can show that transition to dead state. But here I have not shown dead state, you can take dead state and show remaining all transition but after completing DFA.

    • @sivahari6748
      @sivahari6748 4 ปีที่แล้ว

      @@rajashri86 okay.. mam...thanks a lot...nice video

    • @rajashri86
      @rajashri86  4 ปีที่แล้ว

      Thank you so much.
      Also watch example1 for more understanding.
      You will get in playlist.

  • @dhruvmaniya7149
    @dhruvmaniya7149 ปีที่แล้ว +1

    Honestly, I went through many solutions but it's best.

    • @rajashri86
      @rajashri86  ปีที่แล้ว

      Thank you so much 😊

  • @arisz1065
    @arisz1065 ปีที่แล้ว

    Convert the Regular Expression (a+b)*a(a+b) to DFA directly. What is syntax tree for this? Do we have to discard a coming in middle or not??

  • @naveedshams6636
    @naveedshams6636 2 ปีที่แล้ว +1

    very good explanation

    • @rajashri86
      @rajashri86  2 ปีที่แล้ว

      Thank you so much 😊

  • @aashishsapkota8058
    @aashishsapkota8058 3 ปีที่แล้ว +1

    Best concept

    • @rajashri86
      @rajashri86  3 ปีที่แล้ว +1

      Thank you ☺️🙏

  • @chaithrar983
    @chaithrar983 ปีที่แล้ว

    Mam in the beginning b.a you taken as from one concatenation (.) b and a
    But at the end again a is concatenated with b. Why you not taken from one concatenation for a and b.
    Can you please explain this mam.

    • @Hecker_bro
      @Hecker_bro ปีที่แล้ว

      because in beginning we can't leave b lone s there is nothing to concatenate with it. I f we will do as you are telling it will become "b . . a . (a+b)^* . a . b" there will come two cocatenation symbol after b.

  • @mirzasakib2747
    @mirzasakib2747 4 ปีที่แล้ว +1

    thanks a lot ma'am

    • @rajashri86
      @rajashri86  4 ปีที่แล้ว

      Thank you so much 😊

  • @fajworld
    @fajworld 3 ปีที่แล้ว

    Convert the following regular expression over
    Σ= {a, b, c} to DFA using Direct method
    (a|b|ԑ)* | (a*.b*).c
    maam kindly help me to solve this kindly make a video plz

  • @mirzababarhussain2336
    @mirzababarhussain2336 2 ปีที่แล้ว +1

    Thanks mam 😊

  • @jinugeorge4913
    @jinugeorge4913 ปีที่แล้ว

    the result is not dfa since from A no transitions on a and from B no transition on b.
    Is there any problem in converting first to nfa and then to dfa

    • @rajashri86
      @rajashri86  ปีที่แล้ว +1

      This is Direct method algorithm, this is the compiler method. For NFA,DFA pls watch Theory of Computation playlist on this channel.

  • @k.shwetharajuk.shwetharaju9555
    @k.shwetharajuk.shwetharaju9555 4 ปีที่แล้ว +2

    (a+b)*abb I need this conversation
    RE to DFA

    • @rajashri86
      @rajashri86  4 ปีที่แล้ว +1

      th-cam.com/video/G8i_2CUHP_Y/w-d-xo.html
      Above example is solved in this video please do watch

    • @rajashri86
      @rajashri86  4 ปีที่แล้ว

      th-cam.com/video/G8i_2CUHP_Y/w-d-xo.html
      Please chk above video for your example

  • @AbhishekKumar-cv1dh
    @AbhishekKumar-cv1dh 3 ปีที่แล้ว

    At 18:20, wouldn't we get b transition as 3,4,5,7? Hence it will be a self loop on b transition from state {3,4,5,7}. Is this correct?

    • @saniyachaudhary2350
      @saniyachaudhary2350 3 ปีที่แล้ว

      yah i too noticed

    • @rajashri86
      @rajashri86  3 ปีที่แล้ว +1

      No, out of {3,4,5,7} only 4 node is having b transition so we will consider followpos of 4 only that is {3,4,5} not self loop {3,4,5,7}.

    • @rajashri86
      @rajashri86  3 ปีที่แล้ว +1

      @@saniyachaudhary2350 No, out of {3,4,5,7} only 4 node is having b transition so we will consider followpos of 4 only that is {3,4,5} not self loop {3,4,5,7}.

    • @saniyachaudhary2350
      @saniyachaudhary2350 3 ปีที่แล้ว +1

      @@rajashri86 oh yes.Thanks I got it.