Write a report in overleaf and upload the link in UN Moodle (do not include emails because it sends annoying email updates)
- Cormen, Leiserson, Rivest and Stein (300 points)
- Problem 1-1 - solve from 1 microsecond (10^-6 s) for step to for 1 nanoseconds (10^-9 s) for step.
- Problem 3-1
- Dasgupta, Papadimitriou and Vazirani (100 points)
- Exercise 0.1.
- Exercise 0.2.
- Time by instruction estimation (200 points): Run 100 x 100 random integer matrix multiplication ten times in C++ in https://www.onlinegdb.com/online_c++_compiler and take time using std::chrono, estimate the time by instruction with min of the running times assuming the you do 2n^3 - n^2 ( n=100) instructions . Do the same with Pyhton native, Numpy and Fortran in Colab, hints:
- Solve T(n) = 2 T(n-2) + 2, with n = 2k and for T(0) = 0, and T(0)= 1 by Recursive Substitution and the Graphical Method. (100 points)
- Complete the following table (300 puntos)