lab2.pdf - COMP 314 Algorithms and Complexity Lab work 2 Sorting 1 Purpose Implementation testing and performance measurement of sorting algorithms 2

# lab2.pdf - COMP 314 Algorithms and Complexity Lab work 2...

• Lab Report
• 1

This preview shows page 1 out of 1 page.

COMP 314: Algorithms and Complexity Lab work 2: Sorting 1 Purpose Implementation, testing and performance measurement of sorting algorithms. 2 Tasks Students are required to accomplish the following tasks preferably in Python. 1. Implement the following sorting algorithms: (a) Insertion sort (b) Merge sort 2. Write some test cases to test your program. 3. Generate some random inputs for your program and apply both insertion sort and merge sort algorithms to sort the generated sequence of data. Record the execution times of both algorithms for best and worst cases on inputs of different size. Plot an input-size vs execution-time graph.

Unformatted text preview: 4. Explain your observations. Students are suggested to use GitLab to keep their programs. Naming con-vention for GitLab project: CE III h Roll No i Lab2 3 Readings 1. For sorting algorithms: Chapter 5 and 12 of Necaise, R. D. (2010). Data Structures and Algorithms Using Python. 2. For algorithm analysis and performance measurement: Chapter 1 of Horowitz et al. (2013). Fundamentals of Computer Algorithms. 3. For unit testings: 4. For Git: 1...
View Full Document

• Spring '17
• Subrna Shrestha

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern