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
alexandr402 [8]
3 years ago
12

1. Show the 16-bit representation of the decimal number 2437. Show your steps. 2. Convert the 16-bit representation of part (a)

to the corresponding odd-parity Hamming code. Show your steps.
Computers and Technology
1 answer:
irina [24]3 years ago
5 0

Answer:

1. 2437 base 10 = 0000100110000101 base 2

2. 0 1 0 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 0 1

Explanation:

1. To convert a number from decimal to binary you successively divide the number by two, if the remainder (modulo) of the operation is 0 the binary number in that position is 0  otherwise the binary number is 1. You continue dividing the whole number by two, until the  whole number equal to zero. The final binary number is going to be all the remainders, from bottom to top or from right to left.

2437/2 = 1218 with remainder of 1

1218/2 = 609 with remainder of 0

609/2 = 304 with remainder of 1

304/2 = 152 with remainder of 0

152/2 = 76 with remainder of 0

76/2 = 38 with remainder of 0

38/2 = 19 with remainder of 0

19/2 = 9 with remainder of 1

9/2 = 4 with remainder of 1

4/2 = 2 with remainder of 0

2/2 = 1 with remainder of 0

1/2 = 0 with remainder of 1

Therefore the number is (from bottom to top): 0000100110000101, the four zeros at the beginning are to make the number a binary of 16-bits, remember than leading zeros have no value.  

2. First select all the positions in the binary number that are power of two and mark them as parity bits (1, 2, 4, 8, 16, 32 ...), all other position (3, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15 ...) are for the data to be encode, each parity bit compute the parity  of some of the bits in the codeword as follow:  

Position 1: check 1, skip 1, check 1, skip 1 ...

Position 2: check 2, skip 2, check 2, skip 2 ...

Position 4: check 4, skip 4, check 4, skip 4 ...

Position 8: check 8, skip 8, check 8, skip 8 ...

Position 16: check 16, skip 16, check 16, skip 16 ...

...

Finally, set a parity bit to 1 if the total number of 1 in the positions it checks is odd, set it to zero otherwise.

let's start:

  1. 0000100110000101 -> _ _ 0 _ 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1 (positions _ are parity bits)
  • Start in 1, check 1, skip 1: x _ 0 _ 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1 -> because the number of ones is even, there are 4 ones, the first number is a zero; the new bit string is -> 0 _ 0 _ 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1
  • Start in 2, check 2, skip 2: 0 x 0 _ 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1 -> because the number of ones is odd, there are 3 ones -> 0 1 0 _ 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1
  • Start in 4, check 4, skip 4: 0 1 0 x 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1 -> because the number of ones is odd -> 0 1 0 1 0 0 0 _ 1 0 0 1 1 0 0 _ 0 0 1 0 1
  • Start in 8, check 8, skip 8: 0 1 0 1 0 0 0 x 1 0 0 1 1 0 0 _ 0 0 1 0 1 -> because the number of ones is odd -> 0 1 0 1 0 0 0 1 1 0 0 1 1 0 0 _ 0 0 1 0 1
  • Start in 16, check 16, skip 16: 0 1 0 1 0 0 0 1 1 0 0 1 1 0 0 x 0 0 1 0 1 -> because the number of ones is even -> 0 1 0 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 0 1

Therefore, our result is:  0 1 0 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 0 1

You might be interested in
What effect did personal computers and internet have on how people acces information
Ganezh [65]
Personal computers made accessing information a lot faster and easier but a lot of times the things we see when we search information is tailored to our personal beliefs and opinions. For example, if you're a person that commonly searches for information or products about dogs, you're way less likely to get an add promoting cat food. While this may seem like a very positive thing, it also may have a downside. This rule also applies to things like political views, if you're a trump supporter you'll most likely end up seeing things that are pro-Trump and a lot fewer things that are pro-Hilary. 

This can skew people's outlooks on certain subjects, if you're only ever seeing web pages and articles saying that Trump is great, you won't ever see the opposing side which is essential in making a well-informed decision about a candidate for the presidency or any other subject for that matter.

In summary, You have to see both the good and bad side of something to truly make a choice and the way the internet works can sometimes make that difficult.


I hope this helps and makes sense! :)
6 0
3 years ago
Read 2 more answers
Which Internet connection type tends to use shared bandwidth?<br> Cable<br> Dial-up<br> DSL<br> ISDN
zmey [24]

Answer:

try dial-up

Explanation:

3 0
3 years ago
Read 2 more answers
Why is printer an output device​
Vitek1552 [10]

printer is an output device because,

A printer is a device that accepts text and graphic output from a computer and transfers the information to paper, usually to standard size sheets of paper.

So, a printer is an external hardware output device that takes the electronic data stored on a computer or other device and generates a hard copy of it.

therefore, it can be said that a printer is an output device

7 0
3 years ago
Read 2 more answers
Which interest bearing account is best for people who won’t need access to their money for several months or longer?
lutik1710 [3]

The correct answer to this question is a certificate of deposit.

A certificate of deposit is an interest bearing account that pays a higher rate of interest than a savings account or interest bearing checking account because you are committing to leave it in the bank for a specified period of time. The CD could be for serveral months, or extend out to multiple years. Normally the interest rate will increase as the length of time increases.

3 0
3 years ago
You have just performed a cpm analysis and have found that more than one path through the project network has zero slack values.
Alex787 [66]

Answer:

There are multiple critical paths

Explanation:

The critical path method (CPM), or critical path analysis (CPA), is an algorithm for scheduling a set of project activities. It is commonly used in conjunction with the program evaluation and review technique (PERT). A critical path is determined by identifying the longest stretch of dependent activities and measuring the time required to complete them from start to finish.

The essential technique for using CPM is to construct a model of the project that includes the following:

  •    A list of all activities required to complete the project (typically categorized within a work breakdown structure),
  •    The time (duration) that each activity will take to complete,
  •    The dependencies between the activities and,
  •    Logical end points such as milestones or deliverable items.      

Using these values, CPM calculates the longest path of planned activities to logical end points or to the end of the project, and the earliest and latest that each activity can start and finish without making the project longer. This process determines which activities are "critical" (i.e., on the longest path) and which have "total float" (i.e., can be delayed without making the project longer).

considering the above function of the cpm analysis because you have multiple path, there is tendency that more than path through the project network will have zero slack values.

5 0
3 years ago
Other questions:
  • A. When executing System.out.println(a1), the toString() method in the Object class is invoked.
    14·1 answer
  • https://brainly.com/app/ask?entry=top&amp;q=What+did+you+learn+during+this+course+that+reinforces+your+belief+in+your+technology
    5·1 answer
  • Communications that take the form of electronic junk mail or unsolicited e-mail are referred to as
    13·2 answers
  • A byte contains how many bits? Question 3 options:
    13·2 answers
  • Image-editing software is used to_____
    7·1 answer
  • 我对汉语的兴趣 làm đoạn văn theo đề trên​
    14·1 answer
  • Write python code that does the following: Ask the user to enter as many as number they want; Then find the sum and the average
    10·1 answer
  • What are the tools in creating an animation?
    7·1 answer
  • Give a brief explanation about the internet.plsssss
    7·1 answer
  • Does anyone have any tips on how to begin a 10 page Capstone project paper? I've got to write a write a research paper on the ty
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!