Professional Documents
Culture Documents
(2016 -2020)
COURSE CREDIT : 4
THEORY PRESENTATION/
LECTURE PRACTICAL PRACTICAL TOTAL
ICE ECE IA DEMONSTRATION
3 2 30 40 30 50 -- 150
PRE-REQUISITE:
1. CS 201 Data Structure & Files
2. CS 211 Discrete Structure & Graph Theory
COURSE OBJECTIVES:
1. CS347.CEO.1: To be able to design an efficient algorithm for any specified problem.
2. CS347.CEO.2: To be able to carry out the analysis of various algorithms in terms of its computational
Complexity.
3. CS347.CEO.3: To identify appropriate algorithmic design strategies to optimize the performance of a
given problem.
4.CS347.CEO.4: To distinguish between P and NP class of problems.
COURSE OUTCOMES:
Students successfully completing the course will be able to
1. CS347.CO.1: Make use of the Five problem solving strategy to design an algorithm. (L3)
Format No. : MITAOE/ACAD/ 002 Rev. No. : 0.0 Rev. Date : 01/12/2017
2. CS347.CO.2 Analyze the given algorithm in terms of its computational complexity. (L4)
THEORY:
Format No. : MITAOE/ACAD/ 002 Rev. No. : 0.0 Rev. Date : 01/12/2017
Self-study: Coin changing problem
Contents:
Classifying Problems, Nondeterministic & Deterministic problems, Tractable & Non Tractable problems,
Reductions, Cook's Theorem, NP Complete problem, NP Hard problem,3SAT Problem Approximation
algorithm: vertex cover problem
Self Study: Approximation algorithm for TSP
Further reading: Clique Decision problem.
Unit VI Advanced Algorithms and Applications 8 Hours
App/System/Case study: plagiarism detector, spell checker, web search engines
Contents:
Randomized algorithms : Monte Carlo and Las Vegas algorithm, String matching algorithm: KMP, Boyer
Moore Algorithm, Robin Karp Algorithm, Number theoretic algorithm: : the GCD – Modular Arithmetic –
The Chinese Remainder Theorem.
PRACTICAL:
Format No. : MITAOE/ACAD/ 002 Rev. No. : 0.0 Rev. Date : 01/12/2017
Design and implement Binary search algorithm using Divide and Conquer method for a given input.
Determine the time required to search an element. Determine the time required to search an element for
large values of n. Compare the time taken by Binary Search with the time taken by linear search. Modify
the binary search by dividing it using a random number in the appropriate range. Show how this
Modified algorithm compares with the original algorithm in terms of Performance.
Practical No. 2 4 Hours
Design and implement Quick Sort algorithm using Divide and Conquer method for a given input. Use
Median of medians algorithm to find median of the list. Determine the time required to sort the list for
large values of n. (n=10^5 onwards)
Practical No. 3 4 Hours
Assume that, There are N Person and each person needs exactly one cab. For each person you are
given the start time and end time (both inclusive) during which that person will travel. Find the
Minimum number of cans required. Which Strategy will be best suitable to solve this problem.
Practical No. 4 4 Hours
Suppose we have a set of coins of denominations Cn-1, Cn-2,……C0 for some C>1. Coins of each
denominations are available unlimited quantity. The problem is to make up an exact amount A
using a minimum total number of coins. Device a solution for this problem and analyze the time
complexity of the algorithm.
Practical No. 5 4 Hours
Design & Implement Prims Algorithm using Greedy Approach. Calculate the time complexity of the
algorithm.
Practical No. 8
Design and implement a solution for a problem of placing eight chess queens on an 8×8 chessboard so
that no two queens threaten each other. Thus, a solution requires that no two queens share the same row,
column, or diagonal.
TEXT BOOK:
Format No. : MITAOE/ACAD/ 002 Rev. No. : 0.0 Rev. Date : 01/12/2017
1. E.Horowitz , S. Sahni, S. Rajasekaran “Fundamentals of Computer Algorithms” , 2nd Edition,
Universities Press pvt Ltd 2008, ISBN 9788173716126.
REFERENCES:
1. V. Aho , J.D. Ullman, "Design and Analysis of Computer Algorithms"1st Edition , Pearson
Education 2002, ISBN 8131702057 PHI Learning Pvt Ltd, 2011, ISBN 978-81-203-40007-7.
2. Brassard G. and Bratley P.,” Algorithms, Theory and Practices”, PHI. ISBN 0-13-023243-2.
Format No. : MITAOE/ACAD/ 002 Rev. No. : 0.0 Rev. Date : 01/12/2017