Ambiguous to Unambiguous Grammar | Compiler Design

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024
  • #ambiguousgrammar #ambiguityincontextfreegrammar
    ambiguous grammar to unambiguous grammar | ambiguous grammar to unambiguous grammar conversion | ambiguous grammar to unambiguous grammar in compiler design | ambiguous grammar example | how to change ambiguous grammar to unambiguous grammar | Converting ambiguous grammar to unambiguous | Ambiguous Grammar to Unambiguous Grammar |
    remove ambiguity from grammar | How do you convert ambiguous grammar to unambiguous grammar? | How can we remove ambiguity from an ambiguous grammar?
    Welcome to our TH-cam tutorial on "Ambiguous to Unambiguous Grammar"! In this enlightening session, we explore the fascinating process of transforming ambiguous grammars into unambiguous ones-a crucial step in the world of formal language theory and compiler design.
    Conversion from Ambiguous to Unambiguous Grammar
    Rule-01: The precedence constraint is implemented using the following rules-
    The level at which the production is present defines the priority of the operator contained in it.
    The higher the level of the production, the lower the priority of operator.
    The lower the level of the production, the higher the priority of operator.
    Rule-02: The associativity constraint is implemented using the following rules-
    If the operator is left associative, induce left recursion in its production.
    If the operator is right associative, induce right recursion in its production.
    Contact Details (You can follow me at)
    Instagram: / thegatehub
    LinkedIn: / thegatehub
    Twitter: / thegatehub
    ...................................................................................................................
    Email: thegatehub2020@gmail.com
    ...................................................................................................................
    📚 Subject Wise Playlist 📚
    ▶️Data Structures: tinyurl.com/bwp...
    ▶️Theory of Computation: tinyurl.com/5bh...
    ▶️Compiler Design: tinyurl.com/2p9...
    ▶️Design and Analysis of Algorithms: tinyurl.com/ywk...
    ▶️Graph Theory: tinyurl.com/3e8...
    ▶️Discrete Mathematics: tinyurl.com/y82...

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

  • @dippatel1847
    @dippatel1847 ปีที่แล้ว +35

    Sir you are teaching so nice ❤️ that we can understand even in 1.75x speed and in first try itself.
    Really helpful for college students during exams.
    God bless you sir . Keep teaching keep growing sir

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

      Gujju khem cho

  • @ayushjaiswal6317
    @ayushjaiswal6317 ปีที่แล้ว +156

    I never comment but ......Gate Smasher is overrated .The Gatehub is underrated. You deserve a million subscriber sir .

    • @sinanmohammadnahian4768
      @sinanmohammadnahian4768 ปีที่แล้ว +44

      Lol. If you praise then praise. But don't put others down

    • @kamleshsinghbisht130
      @kamleshsinghbisht130 ปีที่แล้ว +12

      @@sinanmohammadnahian4768 but it's truth in terms of Compiler Design at least.

    • @DaljeetSingh-vv2tk
      @DaljeetSingh-vv2tk ปีที่แล้ว +5

      true, deserves more subscribers

    • @RupeshMishra-r7h
      @RupeshMishra-r7h 2 หลายเดือนก่อน

      It is up to us , Viewers ,we should like , share and Comment so much that Algorithm will push this video as much possible.

    • @sajalchhetri2476
      @sajalchhetri2476 16 วันที่ผ่านมา

      So why belittling others?​@@kamleshsinghbisht130

  • @KHURRAMSHAHZAD-jl5qi
    @KHURRAMSHAHZAD-jl5qi 10 หลายเดือนก่อน +2

    areee bhai koi aur bhi krlo ezample same sbhi krte ho

  • @reeshavacharya
    @reeshavacharya 3 ปีที่แล้ว +11

    7:30 LMAOOO

  • @TheonlyKT1225
    @TheonlyKT1225 9 หลายเดือนก่อน +7

    I have never seen a Sir cover so muvh and so precisely. You are God for us Sir!!

  • @doeydever7124
    @doeydever7124 3 ปีที่แล้ว +10

    You are truly an amazing teacher. Take ❤️ 🙂

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

    best explanation so far...Thank you very much bhaiya..

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

    Very simple and easy explanation I can't explain in words

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

    So insightful man ,next level

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

    jhatiya ni smjh aaya

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

    sir skkiped what is unambiguous tree

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

    Great explanation. Thanks! 😀

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

    good example

  • @13manveersingh
    @13manveersingh 11 หลายเดือนก่อน

    Bhaiya koi baat ni sb theek ho jayega

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

    Underrated!!!

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

    Thank u sir🙏

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

    Shera love you hogaya

  • @SantoshKumar-lz2ti
    @SantoshKumar-lz2ti ปีที่แล้ว +1

    Doubt :- I think for a string we can one left parse tree and one right parse tree, if more than one tree for left or right..then it is ambiguous..am I correct?

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

      okay i will clear ur doubt -> if a grammar is unambiguous then the structure of right most derivation parse tree and left most derivation parse tree will always same, so in unambiguous grammar we will not get more than on parse tree for a string because structure of Lmd parse tree and rmd parse tree will be always same
      If a grammar is ambiguous then the structure of lmd parse tree and rmd parse tree will be always be different for a string.
      and it is also possible that more than one lmd parse trees or rmd parse trees have different structure in ambigous grammar.

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

    great

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

    Sir Please Make a video on some another grammar / production and convert them into unambiguous
    like:
    S → AB | aaB
    A → a | Aa
    B → b
    and
    S → ABA
    A → aA | ε
    B → bB | ε

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

      You got video for that?? I also have same questions this sem

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

      @@musicmysoul6060 no

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

      @@noornawaz7147 shit

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

    Nice Explanation ❤️❤️

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

    Ok