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.1 - Languages and Grammers - Exercises - Page 856: 13

Answer

Finding a phrase-structure grammar for each of these languages. a) the set consisting of the bit strings 0, 1, and 11 b) the set of bit strings containing only 1s c) the set of bit strings that start with 0 and end with 1 d) the set of bit strings that consist of a 0 followed by an even number of 1s

Work Step by Step

a) S → 0, S → 1, S → 11 b) S → 1S, S → λ c) S → 0A1, A → 1A, A → 0A, A → λ d) S → 0A, A → 11A, A → λ
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.