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]...
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.
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.
Let A be a three-bit unsigned number. Use a seven-bit adder (and NOT gates, as necessary)...
Let A be a three-bit unsigned number. Use a seven-bit adder (and NOT gates, as necessary) to design a circuit that calculates the following operations. Note that the output may be assumed as unsigned, unless it is possible for the operation to produce a negative answer, in which case, the output must be correct in 2’s complement: W = 3A + 1 X = 2A – 17 Y = 40A + 6 Z = 32 – 4A
Sentences are to be minimum of 4 paragraph up to a maximum of 10 sentences. Discussion...
Sentences are to be minimum of 4 paragraph up to a maximum of 10 sentences. Discussion Topic: How does management in nursing practice differ from management in general? What tasks are common to both leadership and management. What are the major leadership styles? Which style is optimal to use in which situation?
What is the biological rationale for parsimony to use as an optimality criterion the minimum number...
What is the biological rationale for parsimony to use as an optimality criterion the minimum number of changes? Please provide your answer in the form of a written statement.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT