Discrete Mathematics and Its Applications, Seventh Edition

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

Chapter 2 - Section 2.3 - Functions - Exercises - Page 152: 3

Answer

a)Not a function b)is a function c)Not a function

Work Step by Step

a) This is not a function, because there may be no zero bit in S, or there may be more than one zero bit in S. Thus there may be no value for f (S) or more than one. In either case this violates the definition of a function, since f(S) must have a unique value. b) This is a function from the set of bit strings to the set of integers, since the number of 1 bits is always a clearly defined non negative integer. c) This definition does not tell what to do with a non empty string consisting of all 0's. Thus, for example, f(000) is undefined. Therefore this is not a function.
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.