Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 665 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 665 Bytes

algorithm4th

1.Union-find - Percolation

Write a program to estimate the value of the percolation threshold via Monte Carlo simulation.

wrote class: Percolation.java PercolationStats.java

info link :http://coursera.cs.princeton.edu/algs4/assignments/percolation.html

2. stack and queue - 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.

info link:http://coursera.cs.princeton.edu/algs4/assignments/queues.html

Dequeue.java RandomizedQueue.java Permutation.java