asked 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

asked
User Kasdega
by
8.4k 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.

answered
User Remek
by
8.2k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.