Conversion of Mealy Machine to Moore Machine (Example 1)

Поділитися
Вставка
  • Опубліковано 16 січ 2025

КОМЕНТАРІ • 46

  • @manishrawat1079
    @manishrawat1079 5 років тому +81

    new semester, new subject, but NESO is there for you always

    • @anish8202
      @anish8202 5 місяців тому +1

      hello how are you doing now after 5 year which company are you in and your package

  • @javaexpertsa8947
    @javaexpertsa8947 6 років тому +15

    Can't thank you enough! Everything in this Course is just on point, love it!

  • @paalpaal362
    @paalpaal362 5 років тому +6

    Thanks for making me understand the topic very easily.

  • @arnabjana2620
    @arnabjana2620 6 років тому +9

    Excellent explanation, thanks sir

  • @marxman1010
    @marxman1010 3 роки тому +7

    What happens if input is an empty string? Output is zero with the initial state. Note the input is from sigma star which includes empty string.

  • @Ankit-we8ym
    @Ankit-we8ym 8 років тому +6

    thanks for teaching us, sir until when the course of toc will be completed by you

  • @ThereseNiyigena-r5b
    @ThereseNiyigena-r5b 10 місяців тому

    Thank you so much for this knowledge from these videos, it has helped me a lot.

  • @javaexpertsa8947
    @javaexpertsa8947 6 років тому +12

    I would love to see Data Structures & Algorithm, that's something only a person like you could explain in plain words.

  • @arnabnath4782
    @arnabnath4782 Рік тому

    thanks for these easy explainatoins........

  • @parzival_rex_1509
    @parzival_rex_1509 2 роки тому +6

    We should get the output 010 for aaa, but in your Mealy Machine, we will get 011.
    Isn't that wrong?

    • @imposter1721
      @imposter1721 2 роки тому

      we get output 011 for aaa, in both mealy and moore machine.

    • @rahqanshaikh
      @rahqanshaikh Рік тому

      @@imposter1721 so wouldn't that make both of them incorrect?

    • @rishabh847
      @rishabh847 Рік тому

      ​@@rahqanshaikh 0011 is right for Moore machine

    • @souvikpratihar1
      @souvikpratihar1 26 днів тому

      this is the case of overlapping condition, which is common in sequence detector

  • @adityaasthana632
    @adityaasthana632 4 роки тому +5

    Thank you so much for the Tutorial.
    I have a doubt. what if I give 'aaa' or 'bbb' as input? The Moore Machine will output 11 while there is only one 'aa' or 'bb'.
    I am a bit confused..

  • @Rishabh-ed1fb
    @Rishabh-ed1fb 8 років тому

    thanx for helping us m facing so difficulties in this suubject

  • @ElifArslan-l9g
    @ElifArslan-l9g 2 роки тому

    thank you

  • @pushpdantpurigoswami
    @pushpdantpurigoswami 2 роки тому

    Sir please create table after conversation !!!

  • @lalitbansal6473
    @lalitbansal6473 5 років тому +3

    when we write aaa or a more then 2 times or b more then 2 times it give wrong answer may be moore machine over lap but mealy machine give answer correctly so how conversen is correct .please help

    • @fzehra9515
      @fzehra9515 4 роки тому

      yeah sir can you please take a look at this (Neso)

    • @shramithsrinivas
      @shramithsrinivas 4 роки тому

      No it's correct, the thing is when we give aaa we get input 1 twice because the aa sequence is repeated twice

  • @dipikayadav8769
    @dipikayadav8769 2 роки тому

    If we give input as "abba" as specified in the question that this machine must give output '1' when ever the sequence 'aa' or 'bb' is encountered. Then for input : "abba" it must give output '1'. But the given figure . does not give output as '1'.
    I think for this given ans question must be , print '1' whenever the string end with either 'aa' or 'bb' .

    • @souvikpratihar1
      @souvikpratihar1 26 днів тому

      At first, you should be specific about the output, I mean to say that write the entire output instead of saying only '1' as output. Secondly, when 'abba' is given as input, look carefully, the output for Mealy machine should be look like: '0010' and for Moore it will be: '00010'. So whenever two consecutive a (i.e., 'aa') or two consecutive b (i.e., 'bb') is found only then the output will be 1, otherwise 0.

  • @niconico4785
    @niconico4785 3 роки тому

    it also prints 1 after scanning 'aa' for example 'aaa' (or 'bb')
    a a a
    0 0 1 1
    right ?

    • @marxman1010
      @marxman1010 3 роки тому

      Right. At state B1, it loops back to B1 with input a.

    • @errorless7921
      @errorless7921 Рік тому

      Yes there is problem in aaa or bbb

  • @satadhi
    @satadhi 8 років тому

    no offence can you do the conversion in terms of transition tables i mean using transition table. Thanks

  • @studentcommenter5858
    @studentcommenter5858 6 років тому +2

    This example exactly same as the previous lecture except that {a,b} is interchanged with {0,1}. smh.

  • @shushrutgupta
    @shushrutgupta 6 років тому

    mealy machine have n states while moore machine should have n+1 states but in the example, 5 states are drawn. How it is not wrong?

    • @javaexpertsa8947
      @javaexpertsa8947 6 років тому

      N doesnt describe the states, it is the output you get back, in combination with the input. So when the Input is in Mealy M: aabb, the output will be (0101). When we give the same Input now in the Moore M. we get the output (0 + "0101"). So Moore M. got n+1.

  • @tarunmohanty2242
    @tarunmohanty2242 4 роки тому

    If input is aaaa then what's the output ??

    • @rohitvadhya7153
      @rohitvadhya7153 4 роки тому +1

      The output is "00111" as there are three consecutive possibilities of "aa".

  • @amanverma-808
    @amanverma-808 6 років тому

    what will be the output of state A?

    • @javaexpertsa8947
      @javaexpertsa8947 6 років тому +1

      In this case, it is 0, because the condition says only from 'aa' or 'bb' we get '1'.

  • @myonlynick
    @myonlynick 7 років тому +1

    test it for input abaaaa it gets trapped in B1 state and prints 3 times one, it should print 2 times one, NOT 3. Thus, it has a wrong logic! Either the question should change or both diagrams need readjustment for B1, C1 states->they should not loop to themselves.Instead they should point to B0, C0 respectively in order to fully fit to the question's requirements.

    • @ujjwalsharma3292
      @ujjwalsharma3292 7 років тому

      check this input for mealy machine. output are same in both mealey and moore machine. So, conversion is correct. Purpose was to show how to convert.

    • @ChristianBurnsShafer
      @ChristianBurnsShafer 6 років тому +2

      The input "abaaaa" does in fact have the sequence "aa" in it 3 times. You're making the counting error; not the machine. ab *aa* aa, aba *aa* a, and abaa *aa*

    • @priyanshupatel2089
      @priyanshupatel2089 6 років тому

      we are getting 3 three times output 1 because it is detecting overlapping sequence..

  • @ishaghaisas5991
    @ishaghaisas5991 4 роки тому

    what if we print 'bbb'? we will get output as 0011

    • @rohitvadhya7153
      @rohitvadhya7153 4 роки тому +3

      Yes because there are two consecutive possibilities of "bb".
      If the input string is "bbbb" then we get the output as 00111 as there are three consecutive possibilities of "bb".

    • @shanmugapriya7554
      @shanmugapriya7554 3 роки тому

      @@rohitvadhya7153 is this sure one?

    • @rohitvadhya7153
      @rohitvadhya7153 3 роки тому +1

      @@shanmugapriya7554Yes 👍