Presentation (2) - 1
Presentation (2) - 1
TOPIC :ALGORITHM
(CONTINUOUS ASSESSMENT -1)
TUHINPAL_11000223053
What is Algorithms
EXAMPLE
Definition of Algorithm
Algorithm to find the largest of three number
An algorithm is a set of commands that must be
Stape 1 :Rede the three number as a b c
followed for a computer to perform calculations
or other problem-solving operations . According State 2 : if (a >b) and (a>c)Then a is largest, go to stape 4
to its formal definition, an algorithm is a finite
set of instructions carried out in a specific order Stape 3 : if (b>a) and (b>c) then b is largest Else c is largest
to perform a particular task.
Stape 4: stope
TUHINPAL_11000223053
3
Use of Algorithm
1.Manufacturing: Algorithms are used to optimize
production processes and supply chain
management, reducing waste and increasing
efficiency.
to make an in-depth v
Sorting Algorithm
+----------------------+
| So lution correct? |
investigation possible. However, +----------------------+
/ \
because of their high temporal yes no
Hashing Algorithm / \
+----------------------------+
| Start |
The process in which a function calls
Brute Force Algorithm +----------------------------+
itself directly or indirectly is called |
v
recursion and the corresponding +----------------------------+
Recursive Algorithm function is called a recursive function.
| Step 1: Define a base case |
| Identify the simplest case |
+----------------------------+
Using a recursive algorithm, certain |
+-----------------------+
| Start |
Brute Force Algorithm Backtracking is a problem-solving +-----------------------+
algorithmic technique that involves |
v
Randomized Algorithm
TUHINPAL_11000223053
What Searching Algorithms ? 9
Types of Algorithms
+-----------------------------+
| Start |
Brute Force Algorithm Searching algorithms are +-----------------------------+
|
essential tools in computer v
+-----------------------------+
Recursive Algorithm science used to locate | Initialize Search Parameters|
specific items within a +-----------------------------+
|
collection of data. These v
Backtracking Algorithm algorithms are designed to
+-----------------------------+
| Is the List Empty? |
+-----------------------------+
efficiently navigate through | Yes | No |
Searching Algorithm data structures to find the +-----------+-----------------+
| |
desired information, making v v
+-----------------------------+
Sorting Algorithm them fundamental in various | End |
+-----------------------------+
applications such as |
TUHINPAL_11000223053
What is Divide and Conquer Algorithm ? 12
Types of Algorithms
+---------------------------+
| Start |
+---------------------------+
|
v
+---------------------------+
Brute Force Algorithm | Divide the Problem |
Divide and Conquer +---------------------------+
Algorithm is a problem- |
v
Recursive Algorithm solving technique used to +---------------------------+
| Is the Subproblem Size |
solve problems by dividing | Small Enough to Solve |
| Directly? |
Backtracking Algorithm the main problem into +---------------------------+
subproblems, solving them | Yes | No |
+---------------+-----------+
Searching Algorithm
|
|
v
TUHINPAL_11000223053
sparse matrix
17
TUHINPAL_11000223053
Single number
18
TUHINPAL_11000223053
Single number
19
TUHINPAL_11000223053
20
Conclusion
we extend our heartfelt
gratitude to Dennis Ritchie
for his creation of the C
programming language. His
pioneering work has
profoundly shaped modern
computing, inspiring
countless programmers
and innovations. Thank you,
Dennis Ritchie, for your
lasting impact on the world
of technology.
TUHINPAL_11000223053