/Algorithms

An implementation of various Algorithms in Java. Based on the book Algorithms by Sedgewick and Wayne.

Primary LanguageJava

Algorithms

An implementation of various Algorithms in Java, based on the book Algorithms by Sedgewick and Wayne.

I wrote the code as I followed Sedgewick's Algorithms course, and tried to understand the various algorithms. I wanted to make the implementation clear, readable and easy to understand. I believe it's correct, but since it was my first time learning about these algorithms, so I don't guarantee that the code is bug free.

Data Structures

Cool Application

  • Median Maintenance: keeps track of the median of a variable sequence of elements, supporting insertions

Sorting

String sorting:

Neat adaptation of quicksort

  • Quick Select: efficiently find's the i-th smallest element in an unsorted array

Trees

Graphs

Data Structures

Algorithms

Great applications:

Searching

Useful classes