Advertisements
Advertisements
प्रश्न
What is an algorithm?
उत्तर
Algorithm is a step-by-step procedure for calculations.
For example:
Euclid’s Division Algorithm: In order to compute the HCF of two positive integers say a and b, with a > b by using Euclid’s algorithm, we follow the following steps:
STEP I : Apply Euclid’s Division Lemma to a and b and obtain whole numbers q and `r_1 `,such that `a= bq_1+r_1` ,` 0≤ r_1 < b`
STEP II: If `r_1 =0 `, b is the HCF of a and b.
STEP III: If `r__1 `, apply Euclid’s division lemma to b and `r_1` and obtain whole numbers `q_1` and `r_2`,such that `b= q_1r_1+r_2`
STEP IV: If `r_2=0` , then `r_1` is the HCF of a and b.
STEP V: If `r_2=0 `, then apply Euclid’s division lemma to `r_1` and `r_2` and continue the above process till the remainder `r_n` is zero. The divisor at this stage i.e; `r_n-1` , or the non-zero remainder at the previous stage is the HCF of a and b.
APPEARS IN
संबंधित प्रश्न
Classify the numbers `3. bar(142857)` as rational or irrational :
If the rational number `a/b`has a terminating decimal expansion, what is the condition to be satisfied by b?
Express 0.`bar (23)` as a rational number in simplest form.
Without actually performing the long division, state whether state whether the following rational numbers will have a terminating decimal expansion or a non-terminating repeating decimal expansion.
Write down the decimal expansions of the following rational numbers by writing their denominators in the form 2m × 5n, where, m, n are non-negative integers.\[\frac{7}{80}\]
What can you say about the prime factorisations of the denominators of the following rationals: \[43 . 123456789\]
Write the condition to be satisfied by q so that a rational number\[\frac{p}{q}\]has a terminating decimal expansion.
Find a rational number between `sqrt(2) "and" sqrt(7)`.
The smallest number by which `1/13` should be multiplied so that its decimal expansion terminates after two decimal places is ______.
The following real number have decimal expansions as given below. In the following case, decide whether it is rational or not. If it is rational, and of the form p/q what can you say about the prime factors of q?
`43.bar(123456789)`