Faruk Akgul

Aug 27, 2009

Language Detection In Python

I don't know much thing about language detection but I was in need of it for a project. Basically I needed to detect whether the text is in English or not.

Aug 22, 2009

Java's Missing Algorithm: BigInteger Sqrt

Java's BigInteger and BigDecimal libraries don't contain an algorithm to find the root of a number so you have to develop your own. I've coded a square root algorithm for BigInteger library (I can't remember how I've learned the original algorithm. If I do, I'll add it). Feel free to use it, but remember it only finds square roots of a number.

Apr 18, 2009

The Vigene Cipher

The Vigene Cipher is probably the easiest cipher which was invented by Blaise de Vigenere, a French diplomat born in 1523. It's similar to Caesars cipher. It works -like the most ciphers- by replacing each letter by another letter.

Feb 02, 2009

Introduction To Algorithms: Binary Search Trees

Binary search tree(BST) is a binary tree structure. Basic operations on a BST are proportional to the height of the tree. For such operations on a BST run O(log n) worst-case time.