Skip to main content

What Is An Algorithm? Who Invented It? And Why Do We Need To Write An Algorithm First Before Real Coding?


What Is An Algorithm?

AN Algorithm is a self-contained step-by-step set of operations to be performed.
Algorithms exist that perform calculation, data processing, and automated reasoning.
An algorithm is an effective method that can be expressed within a finite amount of space and time and in a well-defined formal language for calculating a function. Starting from an initial state and initial input.

Who Invented Algorithm?

Algorithm can be traced to Muhammad ibn Musa al-Khwarizmi , but computer algorithm was founded by Euclid.

Writing a problem or a program, why do I need to first write my program in an Algorithm?

We need to first write an algorithm before the codes because algorithm is the center of the design, determining a lot of data structures and relationships in the surrounding code.And if you find out too late that your algorithm is not scaling well it is very hard, error prone and time consuming to replace it in production code.


Comments