Question

I have tried to find real life examples of Moore machines because I have read a lot about Moore machines but I am still confused.

Are there any real life examples of a Moore machine? Any points I should know in order to understand Moore machines?

Was it helpful?

Solution

An elevator is a good example of a Moore machine. Imagine that each floor is a different state in the machine. Now, when you press a button to get to a certain level you change the actual state of the machine to the new level without giving any additional input. However, if we take a look at a residential security system, in order for an alarm to start, the system must be in the state of alertness and receiving an additional input generated from an intrusion.

OTHER TIPS

An escalator in a shopping mall is an example of Moore machine. It doesn't need any input from the user. It will keep changing its state from the present floor to the next floor (the upward moving stairs that we see) and comes back to the present floor (which we can not see as they are hidden and sealed in a metal case).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top