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.

SolutionStep 1FunctionIt is a connection between a set of domains and a set of range with the unique property that each domains of the sets is related with one value of range.Step 2(a)In the Problem it is given that f(S) is the position of a 0 bit in S.But according to the statement that a function from a set of all bits strings to the set of integer.So, function f contain one or more than 0 bit in S or function f contain all 1s. Hence, f(S) is not properly defined.