-
Can any one tell what are algorithms?0
-
Member • Oct 18, 2013
Algorithm are means of representing step by step procedure of doing any task. One can write steps in the form of simple English like sentences ,though pseudocodes are also used to write computational Algorithms.
one can understand pseudocodes as representation of information not completely in English like sentences and also not completely in programing way,as follows,
step 1. do i = 1 to 100
set print_number to true
if i is divisible by 3
print "Fizz"
set print_number to falseAre you sure? This action cannot be undone. -
Member • Oct 18, 2013
Algorithm are the Finite steps of instruction for solving problems,and it is the user understandable form of the entire codeAre you sure? This action cannot be undone. -
Member • Oct 18, 2013
Algorithms or Algos are just "Steps" to solve a given problem.Aadit KapoorCan any one tell what are algorithms?
It's " Series of Sequential Steps " to find solution of a problem.
Always remember, that in an algo, you can execute each step in finite no of times, and then after execution of the algo, you must reach the solution of the problem.
They are highly used by programmers, actually they first form algos (or steps) on how to solve a given problem and then that algo can be expressed as a flow chart (mainly to represent the idea of problem solving more graphically) , DFD (Data Flow Diagrams) and last but not the least, Programs (can be in any language)
Eg.
if you need to find even no and print it on the screen from 1 to say the number 10.
Then your algo would be something like this
1) Execute till step 3 till i <=10
2) if ( i % 2 == 0) { basically check if the number when divided by 2 leaves remainder as 0 ie it's even }
3) Print i
4) END
So, this is an algo, which can be represented as a program in any language.
I hope It's clear.
For more details, go to <a href="https://en.wikipedia.org/wiki/Algorithm" target="_blank" rel="nofollow noopener noreferrer">Algorithm</a>Are you sure? This action cannot be undone. -
Member • Oct 18, 2013
Thanks guys!
Helped alotAre you sure? This action cannot be undone. -
Member • Oct 18, 2013
Yes i agree that tbe algirithms are the fine steps for the task procedures but what about the pseudocodes pls explain.Alok mishraAlgorithm are means of representing step by step procedure of doing any task. One can write steps in the form of simple English like sentences ,though pseudocodes are also used to write computational Algorithms.
one can understand pseudocodes as representation of information not completely in English like sentences and also not completely in programing way,as follows,
step 1. do i = 1 to 100
set print_number to true
if i is divisible by 3
print "Fizz"
set print_number to falseAre you sure? This action cannot be undone. -
Member • Oct 18, 2013
pseudocodes are nothing but representation of information in a different but understandable form . Like i have given an example in my previous reply ,that is in pseudocode .you also can write that in the form of a sentence , but pseudocodes are prefered and also considered an effective way of writing algorithms.yogi.bharadwajYes i agree that tbe algirithms are the fine steps for the task procedures but what about the pseudocodes pls explain.
(a+b)^n ,this is in pseudocode ,you can also covey it as 'multiply (a+b) n times' .Are you sure? This action cannot be undone. -
Member • Oct 19, 2013
Pseudo means False, its a False code rather than the actual code, designed for sketching out the structure of the program before the actual coding takes place.It omits unnecessary steps and includes only the action to be executed.yogi.bharadwajYes i agree that tbe algirithms are the fine steps for the task procedures but what about the pseudocodes pls explain.Are you sure? This action cannot be undone.