Giter Site home page Giter Site logo

coursera-algs's Introduction

coursera-algs

"Algorithms, Part I & Part II" by Princeton University on Coursera (basically the COS226 at Princeton University).

I use this terrific online course and its well designed programming assignments to recap basics in algorithms.

update 01/20/2017

Finished programming assignments week1 of Part II.

  • Word-Net: Find shortest path common ancestor in Word Net of nouns.

update 11/04/2016

Finished programming assignments week5 of Part I.

  • Kd-Tree: Implemented 2D-Tree datastructure that support efficient range search and nearest neighbor operations.

update 11/03/2016

Notes for geo-application of BST (week5 of Part I).

pic

  • Using BST search 1D range
  • Converting Line Intersection problem into 1D range search by sweeping line algorithm
    • Keep in BST y-coordinates of left point of lines that haven't end yet
    • When encountering a vertical line, do search in BST. Points found indicate intersections
  • Kd-Tree
    • Using 2d-Tree to find nearest neighbor: pruning the other subtree when updating current nearest in current subtree, or will search in both subtrees
    • kd-Tree: recursively do 2-partition on one dimension at a time. Use $level = imodk$.
    • k nearest neighbor: use a fixed size priority queue to keep candidates.

update 11/02/2016

Finished programming assignments week4 of Part I.

  • 8-Puzzle: Solve 8-puzzle problem using the A* search algorithm. (Heap/PriorityQueue)

update 10/31/2016

Finished programming assignments week1 to week3 of Part I.

  • Percolation - Estimate percolation threshold via Monte Carlo simulation using union-find algorithm; (Union-Find)
  • Deque, RandomizedQueue - Implement these two data structures; (Linear datastructure)
  • Collinear - Using sort of slope to find lines on 2D plane. (Sort)

coursera-algs's People

Contributors

sidxiong avatar

Stargazers

 avatar Moonlight avatar LaoShiRen avatar

Watchers

 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.