Discrete Mathematics and Its Applications, Seventh Edition

Published by McGraw-Hill Education
ISBN 10: 0073383090
ISBN 13: 978-0-07338-309-5

Chapter 13 - Section 13.3 - Finite-State Machines with No Output - Exercises - Page 877: 57

Answer

M accepts $0{n+1} 1^{n+1}$ it also accepts $0^{n+k+1} 1^{n+1}$, which is a contradiction.

Work Step by Step

Suppose that M is a finite-state automaton that accepts the set of bit strings containing an equal number of 0s and 1s. Suppose M has n states. Consider the string $0^{n+1}1^{n+1}$. By the pigeonhole principle, as M processes this string, it must encounter the same state more than once as it reads the first n+1 0s; so let s be a state it hits at least twice. Then k 0s in the input takes M from state s back to itself for some positive integer k. But then M ends up exactly at the same place after reading $0^{n+1+k} 1^{n+1}$ as it will after reading $0^{n+1} 1^{n+1}$. Therefore, because M accepts $0{n+1} 1^{n+1}$ it also accepts $0^{n+k+1} 1^{n+1}$, which is a contradiction.
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.