Derivations from a Grammar

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024
  • TOC: Derivations from a Grammar
    This Lecture shows how to derive strings from a given Grammar and how to identify the Languages that can be generated from the given Grammars.
    Contribute: www.nesoacademy...
    Website ► www.nesoacademy...
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Pinterest ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    • Axol x Alex Skrindo - ...

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

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

    I think at the end ,the generalized expression should have m>=1 and n>=1

  • @psaikiran9831
    @psaikiran9831 4 ปีที่แล้ว +66

    Watched these videos and covered syllabus of whole semester in just 3 days. Thanks a lot

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

      i dont really understand the point of that since youre not really going to be able to encode everything properly

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

      i did in 6 hrs
      that also today

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

      @@arpitpathak7917 I did it in 2 mins. My mother went to make Maggi and I started watching this playlist. I completed it before she was done.

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

      @@robertjimenez5608 point is that this course is useless for 99% of the people, still it is taught for no reason to everyone

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

      @@oksowhat true

  • @piratedvirus
    @piratedvirus 7 ปีที่แล้ว +267

    Give this man an Award! Wow 6 months of semester covered in 96 videos...

    • @zoxomonocovo
      @zoxomonocovo 5 ปีที่แล้ว +18

      This was 6 months of semester? This was covered within the first 4 weeks of the semester? Is my degree different?

    • @visheshkwatra2279
      @visheshkwatra2279 4 ปีที่แล้ว +19

      @@zoxomonocovo Indian unis man

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

      And I have covered it only 3 days 🤣🤣🤣🤣

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

      I swear😂

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

      get lost

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

    Thank you for this channel. You are saving my "Fundamentals of Computer Science" grade and actually give some education on this topic. Unlike my current university. Also m, n >0

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

      Which linearity is this? Ex 1

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

    Sir for the last question for G3 m>=1,n>=1 or m>=0,n>=0?
    I suppose it must be 1 as minimum power of ab is 1,1

  • @ghyr3740
    @ghyr3740 6 ปีที่แล้ว +17

    sir, you teach us
    in a very good manner
    this videos are very much helpful for me.
    In the lecture m>0 and n>0

  • @elyasaf755
    @elyasaf755 5 ปีที่แล้ว +23

    Thank you sir for the videos! they are great!
    One mistake though: in example 3, epsilon isn't in the language, therefor m & n can't be equal to 0, it should be m>0 & n > 0.

    • @Aimthing
      @Aimthing 4 ปีที่แล้ว +5

      yaa m and n >= 1 must be

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

      @@Aimthing you are saying yeah and answering completely different answer in here ,commentor says >0 ur saying >=1 which one exactly comments of this videos makes me sick

    • @SumanRajak-gb1yh
      @SumanRajak-gb1yh 2 ปีที่แล้ว +9

      @@programmer6953 bro >0 and >=1 is same....🥲

  • @kartikamashal6408
    @kartikamashal6408 4 ปีที่แล้ว +30

    Sir in example 1
    Step 2 you substituted the value of "aA"
    And again in step 3 but by you didnt substituted in step 4 even its having "aA"

    • @dinesh.p8642
      @dinesh.p8642 3 ปีที่แล้ว +3

      we can take any production rule and use them. But in the end, u need to derive a string by follwoing prodcution rules. Instrutor tookl it coz it is allowed to take. U can try other rules and apply them.

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

      Don't focus too much on that example right now. It is not regular grammar.

  • @Debarshi_Choudhury
    @Debarshi_Choudhury 7 ปีที่แล้ว +41

    m>0 and n>0

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

      Debarshi Choudhury agreed

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

      m>=1,n>=1

    • @vinjamurisatyakrishna3332
      @vinjamurisatyakrishna3332 7 ปีที่แล้ว

      good observation

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

      You right, it would be m >= 0 and n >= 0 if in the grammar we had A->E and B->E

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

      @@arijitchatterjee928 both have same meaning either m>0,n>0 or m>=1,n>=1
      Because here m and n both are integers...

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

    Thank you so much. It's been really helpful for students.

  • @Ansari_Zubair
    @Ansari_Zubair 5 ปีที่แล้ว +6

    In example 1 why did not put tha value of aA instead of A in line 3,
    Is Answer correct,i think it should be (a**3+n)(b**2+n)..

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

    best learning tutorial channel

  • @jr.shivendra4271
    @jr.shivendra4271 6 ปีที่แล้ว +2

    In example-1 the grammer is "regular grammer".. so language generated by it would be regular language.
    Here language generated is of type (a^n b^n).which we have already proved irregular by "pumping lemma"....what you say about it ....?????

    • @ChristianBurnsShafer
      @ChristianBurnsShafer 6 ปีที่แล้ว +5

      The techniques used here are not specific to regular grammars.

    • @jr.shivendra4271
      @jr.shivendra4271 6 ปีที่แล้ว +1

      Yeah.... Later I realise that..

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

    9:17 I think it would be m>=1 and n>=1

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

    Correct me if I am wrong
    But in Example - 3
    it should be
    m >= 1 & n >= 1

  • @mahmoodal-bunni9293
    @mahmoodal-bunni9293 2 ปีที่แล้ว +1

    Crystal clear. Well done. Thanks.

  • @souvikbanerjee9728
    @souvikbanerjee9728 6 ปีที่แล้ว +10

    last problem- m>=1,n>=1

  • @kishorkumarkhadka5877
    @kishorkumarkhadka5877 7 ปีที่แล้ว +10

    Could we not generalize L(G3) as {a^+ b^+ } ?
    .
    a^+ and b^+ meaning the positive closure of a and b respectively .

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

    In G1, why did you execute "aA" twice?

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

    Thank you sir! God bless you.

  • @raj-nq8ke
    @raj-nq8ke 3 ปีที่แล้ว +1

    At last >= symbol should be replaced by > as string can't be null by production rule.

  • @1839_RAVISHANKARSUMAN
    @1839_RAVISHANKARSUMAN ปีที่แล้ว

    There's a slight mistake at 9:25 I guess, it should have been { where m>=1 and n>=1 } and not 0

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

    In example 1 the result we got is in the form a^nb^n..But we know this language can't be accepted by Finite Automata...I'm confused..Plz explain...

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

      Yeah bro you are right.

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

      If you got answer then tell me i am also confused.at this.

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

      Dude in the G1 it is not the regular grammar because it is not follows rule of neither Left Linear Gramar nor Right Linear Grammar.so generated language can be irregular.i got answer just now😂😂

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

      no.1 example is not regular...as it gives a->E (efcynol) ,regular language doesnot generate empty symbol for any input. in regular it only gives non terminal or terminal symbol as output belongs to - (V U T) set

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

    Thank you. I was struggling with grammar. All doubts cleared

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

    Thanks for the video sir! I immediately understand your lectures. I have a question. What if it contain S-> SAB | (lamda). What do i do with S?

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

    Thankyou very much Sir for this series 🙂🙂

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

    In the first example why did we stop substituting 'aA' for 'aaAb', why perform 'A->∈' after substituting only 2 times?

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

      I think you can repeat many times you want as long as the 'aA' exist and you can also end it anytime using 'A->e'. its up to you

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

    Is sir correct at the last example?
    Value of m and n should be greater than 1 or 0

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

    Nice explanation 😇😇

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

    Thank you so much. You helped this become so clear to me.

  • @vishalkumar-ln8kf
    @vishalkumar-ln8kf 2 ปีที่แล้ว

    at 9:19 m and n will not be greater and equal to 0 but m and n will be greater than or equal to 1...i.e m>=1 and n>=1

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

      Yes, you are right, I was going to write in the comment section about this matter, But you already wrote it. this is really important. Can the channel please review and add a comment and pin it to the top, so that in future people may learn the accurate one

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

    Thank you so much sir .

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

    sir how can we generate production rules if its not given in the question itself can you explain please

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

    Thanks a lot 🙌

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

    I have a doubt in the grammer G1 which u substitute the aA to aaAb for to steps and at the 3rd step why u substitute A->epsilon and why we subsite the A tends to epsilon in the first step of the grammer please explain

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

      And this the in finite grammer or not

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

    is g1 left linear or right linear? 3:00

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

    At 9:15 there should be n>0, m>0

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

    Sir is there any notes or pdfs of the topics?

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

    Can we keep on substituting aA as aab??????....

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

    Why aB and Ab can't be genereated at 4:57

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

      Because we got terminal symbols and further expansion is not possible

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

      For getting the language
      We want to stop at some point not go further that's why.

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

    thanks again King!

  • @ElifArslan-l9g
    @ElifArslan-l9g ปีที่แล้ว +1

    thank you

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

    General question: What's the difference between a regular expression and a regular language summary?

  • @shravankumarbolisetty3236
    @shravankumarbolisetty3236 5 ปีที่แล้ว

    In Ex-3 it should be m>0&n>0.

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

    God bless you!

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

    9:20 i think m>=1 , n>= 1

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

    Amazing video man!! Thanks a lot!

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

    What playlist is this video in?

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

    m>0 and n>0 if it >=0 there will be a power like a^0 and Which will be 1 anyway superb class

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

    Why did he use the same production rule twice? 2:20

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

    Thank you.

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

    can we write example 3: a+b+ like this

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

    Sir last one L(G3) = { a^m b^n | m>=1 and n>=1 } hoga ???

  • @samratganguly
    @samratganguly 5 ปีที่แล้ว

    At 2:30 why you didn't further divided aA to aaAb and again you could have divided aA to aaAb and so on...

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

      bro but it is regular language generated by regular grammer then it should be accepted by finite automata like it is type 3 right and a^nb^n should not be accepted by finite automata

  • @rajamurthysraj9636
    @rajamurthysraj9636 5 ปีที่แล้ว

    Thanks a lot sir......its so helpful to me......

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

    In the scenario when it was aaAbb why havent you used A->€ in there??

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

    Is , for example string "aAb" a string generated from grammar in example 3, or capital "A" is not allowed to be in final string?

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

      "A" is a non-terminal symbol which means it cannot be in the final string. Final strings must only have terminal symbols which are "a" and "b" in this case

  • @Aditya-kumar-129
    @Aditya-kumar-129 3 ปีที่แล้ว +1

    In the last example
    A small correction
    m>=1, n>=1

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

    CLear CUt EXplanation.. Thanks a lot

  • @kevinjeanmichel3824
    @kevinjeanmichel3824 6 ปีที่แล้ว

    what about m+n=2k+1 with k,m,n>=0 ? some idea please

  • @DEV-wy8cr
    @DEV-wy8cr 2 ปีที่แล้ว

    Sir, I think m>=1 and n>=1
    at 9:17

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

    Thank u sooooo much

  • @AhamedKabeer-wn1jb
    @AhamedKabeer-wn1jb 4 ปีที่แล้ว

    THank you Sir..

  • @1010ansh
    @1010ansh 6 ปีที่แล้ว +1

    IN example 2 we can derive 'aab' 'aaabb' and other infinte strings like that if we use A->a or B->b randomly ??

  • @pragatisahu5047
    @pragatisahu5047 6 ปีที่แล้ว

    Great explanation.

  • @aleksjabraka8126
    @aleksjabraka8126 6 ปีที่แล้ว +4

    why did u substitute the 2nd relation twice?

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

      Its up to you. We can generate any string using any number of substitutions.

    • @Ansari_Zubair
      @Ansari_Zubair 5 ปีที่แล้ว

      @@JoydeepDasBIT then why did not do the same at step 4 in example 1

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

      @@Ansari_Zubair that is your wish bro we can complete the step onces also

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

      @@JoydeepDasBIT thanks a lot bro

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

    sir? i think in g3, condition should be m>0,n>0.

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

    Thank you sir

  • @m.naveedakram5488
    @m.naveedakram5488 5 ปีที่แล้ว

    great work sir

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

    Thanks man

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

    Sir, in example 3, why m,n=0? a and b to the power will give null and null is not accepted in the language.

    • @elsyfernandes9821
      @elsyfernandes9821 7 ปีที่แล้ว

      hey.. even i felt the same.. Can you explain me if you have understood ?

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

      or m>0,n>0

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

    Sir Please can you help me to find a language generated by this grammars

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

    Thanks!

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

    thank you!

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

    can L(G2) be also empty string?

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

      No. Non of the productions are of the form X -> ε

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

    good explaination!!!!

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

    How in L(3) = (a^m ,b^n | m>=0 , n>=0)
    I thought it would be L(3)= (a^m, b^n | m>0 , n>0)

    • @ChristianBurnsShafer
      @ChristianBurnsShafer 6 ปีที่แล้ว

      Yes, there is an error in the video as many other comments have already made clear.

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

    For the last example in the video m>=1 and n>=1

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

    In L(G3),m,n>=1 should be there instead of m,n>=0

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

    sir, in last you said that m,n>=0 how?
    they must be >=1

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

    Thanks a lot :)

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

    Please can anyone help me to find a language generated by this grammars

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

    very good video.

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

    Thank you so mat
    ch

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

    I think m and n should be greater than 1 , in the last 9:22

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

    In example 3: m>=1 and n>=1

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

    In example 3, you missed lambda for A and B as well.

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

    Sir in question 3 how we get infinite string

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

      I think 🤔 it's a recursive process , substituting A-> aA instead of a will continue to give aA until u decide to leave it as a single symbol a

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

    HOW CAN I GET NOTES

  • @mahimarnabhajra376
    @mahimarnabhajra376 6 ปีที่แล้ว

    Are these examples of regular grammar or just grammar?

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

      These are examples of how to construct a language based on a grammar. The techniques are not limited to regular grammars.

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

    thank you.

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

    So, A Language is - Generated by Grammar, Represented by Regular Expression & Accepted by Automaton. This is what I have got so far ...

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

    Last sum last step is hard. How come it is equal to 0. It should be greater or equal to 1 . Right??? 🙄🙄

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

    I think that in the last minute of the video n>0 and m>0 , not equal.

  • @khushpreetsingh3797
    @khushpreetsingh3797 6 ปีที่แล้ว

    Thanku really helpful

  • @souravacherjee616
    @souravacherjee616 6 ปีที่แล้ว

    Is the grammar given in example 2 Right Linear or Left Linear?

  • @AMANSINGH-mj7lf
    @AMANSINGH-mj7lf 6 ปีที่แล้ว +3

    m n should be >=1

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

    in example 3 m,n >=1

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

    m,n should be greater than 0 in example 3

  • @supriya3209
    @supriya3209 7 ปีที่แล้ว

    thankyouuuu