Construction of Moore Machine (Example 1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ส.ค. 2024
  • TOC: Construction of Moore Machine- Examples (Part 1)
    This lecture shows how to construct a Moore Machine counts the occurrences of the sequence 'abb' in any input strings over {a,b}
    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 - ...

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

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

    My teacher gets paid to teach me this and does a horrible job, some guy across the world doesn't get a cent and explains this in such a simple manner that I wonder for what our teachers get paid. Thanks for the video!

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

      well said

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

      Just video alone get many cent per user, sometimes 3-4 ads per video >.

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

      Technically he still gets paid through ad revenue, but its still not compared to what ur teacher might be earning coz Ads in India pay very less.

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

      @@tanmaysingal2179 Social Blade figures are not trustworthy. How can one have such a large difference b/w min and max earning in a month?

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

      @@shri1417 during exams i guess it goes up for each year

  • @king_kalindi
    @king_kalindi 7 ปีที่แล้ว +19

    you make all of it look so simple, keep going

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

    Sir you are a true gem .Thanks for such good explanation 🙌

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

    I have no words... Thank you so much...

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

    Amazing. May Allah(SWT) reward you for this.

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

    Oh my God that DFA Explanation was so good!
    Thank you so much sir!

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

    If we want to count the occurences of the sequence 'abb' then we need to construct DFA that contain substring 'abb' in it because in question there is not mentioned that we want sequence 'abb' in end
    So instead of constructing DFA that end with sequence 'abb' we need to construct DFA that contain sequence 'abb'

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

      Correct me if i was wrong

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

      @@geetabadgujar2565in moore machine there is no final state so we use DFA that end with 'abb' , if we use DFA that contain 'abb' then it will increase the no. of states only

    • @takshak8231
      @takshak8231 27 วันที่ผ่านมา

      @@ashishyadav310 how will the number of states increase, In the mentioned example can't we just make a self loop at D for input a and b so. Our 'abb' will be included and all the strings can also be accepted that contain abb.

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

    Example: Design Moore Machine having two pulse inputs x1, x2 and one level output z. z is to toggle with an x2 pulse immediately following at least two consecutive x1 pulses.
    1. Design the machine given in the drill and write the excitation and output expressions.
    2. Draw the schematic diagram of the system
    3. Draw the timing diagram of the machine given in the drill
    4. Write the names of different toolboxes that you have used to draw the schematic
    diagrams?
    May you please help me out in this question?

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

    @Neso the way you explain things is cool. I hope if you can start a new Series of computer science categories for DBA ( Database Administration ) talking about Relational algebra, SQL, Decompositions, Normalization, DFs and DMs and so on .thanks this is only a suggestion from one of your subscribers ^__^.

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

    Very well explained

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

    the last path from D->A for input b we could have make a loop on D also for the input b.

  • @user-xb5zu6zu7j
    @user-xb5zu6zu7j 2 ปีที่แล้ว +1

    Excellent tutorial.

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

    Thankyou sir for this video

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

    nice tutorial :)

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

    Thank you sir 👍

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

    Thank You💙

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

    nice lecture

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

    Thanks

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

    Tqqq 😭

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

    How does it counts the occurrences of "abb"? It just prints 1 when "abb" is encountered.
    The question is wrong in this case I guess!

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

      You count the number of 1's printed in the output, hence you get the count of the occurrences of abb.

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

      Hrithik Naha Yes that's what I mean the difference between "You count" and "Machine counts". Anyways thanks for your reply.

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

      @@nikeshprasad5559 Exactly, I was thinking I'll have to make the Moore machine output the binary of the number of occurrences.

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

    D on getting b can also goto state B, Right or wrong?

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

      Wrong

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

      No then we dont get a

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

      ​@@Nirajbhoirbut there is a self loop for a on state B

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

    Sir I have a doubt, in state C if we get 'a' as input the machine should stay in state c itself right? because the pattern ab is already occured and the next requirement is only the occurance of 'b'.

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

    Sir, why dont we implement the moore machine for printing abb using 3 states A, B, C ?

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

    Hello, i have a problem with a moore machine where i have as inputs a,b,c and outputs 0,1. I need to have 1 when i have abca and also an even number of a, 0 otherwise. My problem is about the fact i have 3 kind of inputs(a,b,c) not just 2 like in your exemples(a,b). Any advices please?

  • @user-tu1kf6xd8d
    @user-tu1kf6xd8d 3 ปีที่แล้ว

    if from state A to state B a is counted and D is the final state, doesn't that mean transition from D to A should make b counted which makes the machine count the occurrence of abbb?

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

      The question want us to get 1 whenever we get the sequence abb, in the sequence abbb, you've already gotten the desired abb, so a 1 from first 3 character, in this design, you're allowed to get 1 more than once

    • @user-tu1kf6xd8d
      @user-tu1kf6xd8d 2 ปีที่แล้ว

      @@yarenkaya7872 kind late bro, already forgot what this is about lol, but thnx anyway really appreciate

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

    Nice sir
    Thanks sir

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

    Is there any VHDL code "videos" in the channel related to finite state machine w/ outputs? this1

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

    Can't we self loop input b for state D?

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

      Wouldn't that produce a string of 1s for the output until the next a is reached?

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

    Sirrrrr youuu ❤

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

    Hi sir good evening .how states are present in both moore and melay machine . My mam tolled N States in moore machine what about melay

  • @Karansingh-gh4oy
    @Karansingh-gh4oy 7 ปีที่แล้ว +1

    greta wrk sir

  • @DP-qy5fc
    @DP-qy5fc 6 ปีที่แล้ว +2

    Can we design more than 1 Moore machine for a same task?
    I have designed a Moore machine for the above problem which is working correctly.

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

      You must have done it with 3 states. Same here, seems correct.

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

      yes you can
      they are infinite

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

      @@marcusshane however, i don't see how you can do this with just 3 states
      none of them is redundant

    • @AbhishekSingh-fo9nv
      @AbhishekSingh-fo9nv 4 ปีที่แล้ว +2

      I also made with 3 states . On C i made self loop if input is b and i think its's correct

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

      @@AbhishekSingh-fo9nv no , that's incorrect

  • @tayyab.sheikh
    @tayyab.sheikh 16 วันที่ผ่านมา +1

    Who's watching from Pakistan 🇵🇰

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

    can't we do this with nfa with out dfa

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

    My dumb brain don't know how to start after reading the question 😭 what should I do

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

    what if it was asked to detect the sequence aba?

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

      Then you change the b to an a.

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

    32

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

    We only count the no of abb in the series 🙄

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

    But by doing this we have given memory to fsm

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

      actually no
      if you were outputting stuff like 001002003 then yeah, but you aren't, it still doesn't know how many times it has outputted it, that part of the counting falls on your part.

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

    Gd