Homework 2 Sort Algorithms Solution

$30.00 $24.00

Write a class that offers 2 functions that works exactly like the sorted() built-in function in python. Follow the following: Function has 3 input parameters: iterable of objects, key, and reversed. List can be numeric, string, or comparable user defined objects The function returns a new sorted list The function also returns: Number of comparisons…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Description

5/5 – (2 votes)

Write a class that offers 2 functions that works exactly like the sorted() built-in function in python. Follow the following:

    1. Function has 3 input parameters: iterable of objects, key, and reversed.

    1. List can be numeric, string, or comparable user defined objects

    1. The function returns a new sorted list

    1. The function also returns:

      1. Number of comparisons

      1. Number of swaps

      1. Timer measure

    1. Implement both bubble and merge sort as the 2 functions offered by your class.

    1. Compare your functions on a randomly generated data

    1. Compare your functions to the built-in sorted() function (time wise)

    1. Present your findings thru plots and summary tables

  • Document step-by-step how to use/run your code.

Homework 2 Sort Algorithms Solution
$30.00 $24.00