algorithm of the week

  • submit to reddit

Algorithm of the Week: Damn Cool Secure Permutations with Block Ciphers

To start, I'm assuming you know what a permutation is - basically a shuffling of a sequence of items in a particular order. A permutation of the...

0 replies - 4346 views - 05/14/13 by Nick Johnson in Articles

Algorithm of the Week: Shortest Path with Djikstra

Tonight I decided my study time would be to sit down and implement Djikstra’s algorithm in Python to help me understand it. When coding up a solution to a...

0 replies - 5249 views - 05/07/13 by Justin Bozonier in Articles

Algorithm of the Week: Generate Music Algorithmically

What is a Markov Chain? The algorithm of the week is a Markov Chain. Using this technique you leverage a little bit of probability to do some light machine...

1 replies - 11068 views - 04/23/13 by Justin Bozonier in Articles

Algorithm of the Week: Bellman-Ford in Python Using Vectorization/Numpy

I recently wrote about an implementation of the Bellman Ford shortest path algorithm and concluded by saying that it took 27 seconds to calculate...

0 replies - 2093 views - 02/19/13 by Mark Needham in Articles

Algorithm of the Week: Basic Planning

You can think of planning as a graph search problem where each node in the graph represents a possible "state" of the reality. A directed edge from nodeA to...

1 replies - 6219 views - 02/12/13 by Ricky Ho in Articles

Algorithm of the Week: Topological Sort Revisited

Introduction We already know what about the topological sort of a directed acyclic graph. So why do we need to revisit this algorithm? First of all I never...

2 replies - 6717 views - 12/11/12 by Stoimen Popov in Articles

Algorithm of the Week: Longest Increasing Subsequence

Introduction A very common problem in computer programming is finding the longest increasing (decreasing) subsequence in a sequence of numbers (usually...

1 replies - 7896 views - 12/04/12 by Stoimen Popov in Articles

Algorithm of the Week: Strassen's Matrix Multiplication

Introduction Strassen’s method of matrix multiplication is a typical divide and conquer algorithm. We’ve seen so far some divide and conquer algorithms...

0 replies - 7862 views - 11/27/12 by Stoimen Popov in Articles

Algorithm of the Week: Prim's Minimum Spanning Tree

Introduction Along with Kruskal’s minimum spanning tree algorithm, there’s another general algorithm that solves the problem. The algorithm of...

2 replies - 7628 views - 11/20/12 by Stoimen Popov in Articles

Algorithm of the Week: Kruskal's Minimum Spanning Tree

Introduction One of the two main algorithms in finding the minimum spanning tree algorithms is the algorithm of Kruskal. Before getting into the details,...

0 replies - 8304 views - 11/13/12 by Stoimen Popov in Articles

Algorithm of the Week: Minimum Spanning Tree

Introduction Here’s a classical task on graphs. We have a group of cities and we must wire them to provide them all with electricity. Out of all...

0 replies - 6758 views - 11/06/12 by Stoimen Popov in Articles

Algorithm of the Week: Shortest Path in a Directed Acyclic Graph

Introduction We saw how to find the shortest path in a graph with positive edges using the Dijkstra’s algorithm. We also know how to find the shortest...

0 replies - 6166 views - 10/29/12 by Stoimen Popov in Articles

Algorithm of the Week: Topological Sort of a Graph

Introduction Let’s assume we have a list of tasks to accomplish. Some of the tasks depend on others, so we must be very careful with the order of their...

2 replies - 6804 views - 10/01/12 by Stoimen Popov in Articles