12.06.2019 Views

Maths

New book

New book

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4 MATHEMATICS<br />

An algorithm is a series of well defined steps<br />

which gives a procedure for solving a type of<br />

problem.<br />

The word algorithm comes from the name<br />

of the 9th century Persian mathematician<br />

al-Khwarizmi. In fact, even the word ‘algebra’<br />

is derived from a book, he wrote, called Hisab<br />

al-jabr w’al-muqabala.<br />

A lemma is a proven statement used for<br />

proving another statement.<br />

Muhammad ibn Musa al-Khwarizmi<br />

(A.D. 780 – 850)<br />

Euclid’s division algorithm is a technique to compute the Highest Common Factor<br />

(HCF) of two given positive integers. Recall that the HCF of two positive integers a<br />

and b is the largest positive integer d that divides both a and b.<br />

Let us see how the algorithm works, through an example first. Suppose we need<br />

to find the HCF of the integers 455 and 42. We start with the larger integer, that is,<br />

455. Then we use Euclid’s lemma to get<br />

455 = 42 × 10 + 35<br />

Now consider the divisor 42 and the remainder 35, and apply the division lemma<br />

to get<br />

42 = 35 × 1 + 7<br />

Now consider the divisor 35 and the remainder 7, and apply the division lemma<br />

to get<br />

35 = 7 × 5 + 0<br />

Notice that the remainder has become zero, and we cannot proceed any further.<br />

We claim that the HCF of 455 and 42 is the divisor at this stage, i.e., 7. You can easily<br />

verify this by listing all the factors of 455 and 42. Why does this method work? It<br />

works because of the following result.<br />

So, let us state Euclid’s division algorithm clearly.<br />

To obtain the HCF of two positive integers, say c and d, with c > d, follow<br />

the steps below:<br />

Step 1 : Apply Euclid’s division lemma, to c and d. So, we find whole numbers, q and<br />

r such that c = dq + r, 0 r < d.<br />

Step 2 : If r = 0, d is the HCF of c and d. If r ✁ 0, apply the division lemma to d and r.<br />

Step 3 : Continue the process till the remainder is zero. The divisor at this stage will<br />

be the required HCF.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!