Basically we represent states of FSM in form of zeroes and ones. This is called " Encoding in FSM". FSM means finite state machine.
There are various encoding techniques. binary ,gray encoding etc. Check this out.
https://en.wikipedia.org/wiki/State_encoding_for_low_power
64.3k questions
77.9k answers
244k comments
80.0k users