First i knew algorithm, i thought that was logarithm.
Of course not.
That is very different.
In
wikipedia, an algorithm is a finite list of well-defined instructions for accomplishing some task that, given an initial state, will terminate in a defined end-state.
Lets i give u an example.
I wanna make a cup of coffee.
First, i must give an initial-state and end-state.
Initial-state : there are a cup, sugar, coffee, hot water, coffee cream, a spoon, and a kitchen table in the kitchen. there is an coffee table in my rest room.
End-state : delicious coffee, yeah i want it so much.
What's the algorithm?
Like definition of algorithm above, algorithm is a finite list of well-defined instruction.
Algorithm :
- walk to kitchen (watch out if the floor is wet)
- get the cup and take it on the kitchen table.
- get the spoon, mix the coffee (about 15mg) with some sugar (depend on u) and coffee cream (sufficiently).
- fill the cup with hot water (don't spill it) and keep mix the coffee. (mmMmmmMmm...)
- get the cup, walk into my rest room, and enjoy my delicious coffee.
The algorithm can be different from another person ofcourse.
U can make ur own algorithm.
Just try it.
This is just an opening...... ;)