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...

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.
Image of page 1

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

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes