7.9k views
5 votes
Determine whether f is a function from the set of all bit strings to the set of integers if

a.f (s) is the position of a 0 bit in s.

b.f (s) is the number of 1 bits in s.

c.f (s) is the smallest integer i such that the ith bit of s is 1 and f (s) = 0

User Kasdega
by
4.8k points

1 Answer

6 votes

Answer:

f (s) is the smallest integer i such that the ith bit of s is 1 and f (s) = 0 is the correct option.

User Remek
by
5.9k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.