Divide and Conquer - A complete guide for CSIT student

 Q. What is divide and conquer technique?

  • A divide and conquer algorithm is a strategy of solving a large problem by
  1. breaking the problem into smaller sub-problems (divide)
  2. solving the sub-problems recursiverly and sometimes directly for simpler one (conquer)
  3. Combining the subproblems solution to get the desired output (combine)
# Application of Divide and Conquer:
  • Binary Search
  • Merge Sort
  • Quick Sort
  • Strassen's Matrix Multiplication
  • Karatsuba Algorithm
  • Median finding problem and general order statistics

No comments:

Post a Comment

विज्ञापन