1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
mrs_skeptik [129]
4 years ago
6

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.
Mathematics
1 answer:
Aneli [31]4 years ago
6 0

Answer:

(a) Not a function, because a string can be assigned to more than one value.

(b) Function

(c) Not a function, because the function does not assign an integer to every string.

Step-by-step explanation:

Definition:

A function f from A to B has the property that has each element of A has been assigned to exactly one element of B.

Solution

           

            A =Set of all bits strings

              B= Z

(a) Given: f(S) ={position of a 0 bit in S}

     f is not a function,because a string can be assigned to more than one value.

     for example if S = 001, then f(S) =1 and f(S) =2,because S =001

contain a 0 in the first and second position.

Moreover there are also strings that do not get assign to an integer.For example,the string S= 111111 does not get assign by f,because S does not contain any 0's .

b) Given:f(S) ={number of 1 bits in S}

     

    f is defined for all strings and  the action f maps every element of A to exactly one element in Z,thus f is a function.

c)Given:

f(S) =i if the ith bit of S is the first 1 in the string

f(S)= 0 if S is the empty string

f is not a function because the string does not assign an integer to every string. More precisely,no integer are assigned to all string not containing a 1.

For example:

if S=00111,then f(S) =3.

if S=000000,then f(S) is not defined.

You might be interested in
Please answer this math question for me
klemol [59]

Answer:

angle D is 90⁰

E is 66⁰

and F is 114⁰

7 0
3 years ago
Read 2 more answers
Really need help giving extra points for all the answers I need
AysviL [449]

Answer:

idek

Step-by-step explanation:

sorry

8 0
3 years ago
Please help! (question in attachment)
igor_vitrenko [27]
Ayy you got it right thank you very much your
5 0
3 years ago
Given: 3x+7+2(4x+1) = 3(x-1) -4 prove: x=-2
denis23 [38]

Answer:

x = -2, proven below.

Step-by-step explanation:

3x + 7 + 2(4x+1) = 3(x-1) - 4

3x + 7 + 8x + 2 = 3x - 3 - 4

9 + 11x = 3x - 7

16 + 11x = 3x

16 = - 8x

-2 = x

7 0
4 years ago
Lines
xeze [42]

Answer:

x=27, y=18

Step-by-step explanation:

Angle CB is 128, which means angle AC is 72. We can confirm angle O is also 72, since the lines are straight. Angle AM is 27, because AN is a right angle. 63+72+27= 162 180-162=18 Angle ND is 18.

6 0
4 years ago
Read 2 more answers
Other questions:
  • Please someone help me .I need help. Focus on number 4
    13·1 answer
  • If Julie needs 31/4 cups of oatmeal how many 1/4 cups of oatmeal will she use
    15·2 answers
  • Which number line best shows how to solve −8 − (−6)?
    12·2 answers
  • What should be added to both sides of this equation to solve for the variable? r + (-12) = 19
    5·2 answers
  • PLS HELP ASAP !!!! WILL MARK BRAINLIEST PLS IM BEGGING
    11·1 answer
  • PLEASE HELP ME
    5·1 answer
  • Which is the best explanation for why − √ 10 is irrational?
    10·1 answer
  • You notice a hot air balloon descending. The elevation h (in feet) of the balloon is modeled by the function h(x)=−6x+330, where
    8·1 answer
  • 3a+2b=17, b = 4a -30
    7·2 answers
  • In order for the parallelogram to be a rhombus, x=[?]. (9x+31) 32<br> HELP NEEDED ASAP
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!