Algorithm is the core of computer science. Computer programs would not exist without algorithm. Reason for studying algorithm is in developing analytical skills. An algorithm is a sequence of unambiguous instructions for obtaining a required output for any legitimate input in finite amount of time. The name Algorithm comes from Persian mathematician "Abu Jafer Mohammed Ibn Musa Alkhowariznie".