# Divide and Conquer Technique

Post date: Nov 5, 2013 6:13:10 AM

Divide and Conquer approach basically works on breaking the problem into sub problems that are similar to the original problem but smaller in size & simpler to solve. once divided sub problems are solved recursively and then combine solutions of sub problems to create a solution to original problem.

At each level of the recursion the divide and conquer approach follows three steps:

1. Divide: In this step whole problem is divided into several sub problems.
2. Conquer: The sub problems are conquered by solving them recursively, only if they are small enough to be solved, otherwise step1 is executed.
3. Combine: In this final step, the solution obtained by the sub problems are combined to create solution to the original problem.

Divide and conquer approach has several advantages as follows:

1. Solving conceptually difficult problems, it just require to divide them into sub problems. for example: Tower of Hanoi
2. Divide and Conquer approach helps in discovering efficient algorithms like Strassen's Algorithm for matrix multiplication.
3. Divide and Conquer also adapts itself to execute in multiprocessor machines. There fore parallel execution of sub problems on different processors with shared memory helps in parallel execution if master problem, results in increased algorithm performance.

Following are the problems which has become very efficient with use of Divide and Conquer approach:

1. Binary Search.
2. Finding the Maximum and Minimum.
3. Merge Sort.
4. Quick Sort.
5. Selection Sort.
6. Strassen's Matrix multiplication.
7. Convex Hull.

All above mentioned problems will be explained on other pages with concerned topics or you can click on provided link to directly read them.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8881476,"math_prob":0.80527806,"size":1904,"snap":"2022-40-2023-06","text_gpt3_token_len":372,"char_repetition_ratio":0.15,"word_repetition_ratio":0.034129694,"special_character_ratio":0.19222689,"punctuation_ratio":0.109375,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.993312,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-10-06T17:53:40Z\",\"WARC-Record-ID\":\"<urn:uuid:a4082377-d511-4916-b066-881728cf0aa8>\",\"Content-Length\":\"66536\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:34ab5efe-93cd-465b-8db3-3accbaa43cf2>\",\"WARC-Concurrent-To\":\"<urn:uuid:e0a313c7-4961-45d1-8997-5a9cac597d03>\",\"WARC-IP-Address\":\"172.253.63.121\",\"WARC-Target-URI\":\"https://www.superwits.com/library/design-analysis-of-algorithm/course-content-daa/divideandconquertechnique\",\"WARC-Payload-Digest\":\"sha1:6XI5SRFMEOCT7NCU7NF7CAL266WMUEBH\",\"WARC-Block-Digest\":\"sha1:LGJXMCXIXT3C5KN5UFGAMLZU5UY3I47A\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030337853.66_warc_CC-MAIN-20221006155805-20221006185805-00275.warc.gz\"}"}