CS2040 Group Project: Integration of Merge Sort and Insertion Sort

This report discusses about the Integration of Merge Sort and Insertion Sort. MergeSort is a divide-and-conquer algorithm. MergeSort first divides the problem into subproblems and continues to divide sub-problems into smaller sub-problems until no more sub-problems can be divided any further. Since our goal is to sort the items in a given list, after dividing the original problem into many small sub-problems, we have to conquer our sub-problems by sorting the items in each problem recursively. When the size of a sub-problem is relatively small, the overheads incurred by invoking many recursive methods render the MergeSort inefficient. Such inefficiency can be alleviated with the assistance of insertion sort, a sorting algorithm that runs efficiently for relatively small input. A small suitable threshold value (S) will be selected for limiting the size of a sub-problem. Whenever the subproblem size reaches the threshold (S), the algorithm will invoke insertion sort instead of proceeding to divide smaller sub-problems.
This document is 20 Exchange Credits
About Document
Details
More about this document
This document has been hand checked
This document has been hand checked
Every document on Thinkswap has been carefully hand checked to make sure it's correctly described and categorised. No more browsing through piles of irrelevant study resources.
Document Type
This is an Essay / Project
Essays / Projects are typically greater than 5 pages in length and are assessments that have been previously submitted by a student for academic grading.
Exchange Credits
What are Exchange Credits?
Exchange Credits represent the worth of each document on Thinkswap. In exchange for uploading documents you will receive Exchange Credits. These credits can then be used to download other documents for free.
Satisfaction
Satisfaction Guarantee
We want you to be satisfied with your learning, that’s why all documents on Thinkswap are covered by our Satisfaction Guarantee. If a document is not of an acceptable quality or the document was incorrectly described or categorised, we will provide a full refund of Exchange Credits so that you can get another document. For more information please read Thinkswap's Satisfaction Guarantee
Integrity
Studying with Academic
Integrity
Studying from past student work is an amazing way to learn and research, however you must always act with academic integrity.

This document is the prior work of another student. Thinkswap has partnered with Turnitin to ensure students cannot copy directly from our resources. Understand how to responsibly use this work by visiting ‘Using Thinkswap resources correctly’.
Academic Integrity
How Thinkswap works
search
Find the study resources that suit your needs
Browse 200,000+ study notes and past assignments.
swap
Swap your credits
Earn credits by sharing your own documents or buy credits to access resources.
study
Study anytime
Access and download PDFs of your materials online or offline.
Explore more
Similar documents to CS2040 Group Project: Integration of Merge Sort and Insertion Sort
Let the revision begin

Browse NUS Subjects

Thinkswap's high quality resources are categorised by subject or course.
Our Study Resources
Explore Thinkswap
search icon
Choose Region
Choose university or high school