







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Detail Summery about Programming Fundamentals, Algorithm and Problem Solving, Representation of Algorithms, Algorithm in natural language, Algorithm in Flowchart.
Typology: Lecture notes
1 / 13
This page cannot be seen from the preview
Don't miss anything!








Prepared By : R.Gowtham
An
ordered sequence
of
unambiguous and well-defined
instructions
that
performs some task
and
halts in finite
time
Representation of Algorithms
1.1 Use natural languages – verbose1.2 Flowchart1.3 Pseudo-Code
1.2 Algorithm in Flowchart
Prepared By : R.Gowtham
1.3 Algorithm in Pseudo Code
Algorithm
LargestNumber
for each
item
in
the list L,
do
if
the item > largest,
then
return
largest
2.6.1 Divide and conquer strategy2.6.2 Binary doubling strategy2.6.3 Dynamic programming
» Greedy Algorithm» Backtracking» Branch and Bound
Prepared By : R.Gowtham
DAC is recursive procedure which divides the problemin to sub problems, whose solution is combined to getthe solution for the original problem.
Example:1.
Binary Search
Merge Sorting
7
2
^
9
4
→→→→
2
4
7
9
7
^
2
→→→→
2
7
9
^
4
→→→→
4
9
7
→→→→
7
2
→→→→
2
9
→→→→
9
4
→→→→
4
Good solution to a large problem can some time build upfrom good or optimal solution to smaller problems.•^
Greedy Algorithm
shortest paths.
Backtracking
Branch and Bound
Prepared By : R.Gowtham
They can be easily modified if necessary.
-^
They are simple but powerful and general solution.
-^
They are documented well enough to be used by otherswho do not have detailed knowledge of their innerworking
-^
They are not dependent on being run on a particularcomputer.
-^
They are able to used as a sub procedure for otherproblems