You are on page 1of 20

What is Algorithm?

Algorithm algr () m/ Noun Noun: algorithm; plural noun: algorithms

a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.

"a basic algorithm for Multiplication"

Origin

late 17th cent. (denoting the Arabic or decimal notation of numbers): variant (influenced by Greek arithmos number) of Middle English algorism, via Old French from medieval Latin algorismus . The Arabic source, al-wrizm the man of wrizm (now Khiva), was a name given to the 9th-cent. mathematician Ab Jafar Muhammad ibn Msa, author of widely translated works on algebra and arithmetic

Why we need the techniques for algorithm design and algorithm analysis?

So you want to be a computer scientist?

Is your goal to be a mundane programmer?

Or a Great Leader and thinker?

Original Thinking
Boss Assigns a Task

# Given todays prices of Chicken, bread, Ketchup # Given constraints on what constitute a ZINGER # Makes the cheapest ZINGER!

Everyday Industry ask these questions..

Case 1 - Your Answer


# Um? Tell me what to code.

With more suffocated software engineering job market, the demand for mundane programmer will diminish.

Case 2 - Your Answer


# I learned this Algorithm that will work

Soon all known Algorithms will be available to Libraries

Case 3 - Your Answer


# I can develop a new Algorithm for you.

Great thinkers will always be needed.

The future belongs to the computer scientist who:


# understands the principles and techniques needed to solve vast array of unfamiliar problems that arise in a rapidly changing field..

Course Content
A list of algorithms. Learn their code. Trace them until you are convinced that they work. Implement them.

* We should teach people how to catch fish


themselves, not just give them a fish or two

Advantages of Algorithm
It is a step-by-step rep. of a solution to a given problem ,which is very easy to understand it has got a definite procedure. it easy to first develop an algorithm, &then convert it into a flowchart & then into a computer program. it is independent of programming language. it is easy to debug as every step is got its own logical sequence.

Dis-advantages of Algorithm
it is time consuming & cumbersome as an algorithm is developed first which is converted into flowchart &then into a computer program.

Difference b/w Flow Chart and Algorithm


Flow chart is very important tool for developing algorithm and program . It is pictorial representation of step by step solution of a problem. Programmer often uses it as a program planning tool for visually organizing step necessary to solve a problem. It uses boxes of different shapes that denotes different type of instruction. While making a flow chart a programmer need not to pay attention on the elements of he programming language ,he has to pay attention to the logic of solution to the problem

wheres,,, the term algorithm refers to the logic. it is step by step description how to arrive at the solution to the problem. algorithm is define as sequence of instruction that when executed in the specified sequence the desired results are obtained .

The set of rules that define how a particular problem can be solved in finite number of steps is known as algorithm.
A good algorithm help us to create a good program

You might also like