VE477 Lab 3

$30.00 $24.00

Unless specified otherwise, all the programs are expected to be completed in Python or O’Caml. Implement the following algorithms presented in the lectures: Sort and count (1.??); Gale-Shapley (2.??); In assignment 1, exercise 5, question 1 the Knapsack problem is introduced and two ideas to solve it are proposed. Implement both strategies and run each…

Rate this product

You’ll get a: zip file solution

 

Categorys:

Description

Rate this product

Unless specified otherwise, all the programs are expected to be completed in Python or O’Caml.

  1. Implement the following algorithms presented in the lectures:

    1. Sort and count (1.??);

    1. Gale-Shapley (2.??);

  1. In assignment 1, exercise 5, question 1 the Knapsack problem is introduced and two ideas to solve it are proposed.

    1. Implement both strategies and run each of them on a counter example;

    1. Search how to properly solve the Knapsack problem and implement the solution;

  1. Run each of the previous implementations on various input sizes, time how long it takes to complete the program, and compare the results to the ones provided in table 2.??. Write a short report presenting the results.

Hint: use the python module timeit.

VE477 Lab 3
$30.00 $24.00