Construction of Mealy Machine

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ส.ค. 2024
  • TOC: Construction of Mealy Machine
    Topics discussed:
    1. Construction of a Mealy Machine that produces 1's Complement as the output of any given binary input string.
    2. Construction of a Mealy Machine that prints 'a' whenever the sequence '01' is encountered in any input binary string.
    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 - ...

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

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

    heard that voice , checked if i'm on right channel or not !

  • @dmwmm
    @dmwmm 7 ปีที่แล้ว +38

    You, Sir, are a legend for doing this. Your videos on these topics are soo good, the best out there on youtube, probably the best on the internet.

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

      Watch TOC videos of RavindraBabu Ravula. 😁😁

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

      Ben Eater is better, he doesn't read every sentence twice.

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

      @@gateprep8076 Neso Academy >>>>>>>>>>>>

  • @madhusmitasahu3737
    @madhusmitasahu3737 7 ปีที่แล้ว +24

    This sub was new to me...after i hav been watching ur lecture series..the confidence is also multiplied itself.u r d best online teacher i hav ever felt.

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

    Bunch of thanks for the crystal clear explanations❤❤❤

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

    Hail the *king* 👑 he makes things simpler ❤

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

    Thanks a lot, your really helped me with my exam tomorrow. Wish you the best xoxo

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

    Thank you so much, amazing explanation, you made it very lucid to grasp

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

      Tu padhi Mata kara rey chupke chupke 😂

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

      ​@@krushnashinde1623friend ko pakad liya kya pdhte hue?

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

    Why did you make a DFA for a machine accepting 01 at the end only ? Why not anywhere in the string ?

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

      Yes, even I didn't get this

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

      It prints 'a' whenever 01 encountered ,even if it is on the middle of the string or starting of the string or ending of the string . 000001 prints 'a' one time because 01 encountered at last of string . 0101000011110000001 prints 'a' three times as 01 encountered in starting position ,third position and last position. Hope you understand.

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

      The DFA accepts strings with 01 at the end but doesn't deny 01 in the middle.

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

    for ex 2 I was able to draw mealy machine in 2 states with:
    A: 1/b(A) ,0/b (B)
    B:0/b(B),1/a(A)
    here i am representing input/output(state reached). Correct me if i am wrong.

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

      You are absolutely right.

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

      I did the same as you. I pause the video before the solution, so I can practice, then, I got the same solution that you. I thought that I was wrong ...

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

      actually the DFA given by sir is easy for those who just know about what a DFA is...as mealy or moore machine have no final states but only outputs.....if the DFA given by sir is minimized then your DFA can be obtained....both are correct but yours is minimized...nothing else...you can check it......

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

      Me too

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

    I have a doubt why we construct transition C(1/b) --> A,
    rather than not construct self loop at C for this transition C(1/b --> C)..? is it fine(Self loop)..?

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

    in 5:20 could we have 2 states A and B? Untill B is the same but when we get an 1 we go to A with output a

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

      Yes when you do the state minimization you get actually 2 states

  • @CaptainXD
    @CaptainXD 7 ปีที่แล้ว +59

    Instead of having a C state, couldn't you just have the 1/a transition go back to A?

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

      Indeed, I think he didn't ignore the 'C' state because in the Moore example he did the same machine and the difference between the Moore and Mealy machines became clear, but he should've said that you could ignore the 'C' state anyway.

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

      Yeah. We can do it with just two states. Output can be displayed when 1 is encountered and goes to starting state

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

      Exactly that what i did make

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

    10100 sign magnitude is 00100
    10100 1's complement is 01011
    10100 2's complement is 01100

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

    Good explanation sir

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

    Can't this be done just with 2 states?
    A +1-> A, A+0-> B, B+0->B, B+1->A (outputs 'a') .

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

    2 states are enough for making the second mealy machine, one for no part of the sequence detected, and one for '0' detected.

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

    i dont know why but i was a little disappointed in hearin a different voice from the usual lectures i have been seeing

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

    Tom is final exam n i thought of skipping moore n mealy thinking its difficult bt who knew jst spending 20 mins watching ur vdo wud make me attend tis question in exam fr sure.😭

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

    Thank You💙

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

    Thank you sir 👍

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

    sir at state c we can use a selfloop because u say that the string should be any where .... and at state c our string o1 is comming in starting..so why we cant use selfloop of 1 and 0 at state c...plzz reply sir

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

      Bcoz when u reach final state u must accept the string 01 ....bcoz in this sir first explain dfa and then mealy machine and in dfa u only accept the string which is given when you are on final state...

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

    What a background music 😂😂 still waiting part 2 on Kamran Bagraa😂😂❤❤❤

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

    bring back the other guy

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

    your way of construction is very satisfying. thank you sir :)

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

    in 1st example, why is A not marked as final state?

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

      ok got it! Mealy machine doesn't accept or reject, that's why.......You should have explained that point also!!! Tell each and every point. Don't leave gaps!

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

    Thankeo so much sir..i appreciate you for this great work..

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

    i like your teaching technique sir #fann

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

    example 2 was wrong
    you have explained for the string ending with 01
    and the question was that the string should contain 01

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

      Mohan Sai Aree stupid , see properly he actually gave a loop af 1 on A. so we can start string any of the ways.

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

      But still why are we supposed to end it with 01, the question doesn't ask for it, this just reduces the no. of possible valid input strings.

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

      Abhijeet Singh
      there is no final state so, the final state can be A/B/C ..isnt it ?
      so it doesn't have to end in C with ending string 01

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

      Yes, the sequence can be encountered anywhere within the states. So this is like a question of DFA design where your string contains substring '01'.
      Or even better, remove state C completely. And use only two states A and B. On getting 1 on B, come back to A with output 1.

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

    thanku sir💓

  • @Gagandeep-sp1wf
    @Gagandeep-sp1wf 5 ปีที่แล้ว +6

    Sir, if on input 1 c goes to c is that ok or not??? at timestamp 5.18

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

    sir, please upload videos on microprocessor and microcontrollers

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

    For 0110 we are not getting final state C ,bases on your construct DFA

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

      Nah it prints a like see it would give a once it reaches 01 but won't print a for 10

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

    In the last example a third state C is not required. We can solve it in two states, did anyone else also come up with this?

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

      then you must have formed an NFA...cuz using DFA its not possible.....i could be wrong ...but i tried and couldnt

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

    What subject is this, it's not the general digital electronics

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

    6:43 could you also say "let's print c because i don't care what it prints here?"

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

      No, because the Language is {a, b}.

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

    shouldn't we use the double circle around 'C' to signify it being the final state?

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

      Not required, the question is about getting any 01 in between the strings and whenever that happens you should print 'a'

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

      sir
      if we writing 1/a it is like a moore machine,input/out put?

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

    dfa in ex 2 can not accept string '011'.

    • @DailyDose-t2f
      @DailyDose-t2f 5 ปีที่แล้ว

      right

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

      There is no factor of acceptance here...we are just concerned about the output the machine would produce...

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

    Super sir
    Thank you sir

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

    Why isn’t this in digital electronics playlist?

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

    Does Mealy and Moore Machine having Dead State

  • @Name-pn5rf
    @Name-pn5rf 5 ปีที่แล้ว +3

    In first example, shouldn't A be the final state also?

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

      This is not DFA design.
      In Mealey models, you don't specify whats your starting or final states. You just care about your input and output.

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

      @@w1ndro1d But start symbol is necessary i guess, unless how'd you know where to start from???... Also can u explain why there's no final state...why isn't it necessary here????

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

      @@somyajitnath6303 start symbol is required but no final state indication is necessary when you construct Mealy machines. You just write input and transfer flow accordingly, unlike in DFA.

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

    On getting input 1 on C state why u just go to state A cant we use the self loop in C on getting 1.???

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

      if you loop the C, how exactly would you re-check for more inputs?

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

    Why no dead state only self transition

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

    @05:12 what if we write 𝛿(C,1)---->C/b!?

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

    Dont we need to double circle the final state in these machines??

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

      No not...there is no final state in Mealy Machine, since it focuses only on the outputs it produce.There is no factor of acceptance as such !!!

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

    Sir you sound very similar to mahesh babu(telugu actor),

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

    sir why don't you upload all branches videos

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

    Cool!

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

    why is a 'b' if it go from c to b?

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

      7:00 is also a 'b' when c goes to a

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

    Another example on melay machine with table

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

    Give example on melay machine

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

    does mealy machines contains output null value

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

    Sir, can you please tell me how to design a bank locker system using sequential circuits? The logic is...when we enter our bank locker code, then within 5seconds the bank manager must enter the password which matches our bank locker. If both passwords matches then only the bank locker opens and led must glow green. Otherwise if the bank manager didn't entered his password or our key mismatched then red led must glow and locker does not opens

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

    micoprocessor 8085 ka lecture plz upload karvaiye

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

    couldn't you do Ex-2 with just 2 states?

  • @DailyDose-t2f
    @DailyDose-t2f 5 ปีที่แล้ว

    last example is not suitable in a case when we repeat 01 again in our input like 0101101
    so this machine gives us wrong output so chek it again

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

      How does it gives a wrong output ???
      according to your example, the output should be bababba and that's what the machine is giving...

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

    Thanks for your video excellent work.But i have this question for you sir?
    module patternMealy(input logic clk,
    input logic reset,
    input logic a,
    output logic y);
    typedef enum logic {S0, S1} statetype;
    statetype state, nextstate;
    // state register
    always_ff @(posedge clk, posedge reset)
    if (reset) state

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

      bhai mila kya answer

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

      do you get the answer??

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

      ​@@Tanwar59 abe chatgpt hai ab toh kuch dimag lagale😂.

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

      ​@@Tanwar59 usko nahi mila toh tujhe toh mil sakta haina chatgpt will help

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

    This is nice...

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

    kipah huai mahmah ei

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

    nice sir

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

    Sir what is DFA?

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

      amogh mp Deterministic Finite Automata

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

    Moore machine string are 012

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

    here

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

    28