Since we already know how to represent graphs,
we can go further for some very simple approaches of walking through
them. Passing by all the vertices of a...
2 replies - 9746 views - 09/10/12 by Stoimen Popov in Articles
Quick sort is the fastest known comparision sort for arrays. To top
it, it could be done in-place for arrays. For Linked Lists, Merge Sort
might be a...
6 replies - 5790 views - 09/07/12 by Arun Manivannan in Articles
Although this post is supposed to be about algorithms I’ll cover more
on graphs and their computer representation. I consider this very...
0 replies - 7925 views - 09/04/12 by Stoimen Popov in Articles
From Wikipedia - "Streaming algorithms are algorithms for processing data streams in which the input is presented as a sequence of items and can be...
0 replies - 3215 views - 09/02/12 by Nishant Chandra in Articles
Here’s one task related to the tree data structure. Given two nodes, can you find their lowest common ancestor?
As a matter of fact, this...
0 replies - 7103 views - 08/27/12 by Stoimen Popov in Articles
The following algorithm is based on work of Ramanujan and has been used in several world-record calculations of pi.
Initialize a0 = 6 – 4 √2 and y0 = √2...
0 replies - 5478 views - 08/20/12 by John Cook in Articles
Linked lists are one very common and handy data structure that can be
used in many cases of practical programming. In this post we’ll...
0 replies - 5702 views - 08/14/12 by Stoimen Popov in Articles
Heapsort is one of the general sorting algorithms that performs in O(n.log(n)) in the worst-case, just like merge sort and quicksort, but sorts...
0 replies - 9046 views - 08/07/12 by Stoimen Popov in Articles
I was thinking about the Travelling Salesman
problem this morning. I came up with an algorithm that permits a few
nice optimizations. My guess is that...
1 replies - 8558 views - 07/27/12 by Shannon Behrens in Articles
The binary search tree
is a very useful data structure, where searching can be significantly
faster than searching into a linked list....
0 replies - 13216 views - 07/23/12 by Stoimen Popov in Articles
Niching is a term often used in the Evolutionary
Algorithms literature and its significance and implications may become
clear only after the researcher has...
0 replies - 4240 views - 07/16/12 by Amit Saha in Articles
Constructing a linked list
is a fairly simple task. Linked lists are a linear structure and the
items are located one after another, each...
0 replies - 17971 views - 06/25/12 by Stoimen Popov in Articles
As I mentioned in a post a couple of days ago
I’ve been writing the closest pairs algorithm in Haskell and while the
brute force version works for small...
0 replies - 7040 views - 06/19/12 by Mark Needham in Articles
The linked list is a data structure in which the items are ordered in
a linear way. Although modern programming languages support very...
6 replies - 10973 views - 06/14/12 by Stoimen Popov in Articles
Every developer knows that computer algorithms
are tightly related to data structures. Indeed many of the algorithms
depend on a data...
2 replies - 14092 views - 06/08/12 by Stoimen Popov in Articles