Complexity Analysis of Divide and Conquer Algorithm
T(n) = aT(n/b) + f(n), where n = size of input a = number of subproblems in the recursion n/b = size of each subproblem. All subproblems are assumed to have the same size. f(n) = cost of the work done outside the recursive call, which includes the cost of dividing the problem and cost of merging the solutions
Introduction to Divide and Conquer Algorithm – Data Structure and Algorithm Tutorials
Divide and Conquer Algorithm is a problem-solving technique used to solve problems by dividing the main problem into subproblems, solving them individually and then merging them to find solution to the original problem. In this article, we are going to discuss how Divide and Conquer Algorithm is helpful and how we can use it to solve problems.
Table of Content
- Divide and Conquer Algorithm Definition
- Working of Divide and Conquer Algorithm
- Characteristics of Divide and Conquer Algorithm
- Examples of Divide and Conquer Algorithm
- Complexity Analysis of Divide and Conquer Algorithm
- Applications of Divide and Conquer Algorithm
- Advantages of Divide and Conquer Algorithm
- Disadvantages of Divide and Conquer Algorithm
Contact Us