0
What are Algorithms?
I'm relatively new to programming, and I've come across "algorithms" a couple of times. Could someone please explain what they are and how they're used? Thank you.
3 odpowiedzi
+ 2
Algorithm is a way to do something in short and effect way(not all algorithm is same fast, but when they are created they were faster than other method at that time). Like
add two number
2+2
how you will do this
1: count them on fingers
2: convert them to binary add them than convert back to decimal
Above both are algorithm for addition of two numbers(Here i am not adding like I know answer is 4 from my experience in math or I have add many times so that I remember the answer. Remember computer can not get experience).
It depend on you which will you take. Algorithm is a path to get desire output.
+ 2
this is a step by step way of solving tactical problems
+ 1
algorithm forget the word in simple lang it means process or step by step set of instructions to do a task for example there is one for calling your friend
start-)pick your phone-)if it's in contact saved-)if yes find it and call if no dial it-)talkinit-)end
now it does not look like related to program
there is one we learnt for finding percentage
start-)... we all know
now there is one for saving a word document that our applications have been told there
start-)... many codes that computer have told there