SUNY OLD WESTBURY NAME:HYUN-JUNG IM
COMPUTER AND BUSINESS
FY 1000-016
FOR PROF. EBRAHIMI
SUBJECT:ALGORITHM
The word "algorithm" is frequently used as a procedure or formula for solving a problem. A computer program is essentially an algorithm that tells the computer what specific steps to perform (in what specific order) in order to carry out a specified task, such as calculating employees¡¯ paychecks or printing students¡¯ report cards. Thus, an algorithm can be considered to be any sequence of operations which can be performed by a Turing-complete system. It came from the Persian scientist Alkharazmi 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. He wrote a book around 825 A.D. called "Algebra and Moghabeleh" which translates to "Reduction and Claculation".
For example there are several algorithms.
First of all, 'STL' consists of several standardized generic function that can be used on any of the containers. The functions insert and remove elements from a vector list, or string using the same interface.
Second of all, 'copy' fuction can be used to copy the elemets of an array to a container. The name of an array is the pointer to the beginning of the array, and the pointer to the end of the array is the array name plus the size of the array.
Third of all, 'unique_copy' is the lements that are unique into another container. However, criteria can be set for duplicates. Making a function to set a criterion, such as to check if the two numbers are in the same range.
Fourth of all, 'remove' is removing the value from the container. The function will remove the element according to the criteria to the criteria set by the comparator object.
"STL algorithm can be divided into two major categories depending on whether the container in question can be changed by the algorithm or non-modifiable."
There is another algorithm, which is a transform algorithm. It will apply a transformation, e.g. a function, to each element of container, and put the result in a destination. Note that similar algorithms work on the same container.
In my point of view, this is the way of solving the problems. I might going to need more experince of anything that is going to happen to me to solve, but if I know how to fix and get results, it will be the one of the algorithm to get through. home page