AmirulLaskar_CA2_23600123002_compressed
AmirulLaskar_CA2_23600123002_compressed
AmirulLaskar_CA2_23600123002_compressed
Report on
Idea of Algorithm
Department : CSE
Semester : 2nd
Abstract:
Intelligence is one of the key characteristics which differentiate a human being from other
living creatures on the earth. Basic intelligence covers day to day problem solving and
making strategies to handle different situations which keep arising in day to day life. One
person goes Bank to withdraw money. After knowing the balance in his account, he/she
decides to withdraw the entire amount from his account but he/she has to leave
minimumbalance in his account. Here deciding about how much amount he/she may with
draw from the account is one of the examples of the basic intelligence. During the process
of solving any problem, one tries to find the necessary steps to be taken in a sequence.
Introduction:
Algorithm can be defined as: A formula or set of steps for solving a particular problem. To
be an algorithm, a set of rules must be unambiguous and have a clear stopping point.
There may be more than one way to solve a problem, so there may be more than one
getting desired output from a given input.” Then we can say that 1.Getting specified
output is essential after algorithm is executed. 2. One will get output only if algorithm stops
after finite time. 3.Activities in an algorithm to be clearly defined in other words for it to be
unambiguous. Before writing an algorithm for a problem, one should find out what is/are
the inputs to the algorithm and what is/are expected output after running the algorithm.
Example: Write an algorithm to read two numbers and find their sum.Inputs to the
Algorithm:
Step1: Start
Step6: End
Description:
Algorithms are step-by-step procedures designed to solve specific problems and perform
tasks efficiently in the realm of computer science and mathematics. These powerful sets
of instructions form the backbone of modern technology and govern everything from web
● Input: Algorithms take input data, which can be in various formats, such as numbers,
text, or images.
● Processing: The algorithm processes the input data through a series of logical and
● Output: After the processing is complete, the algorithm produces an output, which
Scalability
It aids in your understanding of scalability. When you have a sizable real-world problem,
Performance
The real world is challenging to break down into smaller steps. If a problem can be easily
Types of Algorithms:
possible solutions, suitable for small problem instances but may become impractical for
subproblems and repeatedly applies itself to solve them until reaching a base case,
7. Hashing Algorithm: Converts data into a fixed-size hash value, enabling rapid data
access and retrieval in hash tables, commonly used in databases and password storage.
8. Divide and Conquer Algorithm: Breaks a complex problem into smaller subproblems,
solves them independently, and then combines their solutions to address the original
problem effectively.
9. Greedy Algorithm: Makes locally optimal choices at each step in the hope of finding
a global optimum, useful for optimization problems but may not always lead to the best
solution.
10. Dynamic Programming Algorithm: Stores and reuses intermediate results to avoid
11. Randomized Algorithm: Utilizes randomness in its steps to achieve a solution, often
Conclusion:
The world of algorithms is continually evolving, with ongoing research and innovations
leading to the development of more efficient and specialized algorithms. From everyday
Reference:
1. https://en.m.wikipedia.org/wiki/Algorithm
2. https://www.simplilearn.com/tutorials/data-structure-tutorial/what-is-an-algorithm#:~:
text=An%20algorithm%20is%20a%20set,to%20perform%20a%20particular%20task.
3. https://www.google.com/amp/s/www.geeksforgeeks.org/introduction-to-algorithms/a
mp/
4. https://www.britannica.com/science/algorithm