Maruf Notes
Saturday, July 30, 2016
DP - Longest increasing subsequence
›
The problem Given a sequence of numbers S1,S2...,Sn We have to find a sub-sequence R1,R2...Rn such that R1<R2<...<Rn ...
Tuesday, April 15, 2014
CS131: Quicksort and quickselect
›
Quick sort is a divide and conquer inplace sorting algorithm. This is a preferable sorting algorithm for many practical applications b...
Sunday, April 6, 2014
CS131: Graph
›
A graph G is a set of of vertices V and a set of edges E that connects the vertices. G = (V,E) This notation means V is a set of vertices ...
CS131: 2-3-4 Tree [Draft]
›
2-3-4 Tree is a perfectly balanced tree (all leafs are on the same level) with O(log n) worst case time for find, insert and remove o...
CS131: Splay Tree
›
Splay tree is a balanced binary search tree. On average all operations take O(log n) time. Any sequence of k operations starting from an em...
CS131: Binary Search Tree
›
A binary search tree is a binary tree such that for any node n, if a node x is in n's left subtree, x's key is smaller than n...
CS131: Tree
›
A tree is a collection of nodes and edges. Edges connects the edges together. In a tree there is one and only one path between any tw...
›
Home
View web version