You are on page 1of 15

Application of Computer

Algorithm in Real Life


Daffodil International
University

Submitted by: Submitter to:

M R Khan Dipu Mr. SayedAssaduzzaman


191-35-393 Lecturer
PC-A Department of SWE
SE214 Daffodil International
University
What is Algorithm?

 A set of instructions of how to carry out a process. An


algorithm lists the steps that must be followed to
complete the process and to reach the solution.
 Each instructions should be very simple so that a
computer can understand exactly what it needs to do.
 A group of rules to obtain the expected output from the
given input.
Why do we need algorithm
We face many problems in our real life. We try to
solve these problems using our ideas. If we don’t
know how to solve problem, we try to solve this
problem randomly and that time it turns into more
difficult than previous one. But if we try to solve
this problem step by step, it will be easier to solve
this problem. This step by step process of solving
this problem is algorithm. So to save our valuable
time and solve any problem easily, we use
algorithm.
Properties of Algorithm
 Input: An algorithm has input values from a specified set.
 Output: From each set of input values an algorithm produces
output values from a specified set. The output values are the
solution to the problem.
 Definiteness: The steps of an algorithm must be defined
precisely.
 Correctness: An algorithm should produce the correct output
values for each set of input values.
 Finiteness: An algorithm should produce the desired output
after a finite (but perhaps large) number of steps for any input
in the set.
 Effectiveness: It must be possible to perform each step of an
algorithm exactly and in a finite amount of time.
 Generality: The procedure should be applicable for all problems
of the desired form, not just for a particular set of input values.
Example of Algorithm
Sum of first 50 odd numbers:
Algorithm:
1. Start
2. Sum=0,n=1
3. Sum=Sum + n
4. n=n+2
5. Repeat steps 4 and 5 until n<=99
6. Print Sum
7. Stop
Use of Algorithm in real life
Algorithm is being used in our daily. We are going through
algorithm from the morning to night. We wake up in the morning
and think what we will do in the whole day and we do so. Here
the steps those we thought to do in the whole day are
algorithms. Again from the start of life until death we grow up
step by step. School life, college life, varsity life, job life etc are
some of steps we spend from our birth to death. This is our
common life algorithms. Except these, to wash out teeth we take
toothbrush, toothpaste, put some toothpaste on toothbrush,
then wet the brush and then we wash out teeth. This step by step
process is algorithm. As we know any step by step process to
solve any problem is known as algorithm, so if we notice in our
daily works we will see that we are going through algorithm
every moment of life.
Algorithm in Programming
You can't write programs
without algorithms. Need to
print all of the strings in an
array? You loop through
them, that's an algorithm.
Need to count how many
times "-" occurs in a string?
You look at each letter of the
string and increment an
integer by one whenever you
find a dash, boom, you just
used an algorithm.
Algorithms can be simple or
complex but if you're writing
computer programs you're
using algorithms.
Algorithm in Robotics
The use of algorithm
in the field of robotics
is quite big. Actually,
genetic algorithm is
being used to create
learning robots which
will behave as a
human and will do
tasks like cooking our
meal, do our laundry
etc.
Algorithm in Engineering Design
Engineering design has
relied heavily on
computer modeling and
simulation to make
design cycle process fast
and economical.
Algorithm specially
genetic algorithm has
been used to optimize
and provide a robust
solution.
Travelling Salesman Problem

This is a famous
problem and has
been efficiently
adopted by many
sales-based
companies as it is
time saving and
economical. This
is also achieved
using algorithm.
Algorithm in gaming

To solve a Rubik’s Cube


we have go through
millions of procedures.
Each of these
procedures is an
algorithm.
Algorithm in Nature
Computer scientists have
designed algorithms to
process and analyze
biological data, and likewise,
biologists have discovered
several operating principles
that have inspired new
optimization methods.
Recently, these two
directions have been
converging based on the view
that biological processes are
inherently algorithms that
nature has designed to solve
computational problems.
The Future of Algorithm

1. Artificial Intelligence
2. Big Data
3. Machine Learning
4. Robotics
5. Deep Learning
Thank You

You might also like