In mathematics, computing, linguistics, and related disciplines, an algorithm is a procedure (a finite set of well-defined instructions) for accomplishing some task which, given an initial state, will terminate in a defined end-state. The computational complexity and efficient implementation of the algorithm are important in computing, and this depends on suitable data structures.
2007-02-17 13:39:56
·
answer #1
·
answered by Pooh 4
·
1⤊
0⤋
- An algorithm (pronounced AL-go-rith-um) is a procedure or formula for solving a problem. The word derives from the name of the mathematician, Mohammed ibn-Musa al-Khwarizmi, who was part of the royal court in Baghdad and who lived from about 780 to 850. Al-Khwarizmi's work is the likely source for the word algebra as well.
A computer program can be viewed as an elaborate algorithm. In mathematics and computer science, an algorithm usually means a small procedure that solves a recurrent problem.
For example:
In computer programming, there are often many different ways -- algorithms -- to accomplish any given task. Each algorithm has advantages and disadvantages in different situations. Sorting is one place where a lot of research has been done, because computers spend a lot of time sorting lists. Here are five different algorithms that are used in sorting:
Bin sort
Merge sort
Bubble sort
Shell sort
Quicksort
If you have a million integer values between 1 and 10 and you need to sort them, the bin sort is the right algorithm to use. If you have a million book titles, the quicksort might be the best algorithm. By knowing the strengths and weaknesses of the different algorithms, you pick the best one for the task at hand.
2007-02-19 07:22:28
·
answer #2
·
answered by Sabine 6
·
1⤊
1⤋
Lots of info available on algorithms in wikipedia.
2007-02-17 13:46:24
·
answer #3
·
answered by weafes 2
·
0⤊
0⤋
An algorithm is a saying by Al Gore, such as "I invented the internet." That is an example of an algorithm.
2007-02-17 13:36:51
·
answer #4
·
answered by Anonymous
·
1⤊
2⤋
A step by step procedure of how you are going to accomplish a task.
2007-02-17 14:25:10
·
answer #5
·
answered by D 4
·
0⤊
0⤋