Question

In: Computer Science

What is the minimum and maximum number of zeros in a 4-bit string? Use roster notation...

What is the minimum and maximum number of zeros in a 4-bit string? Use roster notation and find the range of f. (The first elements in the range is f(0,0,0,0) = 0)

Solutions

Expert Solution

Maximum number of zeros means maximum number of times zero appear in 4- bit string

And minimum number of zeros means minimum number of times zero appear in 4-bit string.

Number of ways you can put zeros in 4 bit string for {0,1} is given below

0 0 0 0

0 0 0 1

0 0 1 0

0 0 1 1

0 1 0 0

0 1 0 1

0 1 1 0

0 1 1 1

1 0 0 0

1 0 0 1

1 0 1 0

1 0 1 1

1 1 0 0

1 1 0 1

1 1 1 0

1 1 1 1

For 4 bit string there are 16 possibilities

2^4=16

For first element in the range is 0 so for every different possibilities it start with 0 so minimum number of 0 =1

f(0,1)4={0000,0001,0010,0011,0100,0101,0110,0111}

f(0,0,0,0)=0000 minimum zero is 1 and maximum zero is 4 times

f(0,0,0,1)=0001 min zero=1 max zero =3

f(0,0,1,0)=0010 min zero =1 max zero =3

f(0,0,1,1)=0011 min zero =1 max zero =2

f(0,1,0,0)=0100 min zero =1 max zero = 3

f(0,1,0,1)=0101 min zero =1 max zero =2

f(0,1,1,0)=0110 min zero =1 max zero =2

f(0,1,1,1)=0111 min zero =1 max zero =1


Related Solutions

A) What is the minimum and maximum number of zeros in a 4-bit string? Use roster...
A) What is the minimum and maximum number of zeros in a 4-bit string? Use roster notation and find the range of f. (The first elements in the range is f(0,0,0,0) = 0) B) For the functions below, indicate whether the function is: Onto ,One-to-one ,Bijection. i) f: Z → Z, f(x) = 5x - 4 ii) f: Z → Z, f(x) = 5x - 4 C) Start with the number n = 54527. Divide n by 5 and round...
Roster method and Set builder notation 1. Use the roster method to list the members of...
Roster method and Set builder notation 1. Use the roster method to list the members of these sets. A = { y | y is the square of an integer and y < 100} B = {x ∈ ℚ | x = a / b, a = 3, b ∈ ℤ+ , x ≥ 2 } C = { y | y is the remainder of x/5, x ∈ ℤ+ } another definition: C = {y | y = x%5,...
What is the minimum and maximum number of solutions that we can expect to see in...
What is the minimum and maximum number of solutions that we can expect to see in any given system of nonlinear equations? In your own words, what is the meaning of extraneous solutions? When solving a system of nonlinear equations, is it possible to always use the Addition Method? Explain your reasoning in complete sentences. PLEASE TYPE, DO NOT WRITE IT DOWN and Check your punctuation and proofreading.
Using Selection Sort on an any array of size 7, what will be the minimum/maximum number...
Using Selection Sort on an any array of size 7, what will be the minimum/maximum number of comparisons and number of exchanges? 1 for i = 1 to A.length-1 2 for j = i+1 to A.length 3 if A[j] < A[i] 4 exchange A[i] with A[j]
Provide the Java code to compute the sum, average, maximum number and minimum number if I...
Provide the Java code to compute the sum, average, maximum number and minimum number if I have a string sentence of double numbers. Assume that the length of the string sentence is not known. It can be of any length. To split a string based on the comma character use the following. String sentence = "A,B,C,D,E"; String[] stringsArray = receivedSentence.split(","); Then stringsArray is an array of five elements such that: stringsArray[0] = 'A' stringsArray[1] = 'B' stringsArray[2] = 'C' stringsArray[3]...
1. Add the following binary number in 8-bit. Rewrite each problem in decimal notation to check...
1. Add the following binary number in 8-bit. Rewrite each problem in decimal notation to check you work. 10110101112 + 011001002 2. Find the binary equivalent the following decimal numbers. 0.25 3. Find the decimal equivalent for the following binary numbers. 1110102/100000002 4. Find the decimal equivalent for the following binary numbers. 0.00102 5. Give the multiplying factor associated with each of the following metric prefixes. Deci- 6. Find the binary equivalent the following decimal numbers. 0.6875 7. Exactly how...
Discuss how we can calculate the maximum number of bit errors that can occur in a...
Discuss how we can calculate the maximum number of bit errors that can occur in a constellation diagram due to a symbol error (gray coding).
Design and Test an 8-bit Adder using 4-bit adder. Use 4-bit adder coded in class using...
Design and Test an 8-bit Adder using 4-bit adder. Use 4-bit adder coded in class using full adder that is coded using data flow model. Use test bench to test 8-bit adder and consider at least five different test vectors to test it.
Design and Test an 8-bit Adder using 4-bit adder. Use 4-bit adder coded in class using...
Design and Test an 8-bit Adder using 4-bit adder. Use 4-bit adder coded in class using full adder that is coded using data flow model. Use test bench to test 8-bit adder and consider at least five different test vectors to test it. in behavioral not endmodule plz help me
Write -127 as 8 bit signed binary number both using 2'complement and sign/magnitude notation.
Write -127 as 8 bit signed binary number both using 2'complement and sign/magnitude notation.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT