Professional Documents
Culture Documents
Student Course Handout_DAA-24
Student Course Handout_DAA-24
Mapping Strength
Text Books:
Sl.# Author & Edition Publisher
Introduction to the Design and Analysis of Algorithms, Anany Levitin, Third
1. Pearson, 2011.
Edition.
Introduction to Algorithms, Thomas H Cormen, Charles E Leiserson, Ronald
2. MIT Press, 2009
L Rivest, Clifford Stein, Third Edition.
Reference Books:
Sl.# Author & Edition Publisher
Fundamentals of Computer Algorithms, Ellis Horowitz, Satraj Sahni and University Press Pvt. Ltd,
1.
Rajasekharam,2nd Edition. 2009.
Sri Nandi Publications,
2. Analysis and design of Algorithms, Padma Reddy,
2009.
Self-Study Component:
Reference Books: Introduction to Algorithms, Thomas H. Cormen, Charles E. Leiserson Ronald L. Rivest
Clifford Stein, 4th edition, MIT Press.
Unit Prerequisite Topic Reference link
[ Studied in syllabus ] (Self-Study)
Unit – 1 Analysis of Recursive Solving recurrences https://web.stanford.edu/class/archive
Algorithms /cs/cs161/cs161.1168/lecture3.pdf
Unit – 2 Divide-And- Probabilistic Analysis & https://web.stanford.edu/class/archiv
Conquer Randomized Algorithms e/cs/cs161/cs161.1168/lecture6.pdf
Unit – 3 Rod cutting problem https://web.stanford.edu/class/archive/
Dynamic Programming
cs/cs161/cs161.1168/lecture12.pdf
Unit – 4 Greedy Method Johnson’s algorithm for sparse https://www.geeksforgeeks.org/johnso
graphs ns-algorithm/
Unit - 5 Approximation The set-covering problem https://math.mit.edu/~goemans/18434
Algorithms S06/setcover-tamara.pdf
Course Outcomes: At the end of the laboratory course, student will be able to:
CO1 apply and implement major algorithm design techniques to solve problems
CO2 analyze time complexity of those problems.
CO3 demonstrate familiarity with major algorithms and the related data structures.
Text Books:
Sl.# Author & Edition Publisher
Introduction to the Design and Analysis of Algorithms, Anany Levitin, Third
1. Pearson, 2011.
Edition.
2. Ellis Horowitz, Sartaj Sahni, Sanguthevar Rajasekaran: Fundamentals of
2. Universities Press
Computer Algorithms, 2nd Edition.
Reference Books:
Sl.# Author & Edition Publisher
Thomas H. Cormen, Charles E. Leiserson, Ronal L. Rivest, Clifford Stein:
1. PHI, 2010
Introduction to Algorithms, 3rd Edition.
Sri Nandi Publications,
2. Analysis and design of Algorithms, Padma Reddy
2009.
3 A city municipal corporation has to dig the sewerage line connecting all the points as shown and marked A to
F in Figure. The distances between the points are also mentioned. Using Kruskal's Algorithm and showing all
the intermediate steps find out the best possible connectivity layout for the sewerage line.
4 Popular Engineering Text Book publisher TATA MCGRAW HILL making the promotion of the new text
book. The Head of the TATA MCGRAW HILL A publisher instructs the salesperson to go to TATA
MCGRAW HILL head office collect five text books and travel to all cities and do marketing for the book and
come back to head office and report. Suggest the method to find at least one path to complete his tour. Hint:
Hamiltonian Cycles.
5 Popular Technical University in Bangalore gives the advertisement for the post of FOUR Visiting professors
four subjects. The rule of the university is each professor must get one subject to teach. It is also required the
each professor has to quote required remuneration for the subject. The details are given in below table. You
being the expert problem solver provide the solution. Hint: Assignment problem.
6 The BBMP has decided to put toll on the roads in the city to reduce traffic congestion with different strategy.
The positive weight on the edge indicates the money is deducted from the traveler wallet and negative weight
on the edge indicates the money is credited to the traveler wallet. You are required to find the path so that the
traveler reaches the destination with minimum toll from source “1”. Hint: Bellman Ford Algorithm.
7 Navigation systems such as the Google Maps, which can give directions to reach from one place to another,
take your location to be the source node and your destination as the destination node on the graph. Graph
traversal methods are used to find if the destination entered can be reachable or not. Hint: Graph Traversal
Algorithm.
Hint: Any city can be represented as a graph taking landmarks as nodes and roads as edges. Using an
appropriate technique check if your desired destination is reachable or not considering
8 Spam (Unsolicited and unwanted emails) is annoying, no doubt, but it can also be dangerous. Malware and
phishing are hugely profitable for scammers and can be costly for mailbox providers’ customers, as well as
the mailbox providers who face intense market competition.
To avoid such problem mailbox providers’ use Spam filters. All spam filters use the concept of string matching
to identify and discard the spam.
Considering the above scenario use an appropriate technique to classify the mails if it’s a spam or not when
there are patterns like “free,” “money,” “help” and “prize” in the mail content. Hint: String Matching
Algorithm.
9 DNA-based identity testing is extensively used in the forensic field. DNA sequences can be viewed as strings
of A, C, G, and T characters, which represent nucleotides. To compare and analyze two such strings, the
longest subsequence is necessary. With an appropriate approach print the longest subsequence for two DNA
sequences. Hint: Longest common subsequence strategy.
10 Laying out electrical networks to be carried in a city that minimizes the total cost of the wiring. Choose
appropriate design strategy to connect all the houses so that wiring cost is minimum. Given: Layout input as a
graph with the distances. Nodes 1,2,3,4 and 5 represent homes and the edges with cost gives the wiring cost
between the homes. Hint: Minimum Spanning Tree Algorithm.
11 In the Google map, the navigation system always shows the shortest path to travel from source to destination.
State can be represented as a weighted graph by taking districts as nodes and roads as the edges that connects
the districts. Hint: Dijkstra’s algorithms
Considering the above scenario, apply single source shortest path method to find the shortest distance between
two districts for the graph.
12 In an Education institution, there are faculties with varied number of teaching experience. For an upcoming
semester Computer Science department requires a team of faculty with combined experience of 9 years to
form a syllabus for Data Science course. Hint: Sum of Subset problem.
Consider the table below with information about the teaching experience of Computer Science faculty. Apply
an appropriate backtracking technique to solve the above scenario.
Sl.No Faculty Teaching Experience
1 Mr. John 1 yrs
2 Mr. Jacob 2 yrs
3 Mr. Dave 3 yrs
4 Mrs. Emily 6 yrs
5 Mrs. Ava 7 yrs
6 Ms. Jessica 8 yrs