Home / Expert Answers / Computer Science / for-each-of-the-functions-below-indicate-whether-the-function-is-onto-one-to-one-neither-or-both-pa625

(Solved): For each of the functions below, indicate whether the function is onto, one-to-one, neither or both. ...



For each of the functions below, indicate whether the function is onto, one-to-one, neither or both. If the function is not onto or not one-to-one, give an example showing why.
(1 )f: {0, 1}4?{0, 1}3. The output of f is obtained by taking the input string and dropping the first bit. For example f(1011) = 011.
(2) Let A be defined to be the set {1, 2, 3, 4, 5, 6, 7, 8}. f: P(A) ? {0, 1, 2, 3, 4, 5, 6, 7, 8}. For X ? A, f(X) = |X|. Recall that for a finite set A, P(A) denotes the power set of A which is the set of all subsets of A.
(3)A = {a, b, c}, h: P(A) ? P(A). For X ? A, h(X) = X ? {a}.



We have an Answer from Expert

View Expert Answer

Expert Answer


Answer for the question is below: (1) f is not one-one f(1011) = f(0011) f is onto, for every abc in codoamin there exist Oabc such that f (Oabc) = abc (b) it is not one-one f (011) = f(111) = 111 f is not
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe