Ask Question
9 November, 22:51

6

c. find the domain and range of the function that assigns to a bit string the number of ones minus the number of zeros in the string

+1
Answers (1)
  1. 10 November, 00:20
    0
    Let bitstrings have a maximum length of L bits.

    and f (x) = number of one-bits less number of zero-bits.

    x=length of bitstring in bits.

    Case 1: x=L, all L bits are ones

    Then f (x) = L

    Case 2: x=L, all L bits are zeroes

    Then f (x) = - L

    Then

    dom f (x) = [0, L]

    range f (x) = [-L, L]
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “6 c. find the domain and range of the function that assigns to a bit string the number of ones minus the number of zeros in the string ...” in 📙 Mathematics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers