Definition of algorithm , Basic Computer Science

Definition of  Algorithm 

An algorithm is a design or plan of obtaining a solution to a problem. The solution is presented by listing all steps in which they are carried out.
i) determine the correctness of the various steps.

ii) reduce the number of steps, if possible.

iii) increase the speed of solving the problem.

Suppose you want to calculate simple interest, if principal, time and rate of interest are given . The algorithm for solving this problem is given below.

Algorithm :
1. Read principal, time and rate of interest into three locations labelled as P,T,R.
2. Calculate S.I = PTR/100 (where S.I meens Simple interest)
3. Print S.I
4. Stop

Posted Date: 8/29/2012 4:02:46 AM | Location : United States







Related Discussions:- Definition of algorithm , Assignment Help, Ask Question on Definition of algorithm , Get Answer, Expert's Help, Definition of algorithm Discussions

Write discussion on Definition of algorithm
Your posts are moderated
Related Questions
true or false-- most designs of a desktop publishing document needs to follow clear, specific rules pertaining to design

Memory : Computers store information internally as well as externally. Linked to CPU is an internal memory unit where all the instructions and data are stored. It contains the

Analogue to digital converter: In an ADC a range of input values must correspond to a unique digital word.  The type of code used depends on the system but here only binary cod

explain the steps to form a colourful card

Definition of  Algorithm  An algorithm is a design or plan of obtaining a solution to a problem. The solution is presented by listing all steps in which they are carried out.

QUESTION 1 Describe the binary search algorithm using an example of your own. QUESTION 2 (a) By showing all your workings, give a big-O estimate for f(x) = (x + 1)lo

The latest threading module comprised with Python 2.4 provides much more powerful, high-level hold for threads than the old thread module. The threading module depictions all the m

Question 1 Convert the following hexadecimal numbers to base 2 (D73)16 (A21)16 Question 2 Convert the following binary numbers to base 16 (11001011)2 (11

what is CAI? explain its pitfalls.

Code for Program to find the second highest number from a given array in Assembly Language by using NASM