I'm having difficulty with a seemingly simple question. "Is it possible to have a finite state machine that detects if a bit string of arbitrary length has the same number of zeros as ones? If so what would it look like"? In trying to solve this problem I have come up with a variety of finite state machines. However, none have been able to solve the problem for a bit string of arbitrary length.
Any suggestions? Thank you!