Code Monkey home page Code Monkey logo

algorithm's Introduction

Algorithm

Intended to study Algorithm Specialization on Coursera.

DivideAndConquer

Assignment1

Implement Karatsuba's integer multiplication algorithm.

Assignment2

Implement the fast divide-and-conquer algorithm to compute the number of inversions of the given file.

RandomizedAlgorithm

Assignment3

Compute the total number of comparisons used to sort the given input file by QuickSort.

Assignment4

Run the randomized contraction algorithm to compute minimum cut of a simple undirected graph.

Graph Search

Assignment1

Computer strongly connected components of a directed graph using Kosaraju's algorithm.

Assignment2

Dijkstra's shortest path algorithm.

Data Structure

Assignment3

Implement the Median Maintenance algorithm.

Assignment4

Implement a variant of the 2-SUM algorithm with hash table.

Greedy Algorithm

Assignment1

(1) Run the greedy algorithm that schedules jobs in decreasing order of the difference (weight - length) and (optimally)ratio (weight/length).

(2) Run Prim's minimum spanning tree algorithm on an undirected graph.

Assignment2

(1) Implement the clustering algorithm for computing a max-spacing k-clustering.

(2) Run the clustering algorithm, but on a MUCH bigger graph.

Assignment3

(1) Implement the greedy algorithm on Huffman coding.

Dynamic Programming

Assignment3

(2) Implement the dynamic programming algorithm for computing a maximum-weight independent set of a path graph.

Assignment4

(1) Implement the knapsack algorithm.

(2) Implement the knapsack algorithm on a much bigger set that the straightforward iterative implemetation uses an infeasible amount of time and space.

algorithm's People

Contributors

zhangchengyao avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.