Polygon triangulation: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>David Eppstein
→‎Computational complexity: rm redlinks whose notability is not obvious to me
 
Line 1: Line 1:
[[File:Euclidean division example.svg|thumb|17 is divided into 3 groups of 5 with 2 left over. Here the dividend is 17, the divisor is 5, the quotient is 3, and the remainder is 2.<br/>17 = 5 &times; 3 + 2]]
Great to meet you there, I am Adrianne and I totally absolutely love that name. Vermont has always been private home and I really like every day living this site. Gardening is what I do 7 days a week. I am a people manager only soon I'll be by myself. You can find my blog site here: http://prometeu.net<br><br>Visit my webpage - [http://prometeu.net hack clash of clans jailbreak]
In [[arithmetic]], the '''Euclidean division''' is the conventional process of [[division (mathematics)|division]] of two [[integer]]s producing a [[quotient]] and a [[remainder]]. There is a [[theorem]] stating that the quotient and remainder exist, are unique, and have certain properties. Integer [[division algorithm]]s compute the quotient and remainder given two integers, the most well-known such algorithm being [[long division]]. The integer division algorithm is an important ingredient for other algorithms, such as the [[Euclidean algorithm]] for finding the [[greatest common divisor]] of two integers.
 
[[File:Pie division.svg|thumb|The pie has 9 slices, so each of the 4 people receive 2 slices and 1 is left over.]]
 
==Intuitive example==
Suppose that a pie has 9 slices and they are to be divided evenly among 4 people. Using Euclidean division, 9 divided by 4 is 2 with remainder 1. In other words, each person receives 2 slices of pie, and there is 1 slice left over.
 
This can be confirmed using multiplication, the inverse of division: if each of the 4 people received 2 slices, then 4 &times; 2 = 8 slices were given out in all. Adding the 1 slice remaining, the result is 9 slices. In summary: 9 = 4 × 2 + 1.
 
In general, if the number of slices is denoted ''a'' and the number of people is ''b'', one can divide the pie evenly among the people such that each person receives ''q'' slices (the quotient) and some number of slices ''r'' < ''b'' are left over (the remainder). Regardless, the equation ''a'' = ''bq'' + ''r'' holds.
 
If 9 slices were divided among 3 people instead of 4, each would receive 3 and no slices would be left over. In this case the remainder is zero, and it is said that 3 ''evenly divides'' 9, or that 3 ''[[divides]]'' 9.
 
Euclidean division can also be extended to negative integers using the same formula; for example −9 = 4 × (−3) + 3, so −9 divided by 4 is −3 with remainder 3. The remainder is the only one of the four numbers that can never be negative.
 
==Statement of the theorem==
Given two integers ''a'' and ''b'', with ''b'' ≠ 0, there exist [[Uniqueness quantification|unique]] integers ''q'' and ''r'' such that ''a'' = ''bq'' + ''r'' and 0 ≤ ''r'' < |''b''|, where |''b''| denotes the [[absolute value]] of ''b''.<ref>{{cite book |title=Elementary Number Theory |last=Burton |first=David M. |year=2010 |publisher=McGraw-Hill |isbn=978-0-07-338314-9 |pages=17–19}}</ref>
 
The four integers that appear in this theorem have been given a name: ''a'' is called the '''dividend''', ''b'' is called the '''divisor''', ''q'' is called the '''quotient''' and ''r'' is called the '''remainder'''.
 
The computation of the quotient and the remainder from the dividend and the divisor is called '''division''' or, in case of ambiguity, '''Euclidean division'''. The theorem is frequently referred to as the ''division algorithm'', although it is a theorem and not an algorithm, because its proof as given below also provides a simple division algorithm for computing ''q'' and ''r''.
 
Division is not defined in the case where ''b'' = 0; see [[division by zero]].
 
== Examples ==
 
*If ''a'' = 7 and ''b'' = 3, then ''q'' = 2 and ''r'' = 1, since 7 = 3 × 2 + 1.
*If ''a'' = 7 and ''b'' = −3, then ''q'' = −2 and ''r'' = 1, since 7 = −3 × (−2) + 1.
*If ''a'' = −7 and ''b'' = 3, then ''q'' = −3 and ''r'' = 2, since −7 = 3 × (−3) + 2.
*If ''a'' = −7 and ''b'' = −3, then ''q'' = 3 and ''r'' = 2, since −7 = −3 × 3 + 2.
 
==Proof==
The proof consists of two parts &mdash; first, the proof of the existence of ''q'' and ''r'', and second, the proof of the uniqueness of ''q'' and ''r''.
 
===Existence===
 
Consider first the case ''b'' < 0. Setting ''b' ''= &minus;''b'' and ''q' ''= &minus;''q'', the equation ''a'' = ''bq'' + ''r'' may be rewritten ''a'' = ''b'q' ''+ ''r'' and the inequality 0 ≤ r < |''b''| may be rewritten 0 ≤ r < |''b'''|. This reduces the existence for the case ''b'' < 0 to that of the case ''b'' > 0.
 
Similarly, if ''a'' < 0 and ''b'' > 0, setting ''a' ''= &minus;''a'', ''q' ''= &minus;''q''&nbsp;&minus;&nbsp;1 and ''r' ''= ''b''&nbsp;&minus;&nbsp;''r'', the equation ''a'' = ''bq'' + ''r'' may be rewritten ''a' ''= ''bq' ''+ ''r' '' and the inequality 0 ≤ ''r'' < ''b'' may be rewritten 0 ≤ ''r' '' < ''b''. Thus the proof of the existence is reduced to the case ''a'' ≥ 0 and ''b'' > 0 and we consider only this case in the remainder of the proof.
 
Let ''q''<sub>1</sub> and ''r''<sub>1</sub>, both nonnegative, such that ''a'' = ''bq''<sub>1</sub> + ''r''<sub>1</sub>, for example ''q''<sub>1</sub> = 0 and ''r''<sub>1</sub> = ''a''. If ''r''<sub>1</sub> < ''b'', we are done. Otherwise ''q''<sub>2</sub> = ''q''<sub>1</sub> + 1 and ''r''<sub>2</sub> = ''r''<sub>1</sub>&nbsp;&minus;&nbsp;''b'' satisfy ''a'' = ''bq''<sub>2</sub> + ''r''<sub>2</sub> and 0 ≤ ''r''<sub>2</sub> < ''r''<sub>1</sub>. Repeating this process one gets eventually ''q'' = ''q''<sub>''k''</sub> and ''r'' = ''r''<sub>''k''</sub> such that ''a'' = ''bq'' + ''r'' and 0 ≤ ''r'' < ''b''.
 
This proves the existence and also gives a simple [[division algorithm]] to compute the quotient and the remainder. However this algorithm needs ''q'' steps and is thus not efficient.
 
===Uniqueness===
Suppose there exists ''q'', ''q' '', ''r'', ''r' '' with 0 ≤ ''r'', ''r' '' < ''|b|'' such that ''a'' = ''bq'' + ''r'' and ''a'' = ''bq' '' + ''r' ''. Adding the two inequalities 0 ≤ ''r'' < |''b''| and &minus;|''b''| < &minus;''r' '' ≤ 0 yields &minus;|''b''| < ''r''&nbsp;&minus;&nbsp;''r' '' < |''b''|, that is |''r''&nbsp;&minus;&nbsp;''r' ''| < |''b''|.
 
Subtracting the two equations yields: ''b''(''q' ''&nbsp;&minus;&nbsp;''q'') = (''r''&nbsp;&minus;&nbsp;''r' ''). Thus |''b''| divides |''r''&nbsp;&minus;&nbsp;''r' ''|. If |''r''&nbsp;&minus;&nbsp;''r' ''| ≠ 0 this implies |''b''| < |''r''&nbsp;&minus;&nbsp;''r' ''|, contradicting previous inequality. Thus, ''r'' = ''r' '' and ''b''(''q' ''&nbsp;&minus;&nbsp;''q'') = 0. As ''b'' ≠ 0, this implies ''q'' = ''q' '', proving uniqueness.
 
===Other proofs===
Some proofs of the algorithm rely on the [[Well-ordering principle]].<ref>{{cite book|last=Durbin|first=John R.|title=Modern Algebra : an Introduction|year=1992|publisher=Wiley|location=New York|isbn=0-471-51001-7|pages=63|url=http://www.wiley.com/WileyCDA/WileyTitle/productCd-EHEP000258.html|edition=3rd ed.}}</ref>
 
== Effectiveness ==
Usually, an existence proof does not provide an algorithm to compute the existing object, but the above proof provides immediately an algorithm (see [[Division algorithm#Division_by_repeated_subtraction]]). However this is not a very efficient method, as it requires as many steps as the size of the quotient. This is related to the fact that it only uses addition, subtraction and comparison of the integers, without involving multiplication, nor any particular representation of the integers, such as decimal notation.
 
In terms of decimal notation, [[long division]] provides a much more efficient division algorithm. Its generalization to binary notation allows to use it in a computer. However, for large inputs, algorithms that reduce division to multiplication, like [[Division algorithm#Newton–Raphson division|Newton–Raphson]] one, are usually preferred, because they need a time which is proportional to the time of the multiplication needed to verify the result, independently of the multiplication algorithm which is used.
 
== Generalizations ==
 
=== In domains other than integers ===
 
[[Euclidean domain]]s are defined as [[integral domain]]s which support the following generalization of Euclidean division:
Given an element ''a'' and a non-zero element ''b'' in a Euclidean domain ''R'' equipped with a '''Euclidean function''' ''d'', there exist ''q'' and ''r'' in ''R'' such that {{nowrap|''a'' {{=}} ''bq'' + ''r''}} and either {{nowrap|''r'' {{=}} 0}} or {{nowrap|''d''(''r'') &lt; ''d''(''b'')}}. Unlike in the integer case, ''q'' and ''r'' need not be unique.
 
Examples of Euclidean domains include [[field (mathematics)|field]]s, [[polynomial ring]]s in one variable over a field, and the [[Gaussian integers]]. The Euclidean division of polynomials has been the object of specific developments. See [[Polynomial long division]], [[Polynomial greatest common divisor#Euclidean division]] and [[Polynomial greatest common divisor#Pseudo-remainder sequences]].
 
=== Generalized division algorithms ===
The 1st generalized division algorithm: Given integers <math>m</math>, <math>a</math>, <math>d</math> with <math>m>0</math>, there exist unique integers <math>q</math> and <math>r</math> with <math>d \le r < m+d </math> such that <math>a = mq+r</math>.
 
Especially, if <math> d=- \left\lfloor \frac{m}{2} \right\rfloor </math> then <math> - \left\lfloor \frac{m}{2} \right\rfloor  \le r < m-\left\lfloor \frac{m}{2} \right\rfloor </math> . In this case,  <math>r</math> is called the least absolute remainder. As an application of this generalization, the original Euclidean algorithm for integers can be slightly sped up.
 
The 2nd generalized division algorithm: Given integers <math>m</math>, <math>a</math> with <math>m>0</math>, and
let <math>R^{-1} \in \mathbb Z_m ^*</math> be the multiplicative inverse of <math>R \in \mathbb Z_m ^*</math>. Then
there exist unique integers <math>q</math> and <math>r</math> with <math>0 \le r < m </math> such that <math> a = mq+R^{-1} \cdot r </math>.
 
This result generalizes Hensel's odd division (1900), and its proof can be found in.<ref>Haining Fan, Ming Gu, Jiaguang Sun and Kwok-Yan Lam: "Obtaining More Karatsuba-Like Formulae over the Binary Field", IET Information security, vol. 6, no. 1, pp. 14-19, 2012.</ref>
 
The value <math>r</math> in the 2nd generalization corresponds to the ''N''-residue defined in [[Montgomery reduction]].
 
==References==
{{reflist}}
 
{{DEFAULTSORT:Division Algorithm}}
[[Category:Arithmetic]]
[[Category:Theorems in number theory]]
[[Category:Articles containing proofs]]
[[Category:Division]]

Latest revision as of 12:44, 22 October 2014

Great to meet you there, I am Adrianne and I totally absolutely love that name. Vermont has always been private home and I really like every day living this site. Gardening is what I do 7 days a week. I am a people manager only soon I'll be by myself. You can find my blog site here: http://prometeu.net

Visit my webpage - hack clash of clans jailbreak