Understanding Binary Long Division: Finding Zero Quotient Digits

  • Context: MHB 
  • Thread starter Thread starter find_the_fun
  • Start date Start date
  • Tags Tags
    Binary Division
Click For Summary

Discussion Overview

The discussion revolves around understanding binary long division, specifically focusing on when a digit in the quotient is zero. Participants are examining an exercise involving binary division and its application, including a potential misunderstanding of the method used.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested, Homework-related

Main Points Raised

  • One participant questions the reasoning behind the first digit being 1 in the quotient when comparing 1111 and 1010.
  • Another participant presents a visual representation of binary long division, suggesting a standard approach to the division process.
  • A third participant speculates that there may have been a mistake in the exercise and expresses intent to identify further errors.
  • Another participant clarifies that the division method being discussed is not traditional long division but rather a special type used for computing CRC, noting that the divisor must match the length of the numerator for it to divide correctly.
  • This participant also explains that XOR is used instead of subtraction in this method, leading to a zero in the quotient under certain conditions.
  • References to external resources are provided for further understanding of CRC and its mathematical background.

Areas of Agreement / Disagreement

Participants express differing views on the nature of the division process, with some adhering to traditional binary long division and others advocating for the CRC method. The discussion remains unresolved regarding the correct interpretation of the exercise.

Contextual Notes

There are limitations in the understanding of the division method being applied, including the specific conditions under which the quotient digits are determined. The distinction between traditional binary long division and CRC computation methods is not fully reconciled.

find_the_fun
Messages
147
Reaction score
0
binary long division - updated with actual example

Basically what I'm asking is when is a digit in the quotient 0?

View attachment 356
This is from an exercise where I'm supposed to fill in the boxes. I don't understand how they completed the parts that are given to me. Why is the first number 1 when 1111>1010
 

Attachments

  • dontunderstand.png
    dontunderstand.png
    2.3 KB · Views: 116
Last edited:
Physics news on Phys.org
You are right; this is strange. I think division should like like this.

Code:
         1011011
    ------------
1111)10101011000
      1111
     -----
       1100
          0
       ----
       11001
        1111
       -----
        10101
         1111
          ---
          1100
             0
          ----
          11000
           1111
          -----
           10010
            1111
            ----
              11
 
I guess it was a mistake. I'll let you know if I find any others like it.
 
Actually this isn't long division in binary, it's a special type of division used to compute the CRC of a message. The divisor goes into the numerator iff they have the same length e.g. 111 divides 101 once but 111 divides 011 zero times (because 011 is 2 digits long which is less than the 3 digits of 111). Instead of subtracting xor is used. So the second digit in the quotient in the above example would be 0. Apparently this is faster for computers to do than real long division.

I'm not sure if this is describing the same concept but here's a >>wikipedia article<< on the math of CRC.

For anyone less mathematically inclined >>this webpage<< does a good job at explaining it.
 
Last edited:

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 6 ·
Replies
6
Views
13K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
4
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
7K