Conversion of NFA to DFA (Example 2)

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • TOC: Problem Number 2 on Conversion of Non-deterministic Finite Automata (NFA) to Deterministic Finite Automata (DFA).
    Topics discussed:
    This lecture shows how to convert a given NFA to its equivalent DFA using the Subset Construction method.
    Full Course on TOC: goo.gl/f4CmJw
    Follow Neso Academy on Instagram: @nesoacademy (bit.ly/2XP63OE)
    Follow me on Instagram: @jaiz_itech (bit.ly/2M3xyOa)
    Contribute: www.nesoacademy...
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacademy...
    Website ► www.nesoacademy...
    Forum ► forum.nesoacad...
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #TheoryOfComputation #TOCByNeso #NFAtoDFA #NFA #DFA #AutomataTheory

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

  • @prasathmsd0760
    @prasathmsd0760 7 หลายเดือนก่อน +220

    All the best for tomorrow's exam mate😂

    • @GauravRao09
      @GauravRao09 5 หลายเดือนก่อน +4

      Thanks bro my exam is tommorow

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

      thanks lol

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

      🤣👍

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

      lol my exam after 10 hours

    • @blacklion9901
      @blacklion9901 4 หลายเดือนก่อน +3

      I'm going to exam hall while watching 😂

  • @mohdamaan5551
    @mohdamaan5551 ปีที่แล้ว +327

    after 6 years ,still helping passing semester exams.

  • @tanvirhasanmonir1627
    @tanvirhasanmonir1627 5 ปีที่แล้ว +206

    Millions of thanks to you dear sir. Your tutorial is the best material to learn "Theory of Computation"

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

    i love it when he asks "what is the meaning of this?". my gut reaction is of "i dont know, its not my fault"

  • @RahilKhan-jt9ut
    @RahilKhan-jt9ut 3 ปีที่แล้ว +98

    ans : should not start with 'ba' and must have odd no of b(s) at the end

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

      correct!! Thanks

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

      But abab is accepted ?

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

      @@dheepakraaj8352 strings with not starting with ba and having odd no of b's and ending with odd no. of b's

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

      for ababab, it is wrong according to your condition

    • @RahilKhan-jt9ut
      @RahilKhan-jt9ut 3 ปีที่แล้ว +2

      @@paramsavalia7900 yeah you're right

  • @capitalofcambrom
    @capitalofcambrom 5 ปีที่แล้ว +90

    These examples are fantastic. Thanks for explaining it step-by-step!

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

      Right? It really helps having every detail explained clearly, so I can see what the process actually is. Was about pulling my hair out doing my class assignment because my notes weren't the best.

  • @justinphilip3502
    @justinphilip3502 5 ปีที่แล้ว +40

    2 years back this day,best tutorial ever

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

    Assignment Answer could be:
    L = {Set of all strings over (a,b) that ends with 'b' but does not start with 'ba' and has odd number of 'b' incase of no 'a' and does not contain 'ababa'}
    For both DFA abd NFA : {set of all strings over (0, 1) that does not start with 'ba' and ends with 'b' and has odd number of 'b'}
    1) ends with an odd number of b’s
    2) cannot start with “ba”
    3) cannot contain “baba” after an even number of b’s or any number of a’s

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

      bbb is answer according to your logic but it will fail
      So it think answer should be {b, does not start with 'ba' and ends with 'ab' and has odd number of 'b'}

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

      @@dakshdixit7286 So, what is right task done in this question?

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

      @@avinashmishra9163 i wrote in my comment

    • @egetahayamaner7094
      @egetahayamaner7094 ปีที่แล้ว +8

      @@dakshdixit7286 How does bbb fail it is in the accepting state.

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

      I think its {dont start with ba, end with b or ab}

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

    It accepts the string which satisfies following conditions: -
    1. It should not start with 'ba'.
    2. Total Number of b's in the string should be odd.
    3. The string should end with odd number of b's.

  • @sahil.sjiwane
    @sahil.sjiwane 4 ปีที่แล้ว +51

    This question came to my university paper. Thanks for the help 🌟

  • @siyasahoo4965
    @siyasahoo4965 7 หลายเดือนก่อน +2

    The Q are really helping clearing the concept. Even after 7 years it's still helpful ❤

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

    i am really a fan of your teaching...such complicated topics are being taught in an easy and simply wap...HATS OFF to you sir...Lots of love from the bottom of my heart.....

  • @lone_wolf2020
    @lone_wolf2020 5 หลายเดือนก่อน +2

    The given NFA and it's equivalent DFA accepts any strings made with {a, b} and that must have a single 'b' at the end.
    Thanks for the lecture sir.
    ---------

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

    1) ends with an odd number of b’s
    2) cannot start with “ba”
    3) cannot contain “baba” after an even number of b’s or any number of a’s

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

      Correct

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

      You're so genious

    • @OllieGee333
      @OllieGee333 5 ปีที่แล้ว +26

      #3 is not correct, "bbabab" is accepted.

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

      i.e strings ends with 'a((b)^n+1) ; n={0,1,....}

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

      Mayurdeep Pathak thats 1 b... thats an odd number of b's

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

    answer: case1 : strings can contain only one character 'b' ,
    case 2: start with 'a' followed by as much 'a' as you want and end with an odd number of 'b's

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

      it can also accept strings with no 'a's and only odd no. of 'b'.
      like if you see, it can accept 'b' or 'bbb' or 'bbbbb' and so on..

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

      @@smortlogician9258 yes That is exactly what i was about to say

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

      @@smortlogician9258 so it would be 3 cases?

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

      @@stefangjorgjevski1990 no still 2 cases. As a single b is included in the case of odd no
      Of bs

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

      @@stefangjorgjevski1990 I think the best answer would be that this FSM accepts string of the form (a^n)(b^m) where n is a whole no. and m is a natural number

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

    Assignment Answer could be:
    L = {Set of all strings over (a,b) that ends with 'b' but does not start with 'ba' and has odd number of 'b' incase of no 'a' and does not contain 'ababa'}

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

    Strings which are accepted in NFA and DFA both are -
    1. Only b.
    2. End with b.
    3. End with ab.

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

      wrong,, fails for ababab ,bb,baab etc etc

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

    Great video! Assignment question answer: It takes a string ending with odd number of b to reach it's final state.

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

      But in some cases b Is even bro,so I think so the result will end with b.

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

      @@lokeshyanamandra7775 no it takes only odd number of b's

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

      try "abbabab"

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

      I think it accept every string ending with b

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

      @@AcezeroGame yeah its string ending with b

  • @SumitKumar-ne9kc
    @SumitKumar-ne9kc ปีที่แล้ว +6

    So answer of the last question is :
    string must contain odd number of b's after the first 'a' from the right side and also it must not contain odd number of b's before first 'a' from the left side.
    all string which follow the above constraint will accept by the given NFA
    please correct me, if I'm wrong.

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

      i think -> The given NFA and it's equivalent DFA accepts any strings made with {a, b} and that must have a single 'b' at the end.
      try input abab --where no odd numbers of b is present.
      Feel free to correct me if you think i'm making any mistake.

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

    Thanks Neso Academy you are doing a great job for students like us. 👍

  • @mirzakariaislam610
    @mirzakariaislam610 4 ปีที่แล้ว +9

    Thanks a lot. Today is my exam. I took my preparation through your lecture.

  • @RohitRaj-sf6th
    @RohitRaj-sf6th 7 ปีที่แล้ว +19

    For both DFA abd NFA, {set of all strings over (a, b) that ends with odd number of 'b'.}

    • @karanvenkateshupamanyuise-9407
      @karanvenkateshupamanyuise-9407 3 ปีที่แล้ว +6

      it accepts "abab" though. (you've probably already passed atc lol but just saying)

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

      doesn't accept babb

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

      Assignment answer. String cannot start with 'ba', ends with odd number of b's or at most 2 consecutive 'ab's

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

      {a*b, any number of 'a' end with odd number of 'b'}

  • @anetaivanicova1709
    @anetaivanicova1709 4 ปีที่แล้ว +9

    it accepts strings that start with a*n, n=0,1,2.. and followed by b*n/2 != 0

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

      but it can also accept strings that start with 'b', no?

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

    Ans :-
    1. it will take odd numbers of 'b'
    2. it will take odd number of 'b' end will be followed by 'ab'
    example :- ''bbb', 'bbbab' this will be accpected by the DFA

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

      Nah bro, abab is also accepted in that dfa , according to me it's the collection of string ends with b

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

      @@arsh5587 i mentioned end with ab.... That abab ends with ab..... So it is accepted

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

      @@dereck2199 yeH u r right but b can be even also

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

    The language accepts strings
    1. Doesn't start with 'ba' AND
    2. Odds number of 'b' in sequence from the ends

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

      That is not correct according to your explanation ababab should be accepted.
      But your answer is close. Some modification is required

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

    My answer: All words ending in "b", can't start with "ba", can't contain "baba" (all applied at the same time)
    Example words that work: b, a(a)b, bb(a)b, bbbbb(bb), a(a)baa(a)b, bb(a)baab;
    Example words that break the automat: ababa, ba, a(a)baba;
    Note: Brackets symbolize periods such as in some representations of rational numbers.

    • @nas.a3512
      @nas.a3512 2 ปีที่แล้ว

      "bb" is also excluded. Both the DFA and NFA representation do not accept any example words that end with the input "abb"

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

    The answer should be: (a +(a+bb)b*a + bb)*b
    In order to do this, you need to first watch lecture 51.

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

    It's ans is the strings that ends with odd no of B
    Because it accepts every string that has odd no of B and doesnt focus on the no of a and b it had in between

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

      string abab is accepted.what now ;-

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

    NFA : set of all strings over {a,b} that ending with b
    DFA:set of string b or atleast one 'a' followed by a 'b'

  • @IbrahimAli-mj8ye
    @IbrahimAli-mj8ye 2 ปีที่แล้ว +7

    The machine accepts the string 'b' or a string of at least one 'a' followed by a 'b'.

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

    THANK YOU FOR YOUR EXISTENCE

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

    Best tutor ever on YT

  • @user-rx7dz5wn5g
    @user-rx7dz5wn5g 5 หลายเดือนก่อน +1

    L = { set of all strings over (a,b) that contain just 'b' or that starts with 'a' and ends with 'a*b' or that starts with 'bb' and ends with 'a*b'}

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

    Neso academy is such a life saver

  • @gautamkatyal9966
    @gautamkatyal9966 5 ปีที่แล้ว +11

    It accepts the String start from a and nth number of a's and ends with b or String starts with b followed by b and nth number of a's and end with b.

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

      Why b and not nth number of b's?

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

    thank you so much you really saved me ,i have an exam next week and i'm ready because of you

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

    Using Arden's Theorem on Above DFA, I get my regular expression solution as:
    L = ( (b) + ( a + bb )(a + bb + baa + babb)*(bab) )
    Which is 100% correct but help me out with reducing it...
    To claritfy my answer in first bracket there option between either 'b' or whole right side term.
    in that term, there's three concatinated strings.
    1st string has two options 'a' or 'bb'
    2nd string has 4 options which is starred (*) which means it can be used 0 or more times.
    3rd string is fixed with 'bab'

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

    It's a dad of all channels to understand kinly the Automata &TOC

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

    GREAT EXPLANATION SIR! YOU MADE IT VERY SIMPLE AND EASY.

  • @BillPark-ey6ih
    @BillPark-ey6ih 10 หลายเดือนก่อน

    This guy saved my life.

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

    YOU MUST TELL THE ANSWERS OF THE ASSIGNMENT YOU HAVE GIVEN IN YOUR VIDEOS ,

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

      I think it’s answer is that “the string that either end with ‘b’ or ‘ab’”.

    • @Adithyan7274
      @Adithyan7274 4 ปีที่แล้ว +24

      @@sundarraj6509 ​you are correct but there's one more.. the number of ' b ' should be odd, because even number of ' b ' ends in the state AB which is not the final state.

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

      @@Adithyan7274 The machine accepts string "abab" so i guess there's more to it than just odd numbers of "b".

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

      i think if the number of 'b' is either prime or odd then it's accepted by the machine.

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

      @@abelii8726 but 'abbbab' is also accepted

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

    far the best video explanation with an example for the conversion of NFA to DFA. thank you so much for this !!!!!!

    • @user-iu9xo2xm2z
      @user-iu9xo2xm2z หลายเดือนก่อน

      Bhai aap kon se college se the? Or aapka college me placements ka kya scene tha/hai, Or aapka placement hua?

  • @saurabhmourya7271
    @saurabhmourya7271 ปีที่แล้ว +8

    L: {accepts the strings which neither start or end with 'ba'}

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

    Thank you Sir. When I learn with your videos , I understand everything thing.

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

    your videos I just awesome, no words god-level explanation with full concept

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

    Neso academy is heart of csit students.

    • @user-iu9xo2xm2z
      @user-iu9xo2xm2z หลายเดือนก่อน

      Bhai aap kon se college se the? Or aapka college me placements ka kya scene tha/hai, Or aapka placement hua?

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

    i first time create diagram by myself feeling good. Thank you sir. Allah-humma-Barik to you are your family.

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

    the string that only ends with odd number of b is allowed
    and if the string starts with b and has to contain a , then their must be at least 2 b in the start

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

      On condition and---- ab🤔?? And for odd number abbbab??

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

      @@kingbond470 the string that contain odd no. of b at end

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

      @@shivamjaiswal7950 abbbab??

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

    Thank you so much.... I express my sincere gratitude to you.

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

    After 6 years, still helping me

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

    all strings ending with b or odd no of b's or a followed by odd no of b's

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

    Starting with a and ending with odd b,s OR starting and ending with a 'b' only

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

      this and union, starts with even b's followed by infinite a's with even b's and ends with b.

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

    way much better than my lecturer thanks a lot.

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

    string that accepts all the string over {a,b} that starts from a & must end with ab

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

    It's 2021 , and tomorrow is my exam I have no worries after watching these videos

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

    I think that this DFA/NFA accepts all strings which end with b^k sub string where k is an odd number.

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

    L={set of all string over 'a' and 'b' that ends with 'ab'}

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

    it is very very very good tutorial live in ethiopia

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

    I found out NFA is stated based on the current input. The DFA has a unique transition from each state to every input. Thanks a million. ❤️🙏
    Today I have a final exam. I hope I will get an A+

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

    L={set of all strings with 0 or a's and end with odd number of b's}

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

    Answer to the assignment: set of strings on (a,b) such that no 'ba' string is present and odd no. of b's at end of string.

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

    ASSIGNMENT :- a string which starts with even number of 'b' and ends with odd number of 'b'

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

      i dont think it is even number of b's. It is odd only.

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

      But abab works but shouldn't be accepted according to your definition

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

      @@rajearyan No, It must be even also. Example- "ba" won't be accepted but it still contains odd number of b's.

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

      @@okko7788 No, it will be accepted according to my definition. "abab" is starting with 0- 'b' and zero is an even number and it is ending with 1- 'b' and one is an odd number.

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

      I can see that my definition is wrong. one condition is also there, that after odd number of 'b' there should not be 'aba'.

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

    Sometimes I found your videos more useful than university lectures.

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

    String that contains any no of a's followed by 0 or even no of b's and end with odd no of b's

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

    I think the DFA/NFA accepts all strings over { a , b } that end with an odd number of b-s. Please let me know if I'm right.

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

      I think it's not odd number of b-s but rather all strings ending with a single "b". For example: b, ab, aab, abab. But NOT abb or aabb or aabbb.

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

    Thanks for this teaching, awesome lecture

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

    you deserve my math teacher's salary

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

    Accepts a string ending with odd number of b's unless one of the following is true:
    1. String starts with 'ba'
    2. There is an occurrence of 'aba' after an odd number of b's

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

      No, strings starting with 'ba' will end up in the dead state.

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

      This condition is not true for aabbb

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

    set of all strings starts with {a, b} that ends with odd no of b

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

    the answer to the last question is
    the string that contains only odd no.of b's, strings that ends with oddno.of b's.

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

    Excellent tutorial professor.

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

    VERY NICE EXPLANATION. NICE ACADEMY ROCK IS ALL SUBJECTS

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

    ASSIGNMENT: L = {Set of all strings over (a, b) that ends with a odd number of 'b's}

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

      check it for ababab

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

      ups! With ababab I will end in state D and this is not a final state. So - let me think about it again ;-)

  • @SaurabhGupta-sx4jy
    @SaurabhGupta-sx4jy ปีที่แล้ว

    L={Set of all strings over (a,b) that ends with 'b' , 'bbb' or 'ab'}

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

    Thanks for your help

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

    for NFA sol :accepted string ending with. (b) followed by even no of (a).

    • @VishalSharma-ks6ip
      @VishalSharma-ks6ip 4 ปีที่แล้ว

      ab is also a string which is accepted.... Here a is not even

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

    It accepts the string that starts with 'a and ends with b' & string 'b'.

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

    It is accepting the strings that end with sequence of 'b' having odd numbers of b consecutively

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

    Amazing Sir!! You deserve a subscriber. I HAVE SUBSCRIBED

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

    great video. is the answer " a^n b^2n+1 n>=0 "?

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

    thankyou please complete the compiler design tutorial as soon as possible

  • @navaneeth2000-qc
    @navaneeth2000-qc 2 ปีที่แล้ว

    Thankyou very much for this valuable class

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

    very good video easy explanation thank you

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

    Very well explained

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

    I'm supposing the design style doesnt matter, meaning where i put C or D like in up or down direction as long as all the arrows are correct

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

    This DFA accepts a string which is ending with 'ab' or has odd number of b's in it.

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

      Not end with 'ab', it ends with odd no of 'b'

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

      @@manishshee6990 bro check for 'aab' ?

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

      @@java_with_yash yes in NFA it goes to 'C' state & in DFA it goes to 'BC' state

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

      @@manishshee6990 bro string is acceptable or not ? 'aab'...

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

      @@manishshee6990 yes so ..c and bc both are final states..so the string is accepted.

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

    It accepting strings of a&b's which having atleast one b and should ends with b only

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

    thanks sir

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

    Set of all strings over (a, b) that ends with 'b'

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

    any sting which ends with odd no's of b and do not start with ba will be a accepting string

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

    L={don't start with ba and ends with an odd number of b's for set of all strings over {a,b}}

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

    I think the best answer would be that this FSM accepts string of the form (a^n)(b^m) where n is a whole no. and m is an odd natural number

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

    I think it will accept strings if it ends with odd number of b

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

    Any strings end with odd no. Of 'b' which does not starts with 'ab' will accept by this DFA .... am I ri8 sir?

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

      Assignment answer. String cannot start with 'ba', ends with odd number of b's or at most 2 consecutive 'ab's

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

    Strings will be accepted which doesn't start with 'ba' and containing odd no of 'b's and end with either single 'b' or 'a' followed by 'b'.
    Is it the right answer, Sir?

    • @ArunKumar-mv3qj
      @ArunKumar-mv3qj ปีที่แล้ว

      I think answer will be, accept any string over {a, b}, that ends with 'ab', except starting string 'ba'.
      Is it right??

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

    Really thank you so much sir best tutorial 👌

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

    Your tutorial on this subject is best sir... Respectfully thank you so much sir...

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

    Thankyou so much sir
    It help me a lot

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

    I guess what is this for is strings with starts with an 'a' and has an odd number of 'b'.

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

    You have been a great help 🙏