Question: Implementation - 2 0 marks Experimental analysis - 2 0 marks Discussion - 1 0 marks Objective: To analyze, implement, and compare the efficiency of
Implementation marks
Experimental analysis marks
Discussion marks
Objective: To analyze, implement, and compare the efficiency of various sorting algorithms in realworld scenarios.
Introduction: Sorting is a fundamental operation in computer science, with numerous applications in various domains. In this assignment, you will explore the performance of different sorting algorithms: Insertion Sort, Merge Sort, Heapsort, and Quicksort. You will analyze their time complexity, space complexity, and suitability for different scenarios.
Scenario: You are hired as a software engineer at a logistics company that needs to optimize its package sorting system. The company receives thousands of packages daily, each with different weights, sizes, and delivery destinations. Your task is to design and implement an efficient sorting algorithm to streamline the package sorting process.
Assignment Tasks:
Implementation:
Implement Insertion Sort, Merge Sort, Heapsort, and Quicksort in your preferred programming language.
Ensure that your implementations correctly sort a randomly generated array of integers.
Experimental Analysis:
Generate random datasets representing packages with varying sizes eg weights or volumes
Sort each dataset using all four algorithms.
Measure and record the execution time of each algorithm for different dataset sizes.
Plot graphs illustrating the relationship between dataset size and execution time for each algorithm.
Discussion:
Analyze the experimental results and compare the performance of the sorting algorithms.
Discuss which algorithms would be most suitable for sorting packages in the logistics company's scenario.
Justify your choices based on the analysis of time complexity, space complexity, and experimental results.
Deliverables: You should upload the assignment pdf file via canvas. Your code should be well documented and should be in the pdf file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
