Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 667 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 667 Bytes

Algorithms

Repository of algorithms implemented in Python. These mostly include algorithms and problems covered in Tim Roughgarden's course on Algorithm Design and Analysis

Week 1 (Commit) Includes the following implementations.

  • Karatsuba Multiplication
  • Merge Sort
  • Counting the number of inversions in an unsorted array

Solutions to the first programming assignment is in countInversions.py Solutions to the first Quiz are in QuizWeek01_Answers.pdf

Week 2 (Commit) includes the following implementations.

  • Quick Sort
  • Recursively computing the number of comparisons with pivot element (a proxy to compute work done by the Quick Sort algorithm)