Shriphani Palakodety
In Pursuit of Truth and Beauty
  • About Me
  • Links
  • Quotes
  • Books
Browse: Home / algorithms

algorithms

Bipartite Matching And Max Flow - Tweaks And Other Observations

By shriphani on July 16, 2010

A look at the bipartite matching problem and some observations about solving them using max-flow.

Posted in Computer Science, Mathematics | Tagged algorithms, bipartite-matching, flow, matching, max-flow | Leave a response

Bellman-Ford Algorithm's Applications - Triangular Arbitrage

By shriphani on July 2, 2010

Using the Bellman-Ford Single Source Shortest Path algorithm to detect triangular arbitrage.

Posted in Computer Science, python | Tagged algorithms, arbitrage, bellman-ford, Computer Science, cs, graphs, python, shortest-path, triangular-arbitrage | 8 Responses

3 CNF SAT Fail.

By shriphani on May 21, 2010

So, at 2:00 am last night I decided I had completed my 3-CNF-SAT algorithm (which runs in polynomial time!!). Well, here is the pseudocode: ROUTINE(P): -> Make a hashtable 'h' of size 3 * no. of clauses -> For clause p in P: for each 'distinct' variable x in p: h[x] += 1 -> Find [...]

Posted in Computer Science | Tagged 3-CNF-SAT, algorithms, Computer Science, cs, NP Complete | 5 Responses

Disjoint Set Data Structure

By shriphani on May 20, 2010

Two implementations of a disjoint set data structure and an implementation of kruskal's algorithm.

Posted in Computer Science, python | Tagged "disjoint sets", "kruskal", "path compression", "weighted union", algorithms, analysis of algorithms, Computer Science, cs, purdue, python | Leave a response

Weirdest Analyses Ever

By shriphani on April 30, 2010

This semester I had the fortune of taking Dr. Greg Frederickson's CS 381 (Algorithms) class. And boy did I see weird stuff in there. Below, I have a list of analyses I say are downright the most non-obvious (and in a way beautiful to look at). Edmonds-Karp Algorithm (Max Flow in a network): This algorithm [...]

Posted in Computer Science | Tagged algorithms, analysis of algorithms, Computer Science, cs, purdue | Leave a response

Copyright © 2013 Shriphani Palakodety.

Powered by WordPress and Hybrid.