Jul 09, 2010

## The Most Important Algorithms

The most important algorithms with explanations and some code examples in Python, Java and LISP.

Jul 09, 2010

The most important algorithms with explanations and some code examples in Python, Java and LISP.

Jun 28, 2010

Question: Write a recursive function that prints all the permutations of a given string. The number of permutations for a string is n! where n is string length.

Jun 13, 2010

Integer exponentiation algorithms such as binary method, mk-ary method, quaternary method, octal method, Montgomery's Ladder Technique.

Jun 08, 2010

There are perhaps tens of different ways to do it, either using standard libraries or writing your own piece of code. If we consider in Java, a good answer would be using the StringBuilder class.

Jun 05, 2010

In its simplest definition a linked list is a sequence of nodes that each node contains the data and the reference to the next node in the list. Detection of a cycle in a linked list is useful before beginning to process because such linked lists cause an infinite loop.

May 04, 2010

The first balanced binary tree in computing history was the AVL tree which introduced the wide area of balanced binary search trees. An AVL tree is a binary search tree which has an additional balanced condition(yes, that's the only extra addition). Balanced condition of the AVL tree ensures the depth of the tree is O(log n) which ensures the depth of the tree is logarithmic.

Mar 07, 2010

This is the second part of the string search algorithms. In this post I'll cover Knuth-Morris-Pratt algorithm.

Mar 02, 2010

Every text editor and IDE performs string searches. Basically, there always a text and the users searches for a pattern in the text. If you use an efficient algorithm can aid the responsiveness of the text-editing program. In this post I'll cover the most known string search algorithms. String search algorithms are also used to search for particular patterns in DNA sequences.

Feb 23, 2010

When you want to use Beaker library on Google App Engine, you may receive the following error; import pkg_resources ImportError: No module named pkg_resources.

Jan 18, 2010

I've been coding a small project in my free time and i had to develop a simple algorithm that is similar to Base60 encoding to create shorter values.