By shriphani on July 31, 2012

Chris helped me flesh out a couple of bugs with my VAD implementation (the Spectral Flatness Measure was computer incorrectly). Thanks a bunch. You can get the latest build here

Posted in Computer Science, python | Tagged Audio, cs, DSP, Listener, open-source, python, VAD |

By shriphani on January 24, 2012

I tried to take a shot @ the problem shown above. Turns out just high-school level math is sufficient to make a decent classifier for this. In the Japanese alphabet(s), a character is composed of strokes. These strokes have a fixed order. This restriction is pretty much all you need. I grab the stroke's end […]

Posted in Computer Science, Mathematics | Tagged ai, artificial intelligence, c#, classifier, Computer Science, cs, github, hiragana, japanese, machine learning, nearest-neighbor |

By shriphani on October 9, 2010

Disclaimers: If you're interested in learning about spin locks, you are @ the wrong place. Purdue University's Dr. Gustavo Rodriguez-Rivera is kind enough to put his lecture notes (they are excellent) online. This probably is a fault of my own ignorance more than that of my coursework. Thus far, my understanding of spin locks was […]

Posted in Computer Science | Tagged Computer Science, context-switching, cs, interrupts, operating systems, OS, preemptive scheduling, spin locks |

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 |

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 |

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 |

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 |