Question
Multiply 2146782 x 0422812 using divide and conquer technique(use karatsuba method).
Answer :
Word Count : 794
______ ____ ________ ___ ____ ________.
____ __________ ___ __________ _________ ________ _______ ______ _____ _____.
______ ____ ____ _________ ______ ____ _______.
_____ ______ ____ __________ ____ __________.
_________ __________ _____ ___ ___ ________ ________ ____ _______ _______ ____.
__________ ______ ________ _______ ____.
___ _________ ______ _____ _________.
_________ _____ _________ ______ ______ ___ _____ _______ ___.
_____ ____ ______ _________ _____ _______ __________ ___ ___ _________ _________.
______ ________ _______ __________ ___ _____ ___ __________ ______.
______ ___ __________ _____ _________.
_________ _______ ______ _______ ___ ______.
_________ ___ __________ _________ _________ ____ ______ ____.
____ ______ __________ ______ __________ _________ ________.
________ _____ __________ ______ _____.
_________ ____ ___ ______ ________ _____ _______ ______ _____ ______ ______ _____.
_________ ______ _________ ___ _____ _______ ______ _______ ______ ______ __________.
______ __________ _____ ___ ____ ___ _____ ________ ________ _________ ____ ____.
_______ ____ ____ _______ _____ ____ ________ _________ __________ ________ _________ _______.
__________ _____ ________ ___ __________ __________ ________ _________ _________ _____ ___ _____.
_______ _____ ____ ________ _____ __________ ___ ____ ________.
_______ _____ ___ __________ _____ ________ ____.
_____ _________ _______ ______ _______ _______ __________.
________ ________ _______ ________ ____ ___.
___ _________ __________ ___ ______ ___ _________ ___ ______ __________ _____.
______ ___ _______ __________ ________.
_____ ___ ____ _____ _____ ___ ______ ___ _______ _______ __________.
_________ _______ _____ __________ ______ ______ _______.
________ __________ __________ _____ _________ _________ ___ ______ _____.
_____ ________ _______ ___ _____ ___ _______ __________.
________ ______ _____ _______ ______ __________ ____ _____ _____ _____ ________ ____.
____ __________ _________ _____ _______ ___ ____ _________.
___ ______ ________ ______ _____.
__________ ________ __________ _______ ____ ________ ________ _______.
_____ _________ __________ __________ ________ ____ ____ __________ ________ ___ _________.
___ ________ _______ __________ ______ _____ _________ ____ ___.
_______ ________ ____ _______ _________ ___ ____ ___ _________.
____ ___ ______ _______ ________ _____.
__________ __________ __________ _____ ___ __________ __________ ___ ______ __________.
_________ ___ ______ _________ ___.
________ ___ _____ ___ _____ _________ ______ ________.
________ ______ _______ ________ ________ ______ _________ ______ __________ __________ __________.
_____ _________ _________ ______ ___.
___ _________ _________ ______ _____ ______ ________ _________ ____.
____ _________ __________ ______ ________ __________.
_________ ______ ______ ____ _________ _____ __________ _________.
___ _________ _________ _________ ______ ____ _______ ____ ______ __________ __________ _________.
__________ ________ ____ _______ ____ ________.
_______ __________ _________ ________ ______.
_______ _______ ______ ___ ____ ___ ____ _____ ___.
______ ______ ________ _______ _______ _____ ______ ____ ________ __________ ______.
________ ________ ________ _____ ________ _______ ___ _____.
_________ _________ ___ ___ __________ ________ ______ __________ ___ ________ ________ ____.
_______ __________ _______ ____ _____ _________ _____ _________ ________ ______.
_________ __________ ___ __________ __________.
___ _______ _______ __________ _________ __________ ___ _____ ____ __________.
__________ __________ ___ __________ __________ ________ ________ _________.
_____ ___.
Skip in 10
To multiply the numbers 2146782 and 0422812 using the Karatsuba algorithm, which is a divide and conquer approach, we must first understand the core principle behind this technique. Karatsuba’s algorithm reduces the multiplication of two *n*-digit numbers to at most three multiplications of *n/2*-digit numbers, plus some additions and subtractions. Let the two numbers be: * `X = 2146782` * `Y = 0422812` = `422812` (as leading zeros are not significant in integer representation) We will now apply the Karatsuba algorithm step-by-step. --- Step 1: Equalizing the length of the numbers We need both numbers to be of equal length. `X = 2146782` (length = 7) `Y = 0422812` = `422812` (length = 6) To equalize, prepend one 0 to `Y`: `Y = 0422812` = `0422812` (Now both are 7-digit numbers) So, `X = 2146782` `Y = 0422812` --- Step 2: Split the numbers We divide each number in the middle: * Let `n = 7` → split at `n/2 = 3` (we can use floor or ceiling as required) Split `X` as: `X = 2146 * 10^3 + 782` → `X1 = 2146`, `X0 = 782` Split `Y` as: `Y = 0422 * 10^3 + 812` → `Y1 = 422`, `Y0 = 812` Now, we compute the following three products: 1. Z2 = X1 \* Y1 = 2146 \* 422 2. Z0 = X0 \* Y0 = 782 \* 812 3. Z1 = (X1 + X0) \* (Y1 + Y0) - Z2 - Z0 --- Step 3: Compute Z2 = 2146 \* 422 Break 2146 and 422 further using Karatsuba if needed, else multiply directly. Let’s perform direct multiplication for simplicity: 2146 × 422 \= 2146 × 400 + 2146 × 22 \= (2146 × 400) + (2146 × 22) 2146 × 400 = 858400 2146 × 22 = (2146 × 20) + (2146 × 2) = 42920 +
_____ ____ ____ ______ ________ _________ _________.______ ____ ________ ___ ____ ________.
____ __________ ___ __________ _________ ________ _______ ______ _____ _____.
______ ____ ____ _________ ______ ____ _______.
_____ ______ ____ __________ ____ __________.
_________ __________ _____ ___ ___ ________ ________ ____ _______ _______ ____.
__________ ______ ________ _______ ____.
___ _________ ______ _____ _________.
_________ _____ _________ ______ ______ ___ _____ _______ ___.
_____ ____ ______ _________ _____ _______ __________ ___ ___ _________ _________.
______ ________ _______ __________ ___ _____ ___ __________ ______.
______ ___ __________ _____ _________.
_________ _______ ______ _______ ___ ______.
_________ ___ __________ _________ _________ ____ ______ ____.
____ ______ __________ ______ __________ _________ ________.
________ _____ __________ ______ _____.
_________ ____ ___ ______ ________ _____ _______ ______ _____ ______ ______ _____.
_________ ______ _________ ___ _____ _______ ______ _______ ______ ______ __________.
______ __________ _____ ___ ____ ___ _____ ________ ________ _________ ____ ____.
_______ ____ ____ _______ _____ ____ ________ _________ __________ ________ _________ _______.
__________ _____ ________ ___ __________ __________ ________ _________ _________ _____ ___ _____.
_______ _____ ____ ________ _____ __________ ___ ____ ________.
_______ _____ ___ __________ _____ ________ ____.
_____ _________ _______ ______ _______ _______ __________.
________ ________ _______ ________ ____ ___.
___ _________ __________ ___ ______ ___ _________ ___ ______ __________ _____.
______ ___ _______ __________ ________.
_____ ___ ____ _____ _____ ___ ______ ___ _______ _______ __________.
_________ _______ _____ __________ ______ ______ _______.
________ __________ __________ _____ _________ _________ ___ ______ _____.
_____ ________ _______ ___ _____ ___ _______ __________.
________ ______ _____ _______ ______ __________ ____ _____ _____ _____ ________ ____.
____ __________ _________ _____ _______ ___ ____ _________.
___ ______ ________ ______ _____.
__________ ________ __________ _______ ____ ________ ________ _______.
_____ _________ __________ __________ ________ ____ ____ __________ ________ ___ _________.
___ ________ _______ __________ ______ _____ _________ ____ ___.
_______ ________ ____ _______ _________ ___ ____ ___ _________.
____ ___ ______ _______ ________ _____.
__________ __________ __________ _____ ___ __________ __________ ___ ______ __________.
_________ ___ ______ _________ ___.
________ ___ _____ ___ _____ _________ ______ ________.
________ ______ _______ ________ ________ ______ _________ ______ __________ __________ __________.
_____ _________ _________ ______ ___.
___ _________ _________ ______ _____ ______ ________ _________ ____.
____ _________ __________ ______ ________ __________.
_________ ______ ______ ____ _________ _____ __________ _________.
___ _________ _________ _________ ______ ____ _______ ____ ______ __________ __________ _________.
__________ ________ ____ _______ ____ ________.
_______ __________ _________ ________ ______.
_______ _______ ______ ___ ____ ___ ____ _____ ___.
______ ______ ________ _______ _______ _____ ______ ____ ________ __________ ______.
________ ________ ________ _____ ________ _______ ___ _____.
_________ _________ ___ ___ __________ ________ ______ __________ ___ ________ ________ ____.
_______ __________ _______ ____ _____ _________ _____ _________ ________ ______.
_________ __________ ___ __________ __________.
___ _______ _______ __________ _________ __________ ___ _____ ____ __________.
__________ __________ ___ __________ __________ ________ ________ _________.
_____ ___.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.