Formal Definition of Non-Deterministic Finite Automata (NFA)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 2024
  • TOC: The formal definition of non-deterministic finite automata.
    Topics discussed:
    In this lecture, the formal definition of NFA is given and each of the tuples is explained with the special focus on the transition function.
    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 #NFA #DefinitionOfNFA #AutomataTheory

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

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

    I have seen all lectures....It's wonderful. Got highest in the last semester.

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

      Damn bro

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

      Same Really helpful brother ....💞💝

    • @subid.majumdar
      @subid.majumdar 3 ปีที่แล้ว +5

      If you made any notes can you please send me the drive link, it'll help a lot 🙏

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

      From which book Or from which online source you pratice

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

    Wasted my 2 hrs in class. Should have watched this instead. This series is very nice. Love you sir.

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

      fr man

    • @Shelly-kx2wz
      @Shelly-kx2wz 2 ปีที่แล้ว +3

      Never attended my lectures after watching this. I aced my exams for this subject.

    • @ashleynjeri.n.
      @ashleynjeri.n. 2 ปีที่แล้ว +3

      Wasted a whole semester!

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

      class made this subject a boring one

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

      @@ashleynjeri.n. 😂😂😂Njeri enda class

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

    You're such a legend. Exam tomorrow... learned more in 2 hours of vidoes than 2 months of uni. Tytyty

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

    man I love your channel. When i graduate and work one day I'm gonna come back here and make a big contribution.

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

    For anyone wondering if 2^Q is wrong, it is not. The notation 2^Q is a special notation of the "power set" of Q.
    The power set of Q is a set of all the subsets of Q.
    In the example : the power set of Q is { empty set, {A}, {B}, {A, B}}

    • @benhayter-dalgliesh5794
      @benhayter-dalgliesh5794 ปีที่แล้ว +5

      Cheers, this confused me for a long time.

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

      Oh thanks, I didn't know this was a notation. I was about to leave a comment about that lmao

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

    raise your hand if anyone is speed running this at 2x speed one day before the exam

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

    Вы так доходчиво объсняете! 3 года ваши лекции выручили на первом курсе, и сейчас, на четвертом, вы меня снова спасаете! от всей души благодарю!!!

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

      You'll be so clear about it! For 3 years, your lectures helped me out in the first year, and now, in the fourth year, you are saving me again! Thank you from the bottom of my heart.
      This is the translation.

  • @animegirl2146
    @animegirl2146 10 หลายเดือนก่อน +4

    Love love love your explanations, never felt this confident about TOC before!!!

  • @JishuSengupta-rg5dw
    @JishuSengupta-rg5dw ปีที่แล้ว +1

    timro videos easy to understand hoyo.. molai samjh ma ayo daju! Thank you so much❤️

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

    these are so much better at 1.5 speed

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

    Thank you. Your lectures are very easy to understand and it helped me a lot. Keep up your good work.

  • @monas.7095
    @monas.7095 3 ปีที่แล้ว +2

    This series of lectures of Finite automata are very helpful

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

    I don't trust college. I'm doing my engineering from here. Thank you. You are a great teacher.

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

      HaHahaaaaa

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

    sir clear expalnation and byed d bay the mucic while starting of the video is awesome

  • @Educational-pw2jp
    @Educational-pw2jp 10 หลายเดือนก่อน +1

    THANK YOU for uploading this topic...it helped me alot. thanks sir ...

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

    Thank you for the fantastic tutorial. It's very helpful.

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

    9:21 it maps to (cardinality of alphabets) raise to the power (number of states)

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

    I could not understand how A would reach AB on getting input 1 and what is really meant by AB in particular? Is there anyone who has some got answer for my query?

  • @azizbekibnhamid642
    @azizbekibnhamid642 13 วันที่ผ่านมา

    Tanks for amazing lessons

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

    I freaken love you and this channel for this content!

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

    What a topic thanks to Neso academy

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

    you saved my life, thank you so much

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

    Thank you very much!! Really Helpful!
    -From India

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

      Lol, this channel belongs to an Indian only!!

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

    Please do a video on complete and non complete that baffled ne all these years

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

    Sir please upload network security videos

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

    dear sir,
    why the state"A" when having an input 1 remain to the initial state but when it gets "0" it goes to the next state ? Pls explain​

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

    in previous lecture you said the DFA is easy to design too, so does it mean we cannot use that as a difference when asked?

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

    I have a question: the L = set of all strings that end with 0, how does it know that the string is ending? and what if it decide to go to B but there is still another symbol 1, where will that symbol go?

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

    You are simply the best

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

    i like your explanation about this course

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

    at 5:14 B should be {B}

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

    You are the best 😊

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

    Thank you.. Well explained..

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

    good lecture

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

    more formally it should be 2^|Q| meaning the cardinality of Q

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

    Thank you! This was really helpfull.

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

    If there will be notes,it will become easy to understand after watching videos.

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

    For those wondering why is it 2^Q, it is because nC0 + nC1 + nC2 + ... + nCn = 2^n

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

    I remember when he told about dead state in a previous lecture, many "geniuses" were calling him wrong :)

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

    Thanks!

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

    Sir please keep up the videos Sir!We are a strong team together!!

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

    I was thinking instead that it maps it to the power set of Q
    d : Q × E ---> P(Q)
    What do you think

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

      Quite right. DFA maps to Q and nfa to 2^Q.
      By the way nfa is Q×(E U {€}) --> P(Q)

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

    It's really helpful

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

    Excellent !!! Thank you so much !!

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

    Sir I have 3 questions regarding this particular lecture video:-
    1. Does NFA belong to the category of Finite State Machines?
    2. So can we conclude that NFA does not have the concept of a dead state as we saw in DFA?
    3. Regarding the 5th tuple of NFA (i.e. delta) sir, will it not be more specific to say that 'Q × sigma = sigma ^ Q' instead of just saying 'Q × sigma = 2^Q' ?
    Sir because, it might be possible that there are 3 or 4 or let's say 'sigma' number of input symbols in the NFA.
    For e.g. : The input symbols may be 0, 1,2,3,4. Then we have 5 input symbols,.... So it should be 'Q × sigma = 5 ^ Q'.
    Sir please answer these 3 questions of mine....
    Otherwise your lectures are very helpful for clearing my concepts, and making me understand the concepts in an easy manner.😊👍

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

      Rochishnu Majumder_2H_46 hey dude, i can answer your 3rd question. it’s always Q x sigma = 2^Q’ because every symbol can always be represented in binary(1,0) form. computational machines (computers), going from one state to another is O(1) constant time. Thereby, whenever you have a symbol that's not 1 or 0, you convert it into binary representation and process that version. That's why it's always two to the power.

    • @MMNayem-dq4kd
      @MMNayem-dq4kd ปีที่แล้ว

      1)Yes
      2)No
      3)No

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

    In this video we are discussing the formal definition of non deterministic finite automaton. non deterministic finite automaton can be defined using five set of tuples. Q, which is the set of all states. Sigma, which is the set of Inputs, Q, not. which is the start state , initial state. F, which is the final state, set of final states. And lastly, we have Epsilon, which is the transition function. And has 2 raise to the power Q, possibilities. Because we have non determinism.

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

    Thank you sir❤️

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

    Fenomenal!

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

    Very good explanation

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

    You forgot one important thing when discussing the transition function delta. since we have a possibility of upsilon as an input, u have to re define the domain of the function from SigmaXQ to Sigma X (Q U upsilon) -> 2^Q

    • @Shivani-pe7rv
      @Shivani-pe7rv 3 ปีที่แล้ว +1

      shouldn't it be Q X (Sigma U upsilon) -> 2^Q

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

    Very helpful sir

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

    Thanku so much . My doubt is cleared that why the transition function maps to 2^Q.

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

      there was a slight error actually...it would be 2^ |Q| .....cardinality of Q ..as Q is a set ..we cant use it directly to formula..':)

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

      ​@@streetdogfamily3920 no, 2^Q is notation to denote powerset, 2^|Q| is a cardinality, i.e. |2^Q|, you can't have a cardinality as a codomain

  • @NoName-jy4cv
    @NoName-jy4cv 3 ปีที่แล้ว

    Thank you!

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

    Thank you sir

  • @user-eb8fk5nj9r
    @user-eb8fk5nj9r 5 ปีที่แล้ว

    thank you very much

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

    PERFECT SIR..........

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

    Thank you..

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

    really wonderfull

  • @Oneminutecover-dx8re
    @Oneminutecover-dx8re 6 หลายเดือนก่อน

    I understand the combination formula, but don't get how fro state A went to state Fi when ita not drawn as possible...

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

    TNX a lot Sir, How A by 1 can goes to B?

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

    i think QxΣ is wrong cause in nfa we can have also ε as transition to a state..thanks for the videos 😊

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

    Thankyou sir

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

    For the delta thing, shouldn't it be a power set of Q --> P(Q) instead of 2^Q. Because 2^Q denotes the number of elements in the power set. Please tell me if I am wrong.

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

      You are right. Do have some issues, but still a wonderful and best autamata course.

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

    6:47 how does A ( a certain input) ever gives phi (nowhere)? you mean it could ultimately give phi, after also going through B?

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

      the mappings are for the general case. Essentially I see it as, if you had 2 states and any given NFA what are the maximum possible states? The empty state is one of these

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

    it should be power set of Q

  • @subid.majumdar
    @subid.majumdar 3 ปีที่แล้ว

    Why A after getting input 1 will go nowhere? Confused...... 7:10

  • @SKumar-ur9tz
    @SKumar-ur9tz 4 ปีที่แล้ว +1

    The range should be (sigma) Q^i for all i

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

    I think there is a correction : transition function for NFA should be QxSigma -> PowerSet(Q)......not 2^Q

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

      Neso Academy: yup thanks...just wanted to mention it.....even I won't forget it now ever.

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

      it is true that the power set contains 2^Q elements, but you can't define a function the way you did in this video. nalin sharma is right with his objection. other than that, great channel and great work, my man.

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

      Yes nalin sharma made a valid point. When you are defining a mapping it should always be from one set to another set.

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

      @Neso I think correct version should be (cardinality of alphabets) raise to the power (number of states)

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

      But 2^Q is the powerset of Q. Try to check with sets and see.

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

    Which is best book for automata theory

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

    Can you make a video on extended transition function of DFA

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

    nice video!!

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

    What happens when nfa final state could get a input?

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

    waw gaice it is very nice learining

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

    please upload all the lectures sir
    .. exams are going to start soon 16th may

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

    Thanks

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

    Sir, if the alphabet set has more than two symbols what will be transition function? Will it be n^Q? n is no of input symbols.

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

      it happens when the function is not necessarily well defined, it is just a relation!

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

    how can giving 1 to A result in going to AB at 7:25 ?

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

      the mappings are for the general case. Essentially I see it as, if you had 2 states and any given NFA what are the maximum possible states?

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

      @@eldqvist how null is considered as state,could you elaborate it?

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

      @@prashanthi8492 it's an NFA = Non Deterministic, so null can be a state, same as multiple paths can be taken

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

      @@eldqvist yeah I understood after watching full , anyways thanks

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

    the formula 2^Q holds for all NFA? isnt it specific to the example taken? eg if A didn't have a self loop many possibilities wouldn't occur from the ones that were written for 3 states right?

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

    perfect

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

    my teacher plays your videos in lectures

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

    need more examples to understand it

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

    Just want to clarify that at the end you said
    Q x Sigma --> 2^Q
    Where 2 happens to be cardinality of sigma.
    Now what of sigma had 4 or 5 elements? I guess it then becomes
    Q x Sigma -> (cardinality of sigma)^ Q

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

    what if input is not {0,1}??

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

    There are only 2 power Q states possible so Q x E can map to only these possible states.

  • @SHUBHAMSHARMA-fc9ny
    @SHUBHAMSHARMA-fc9ny ปีที่แล้ว

    does it contains all the topics

  • @Amarsingh-mr7zc
    @Amarsingh-mr7zc 5 ปีที่แล้ว

    In formal defination on nfa how did u assumed power like 2 to the 2 or 2 to the power 3?

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

    Wouldn't it be more correct to say 2^|Q|?

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

    Super

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

    Sir is any NFA diagram possible without start state given?

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

    At 8:19, how can move from A to Ø with input 1?

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

    How do go to phi

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

    What makes A have possibilities to go to no where ????

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

    Sir ,
    At 7:23, if A get the input 1 then it can only go to A it self .......then how you mention A,B,AB,..

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

      sir said " 'A' on getting a certain input" not 1, although he writes 1 there

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

      I think it's a "i" for "input", not a "1". It's a generalization.

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

      @@matheusassis6601 Yes, I can see a small dot there. it's an i for any input

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

    in the video, for NFA can we say del: Q x sigma --> Q*?

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

      Q* is an infinite set . You can repeat the single input as many times as you want but in case of delta this is definitely not the case. So I guess it will not be correct.

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

    tq u sooo much😅😅😅😅💗💟

  • @jasur.ahmadoff
    @jasur.ahmadoff 3 ปีที่แล้ว +1

    "breaking bad" serial background music

  • @GovindKumar-ui1vx
    @GovindKumar-ui1vx 5 ปีที่แล้ว +1

    if i am wrong please you explain again through other vedio
    please sir

  • @rishav.bhattacharyabtech2068
    @rishav.bhattacharyabtech2068 3 ปีที่แล้ว

    won't the formula be E^Q instead of 2^Q

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

    The instructor in our class spend an hour to teach and provide one example which is boring, that why i prefer here more compact and direct explanation.

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

    People just lov to say s**t abt youtub videos, atleast he shared wht he knows, geniuses just know how to criticize!