I MSC Algorithm
I MSC Algorithm
algorithm
Introduction
Notion of
Algorithm
Algorithms are a fundamental part of computer science, enabling
the efficient resolution of intricate problems. They provide a step-
by-step approach to solving a problem, often involving repetitive
calculations and decision-making.
Fundamentals of
algorithmic problem
solving
1 Problem Definition 2 Algorithm Design
Clearly define the problem, Choose the appropriate data
including the inputs, desired structures and algorithmic
outputs, and any techniques to solve the
constraints. problem.
How the runtime of an algorithm scales with the input The amount of memory an algorithm requires to execute.
size.
Analysis framework
1 Step 1: Identify Key Operations
Determine the operations that contribute
significantly to the algorithm's runtime.
Step 2: Looping
Iterate through each element of the result matrix,
performing the dot product of the corresponding rows and
columns of the input matrices.
Step 3: Result
The resulting matrix C represents the product of the two
input matrices.
Mathematical analysis of
recursive algorithms
1 Base Case
If there is only one disk, move it directly from the source peg to the
destination peg.
2 Recursive Step
Move the top n-1 disks from the source peg to the auxiliary peg using
the destination peg as the auxiliary.
Expansion Termination
Add the selected edge and its Continue until all vertices are
corresponding vertex to the MST. included in the MST.
Divide and conquer
Technique Multiplication of
large integers Strassen’s
matrix multiplication
3 Combine Solutions
Combine the solutions to the subproblems to obtain the solution to the
original problem.