Determine whether f is a function from the set of all bit

Chapter 1, Problem 3E

(choose chapter or problem)

Get Unlimited Answers
QUESTION:

Determine whether f is a function from the set of all bit strings to the set of integers ifa) f(S) is the position of a 0 bit in S.________________b) f(S) is the number of I bits in S.________________c) f(S) is the smallest integer i such that the ith bit of, S is 1 and f (s) = 0 when S is the empty string, the string with no bits.

Questions & Answers

QUESTION:

Determine whether f is a function from the set of all bit strings to the set of integers ifa) f(S) is the position of a 0 bit in S.________________b) f(S) is the number of I bits in S.________________c) f(S) is the smallest integer i such that the ith bit of, S is 1 and f (s) = 0 when S is the empty string, the string with no bits.

ANSWER:

Step 1 of 3

Part a)  is the position of a 0 bit in S.

The function can exist if there is a 0 bit in S and it does not exist if there are no 0 bits, it is also possible that more than one 0 bits are in S therefore  can have more than one value.

Since, the function definition that it must be unique is not adhered.

Hence, it is not a function.

Add to cart


Study Tools You Might Need

Not The Solution You Need? Search for Your Answer Here:

×

Login

Login or Sign up for access to all of our study tools and educational content!

Forgot password?
Register Now

×

Register

Sign up for access to all content on our site!

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back