You are on page 1of 3

Divide and

conquer
Sorting an array
Problem: Given an array of integers, sort it
using merge sort
Divide and Conquer is an algorithmic paradigm. A typical Divide and
Conquer algorithm solves a problem using following three steps.
1.Divide: Break the given problem into subproblems of same type.
2.Conquer: Recursively solve these subproblems
3.Combine: Appropriately combine the answers
In Merge Sort, we divide array into two halves, sort the two halves
recursively, and then merge the sorted halves.
Array = [38,27,43,3,9,82,10]

You might also like