Ask Question
Today, 10:52

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

+5
Answers (1)
  1. Today, 14:16
    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?
Find 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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers