CD | Parsers | Conflicts and examples of CLR(1) and LALR(1) | Ravindrababu Ravula | Free GATE CS

  Рет қаралды 356,511

Ravindrababu Ravula

Ravindrababu Ravula

10 жыл бұрын

For Course Registration Visit: ravindrababuravula.in/
. For Any Queries, You can contact RBR on LinkedIn: / ravindrababu-ravula
Telegram: t.me/ravindrababu_ravula
Instagram: / ravindrababu_ravula_rbr
- For Full Compiler Design Playlist: • Compiler Design - GATE... Description

Пікірлер: 65
@deepdownthelane
@deepdownthelane 6 жыл бұрын
His repetitive rules at every step nails the concept in your head :)
@ishamudgal697
@ishamudgal697 6 жыл бұрын
all of my classmates and 2 generations of seniors ( in america ) passed watching these. Thanks!
@lethalking3956
@lethalking3956 6 жыл бұрын
isha mudgal * passed the exams or passed away from the world?? * 😂😂
@kuelf123
@kuelf123 6 жыл бұрын
HAHAHA! Goteem. All of her classmates and 2 generations of her seniors have all passed away on their seats watching these lectures.
@Makwayne
@Makwayne 5 жыл бұрын
@@kuelf123 HAHAHAHAH
@hemiacetal1331
@hemiacetal1331 2 жыл бұрын
Except you?
@karishmaagarwal4041
@karishmaagarwal4041 6 жыл бұрын
i start liking compiler design after watching your videos
@NAVAP_IAS
@NAVAP_IAS 3 жыл бұрын
Really me too😂😂😂
@thehumblecoder
@thehumblecoder 4 жыл бұрын
Saviour of life.... U Nailed these concepts in our head
@ayushagarwal1669
@ayushagarwal1669 3 жыл бұрын
You are just a mind blowing tutor I have ever seen in my life hats off
@RAJATTHEPAGAL
@RAJATTHEPAGAL 6 жыл бұрын
NAIIILLLLLEEDDDD it :-D .... awesome and very clear instruction on how to create parse tables. Saved 8 hours before test :-p
@rishikasuri4071
@rishikasuri4071 5 жыл бұрын
All hail to you sir..... i understood the concepts very well.. thankyou
@Utkarsh_Gamer-u2v
@Utkarsh_Gamer-u2v 6 жыл бұрын
very nice description sir 😊
@yogeshbirla5967
@yogeshbirla5967 4 жыл бұрын
thank you very much sir , you are a great teacher . Thank you very much
@asmitadhungana3790
@asmitadhungana3790 3 жыл бұрын
clear as water! ;) Thanks!
@anshikamishra9942
@anshikamishra9942 9 жыл бұрын
ULTIMATE..!! :)
@srikrishnar5052
@srikrishnar5052 6 жыл бұрын
Excellent presentation
@jugurthabelkalem7926
@jugurthabelkalem7926 8 жыл бұрын
Thank's a lot Sir!!!!
@khushaliview
@khushaliview 9 жыл бұрын
very nice lecture
@meeraharihar4762
@meeraharihar4762 5 жыл бұрын
Thanks alot...sir
@PratikShende91
@PratikShende91 9 жыл бұрын
thanks sir .........m preparing for gate ....n ur lectures are really helping me sir........thnks
@tarunreddy9219
@tarunreddy9219 3 жыл бұрын
@porus how was your result?
@PratikShende91
@PratikShende91 3 жыл бұрын
@@tarunreddy9219 good enough to get into One of the Old Nits...if you are preperaing now...focus and work hard...hope you will get one of the iits...best of luck
@tarunreddy9219
@tarunreddy9219 3 жыл бұрын
@porus Thanks brother.Hoping for the best
@manojpradhan943
@manojpradhan943 6 ай бұрын
@@PratikShende91 What are you upto now days. 9 years have gone by when you posted that comment
@poojapachghare2820
@poojapachghare2820 9 жыл бұрын
best one
@shimulbhattacharjee9560
@shimulbhattacharjee9560 3 жыл бұрын
The grammar is not LL(1) because both FIRST(AaAb) and FIRST(BbBa) contain €. Hence both the productions will be placed in FOLLOW (S) which is $.
@jaydeeppanchal864
@jaydeeppanchal864 3 жыл бұрын
you are wrong because first(s)->{a,b} and first(A)->{€} first(B)->{€} and follow{S}->{$} Follow(A)->{a,b} and Follow(B)->{a,b}
@harshitha6160
@harshitha6160 4 жыл бұрын
sir, here at 19:35, we have two states with same lr(0) items and different lookaheads, A->d.,a A->d.,c but why didnt we consider that
@manasvinisingh5027
@manasvinisingh5027 4 жыл бұрын
Even I had the same doubt but found out later that each state as a whole is considered while merging, not any single lr(1) item. If you observe carefully, other than the those two items, both of the states contain various other lr(1) items. So, they don't qualify the criteria for merging and hence, shall not be taken into account.
@desaihardi4457
@desaihardi4457 5 жыл бұрын
Sir, I have one confusion related to converting CLR(1) to LALR(1) in merging operation. In lecture14, at 18:18, you merge the state which has same LR(0) items with different lookahead, but in lecture-15, at 12:44 you say that we have to merge the state which has different LR(0) item with the same lookahead. Which one is correct?
@themadmystery
@themadmystery 3 жыл бұрын
first one is correct
@narendrayadav5662
@narendrayadav5662 8 жыл бұрын
SIR,what is difference between GOTO and SHIFT? .....
@alokesh985
@alokesh985 4 жыл бұрын
The first grammar is not ll(1)
@abdullahkhalid9581
@abdullahkhalid9581 6 жыл бұрын
Thankyou.
@eshitanimje1277
@eshitanimje1277 8 жыл бұрын
+Gate Lectures by Ravindrababu Ravula, sir, in your last example why did u consider lookahead of A->.d , a and for B-> .d, c and why not A-> .d,a/c and B-> .d, c/d
@stephanetheboss7340
@stephanetheboss7340 8 жыл бұрын
i love you
@GauravJain108
@GauravJain108 6 жыл бұрын
Because while taking the closure, we encounter A at (S -> .Aa, $) and the first of a$ is a. Similarly, we encounter B at (S -> .Bc, $) and the first of c$ is c. Therefore we have A -> .d, a and B -> .d, c in the first state.
@cheshtagupta7491
@cheshtagupta7491 3 жыл бұрын
@@GauravJain108 thankyou
@sivaranjaniduraisamy8766
@sivaranjaniduraisamy8766 4 жыл бұрын
State 0 has A-> . , a and state 4 has A-> .,b which are same LR(0) item with different look ahead, why are we not merging them?
@anoushka3094
@anoushka3094 5 жыл бұрын
How is it ll1?
@ShivamPanchbhai
@ShivamPanchbhai 5 жыл бұрын
All 460k subscribers are computer students 😂
@lavanya2kowmar
@lavanya2kowmar 8 жыл бұрын
sir the example has left factoring ,even though can it be ll(1)
@GauravJain108
@GauravJain108 6 жыл бұрын
If A-> B|C, then first(B) and first(C) should be disjoint which implies that if the grammar has common prefixes in the production i.e. left factors, it can't be LL(1).
@siddharthasharma5900
@siddharthasharma5900 6 жыл бұрын
thanks sir
@shatakshiagrawal3062
@shatakshiagrawal3062 7 жыл бұрын
Sir..At 13:00 why have u only taken transitions from S,A,B and not a,b?
@GauravJain108
@GauravJain108 6 жыл бұрын
Transitions are done only for the items which are on the RHS of dot (.). For the first state, a and b are present on look ahead and not on the RHS of dot (.). Hope this helps!
@idrischakera2579
@idrischakera2579 6 жыл бұрын
Quick revision tip - Set the speed to 1.5x
@ysonkar
@ysonkar 5 жыл бұрын
2.6 :)
@arunkoshy764
@arunkoshy764 4 жыл бұрын
In the first question ,It is Not ll1 Because [a,b] [a,b] Follow of A is (a,b) is it right If it is wrong please correctbme
@GATECS-pz6zj
@GATECS-pz6zj 3 жыл бұрын
exactly
@pottabatiniraviteja9000
@pottabatiniraviteja9000 4 жыл бұрын
how it is not a slr(1) ?? any reasons.
@mainakbiswas2584
@mainakbiswas2584 4 жыл бұрын
Because both follow of A and B has {a,b} and therefore.....A->. and B->. ; therefore in columns of a and b; there will be RR conflict.
@saisriramgovardhanam302
@saisriramgovardhanam302 6 жыл бұрын
why 1st example don't get rr conflict..for clr1,lalr1?
@SBan9
@SBan9 6 жыл бұрын
The final items in state I(zero) are :(i) A -> . , a (Look-ahead is 'a') and (ii) B -> . , b (Look-ahead is 'b'). So reduce move (i) would be placed in the I(zero) state row, under the 'a' column and reduce move (iI) would be placed in the I(zero) state row, under the 'b' column. So, no conflicts would arise.
@arogyasuchi9796
@arogyasuchi9796 6 жыл бұрын
Is clr(1) and lr(1) are same
@niranjan_nyra
@niranjan_nyra 6 жыл бұрын
YES..
@yashjain1449
@yashjain1449 7 жыл бұрын
how first of aAb are calculated
@GauravJain108
@GauravJain108 6 жыл бұрын
It is simply a. Refer to: goo.gl/p98ZK3
@swethareddy8526
@swethareddy8526 10 жыл бұрын
any website for ur classes...?
@eshitanimje1277
@eshitanimje1277 8 жыл бұрын
+Gate Lectures by Ravindrababu Ravula sir, in your last example why did u consider lookahead of A->.d , a and for B-> .d, c and why not A-> .d,a/c and B-> .d, c/d because if we consider the other production c and d are followed by A and B respectively...so shouldn't we consider the 2nd production first(c,$) and 4th production (a,$) while calculating the lookahead for A and B.?
@eshitanimje1277
@eshitanimje1277 8 жыл бұрын
+Gate Lectures by Ravindrababu Ravula sir, in your last example why did u consider lookahead of A->.d , a and for B-> .d, c and why not A-> .d,a/c and B-> .d, c/d because if we consider the other production c and d are followed by A and B respectively...so shouldn't we consider the 2nd production first(c,$) and 4th production (a,$) while calculating the lookahead for A and B.
@VineetKumar-rk5yl
@VineetKumar-rk5yl 8 жыл бұрын
+Eshita Nimje because the production A->.d was instantiated by the production S->.Aa,$ And not by the production S->.bAc,$. So we only consider the follow of A in the first production. To make it clear if the production was S->>.Aa,$ /.Ac,$instead then you could have written A->.d,a/c since it was instantiated by both the production so you have to consider the follow of A from both the production.
@PIYUSHJIIT
@PIYUSHJIIT 8 жыл бұрын
+Gate Lectures by Ravindrababu Ravula Did u want website for lectures Delivery?? I can build website for you.
@salehairej2883
@salehairej2883 6 жыл бұрын
Gate Lectures by Ravindrababu Ravula
Summer shower by Secret Vlog
00:17
Secret Vlog
Рет қаралды 13 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 21 МЛН
Женская драка в Кызылорде
00:53
AIRAN
Рет қаралды 500 М.
CLR Parser in compiler design with solved example1
33:32
Sudhakar Atchala
Рет қаралды 143 М.
Day 24: Compiler | LR Conflicts
27:48
SolverToBe
Рет қаралды 1,4 М.