Some exercises and assignments I complete about the book Algorithms Fourth Edition by Robert Sedgewick and Kevin Wayne.
The github site is here.
Programming assignments of the course on Coursera related to this book.
-
Programming Assignment 1: Percolation
Write a program to estimate the value of the percolation threshold via Monte Carlo simulation.
-
Programming Assignment 2: Deques and Randomized Queues
Write a generic data type for a deque and a randomized queue. The goal of this assignment is to implement elementary data structures using arrays and linked lists, and to introduce you to generics and iterators.
The sites describes the code, and javadoc.
Lib: algs4.jar
Data: algs4-data.zip