COURSE FILE DAA( CSE) Attainment
COURSE FILE DAA( CSE) Attainment
SEMESTER : V
Planned
Actual
Pedagogy Delivery
Unit Class Topics Delivery References Remark
Lecture of Class Date
Date
No
07/09/23 Udit Agarwal, “Algorithms
Board &
Analyzing Algorithms, 08/09/23 Design & Analysis”
Marker/PPT
UNIT-1 1 Complexity of Algorithms 1 to 10
Board & 10/09/23 11/09/23 Udit Agarwal, “Algorithms
Growth of Functions, Marker/PPT Design & Analysis”
2 Performance Measurements 11 to 46
Board & 11/09/23 12/09/23 Udit Agarwal, “Algorithms
Marker/PPT Design & Analysis”
3 Sorting and Order Statistics 47 to 74
Board & 12/09/23 13/09/23 Udit Agarwal, “Algorithms
Marker/PPT Design & Analysis”
References Book:
1. Udit Agarwal, “Algorithms Design & Analysis”
2. E. Horowitz & S Sahni, "Fundamentals of Computer Algorithms".
University Syllabus
References Book:
1. Udit Agarwal, “Algorithms Design & Analysis”
2. E. Horowitz & S Sahni, "Fundamentals of Computer Algorithms".
Course Outcomes (COs)
CO2 2 3 - 2 3 - - - - - - 3 3 3 3
CO3 3 2 2 - 2 - - - - 1 - 3 3 3 3
CO4 3 3 - - - - - - 2 - - 3 3 3 3
CO5 2 - 2 3 3 - - - - - - 3 3 3 3
Averag
2.6 2.75 2.0 2.6 2.6 2.0 1.0 3 3 3 3
e
IV
Lecture I II III V VI VII VIII IX
01:1
9:40- 10:30- 11:20- 12:20- 0- 02:00- 02:50- 03:40-
Day 11:30-12:20
10:30 11:20 11:30 01:10 02:0 02:50 03:40 04:30
0
DBMS LAB-3(G1)/DAA
Monday CD MLT/AI OOSD DAA COI
LAB-2(G2)
DBMS LAB-3(G2)/DAA MLT/
LUNCH BREAK
SHORT BREAK
4. Write down the algorithm for Decrease key operation in Binomial Heap also
write its time complexity.
2. Discuss the various cases for insertion of key in red-black tree for given
sequence.
2. Find all possible subsets of w that sum to m using recursive backtracking algorithm
for it w= {5,7,10,12,15,18,20} and m=35. Draw the portion of the state-space tree.
4. Working modulo q=11, how many spurious hits does the Rabin karp
matcher in the text T= 3141592653589793, when looking for the pattern
P=26.
5. What is the application of Fast Fourier Transform (FFT)? Also write the
recursive algorithm for FFT.
Assignment 1 (CO 1) (K4, K6)
COURSE NAME (CODE): -DAA(KCS-503) PROGRAM: - B.TECH (V SEM)
GIVEN DATE: SUBMISSION DATE:
Q-2 Explain and compare best and worst time complexity of quick sort.
Q-3. Explain merge sort algorithm and sort the following {23,11,6,15,68,31,4,17}.
Derive the time complexity of merge sort.
Q-4 What do you mean by asymptotic notation ? Explain Big O, Omega & Theta
notation and draw their diagram.
Q.2 Discuss the various cases for insertion of key in red-black tree for given sequence
of key in an empty red-black tree- {15, 13, 12, 16, 19, 23, 5, 8}.
Q.3 Discuss skip list. Explain the Search operation in Skip list with suitable example
also write its algorithm.
Q-2 Explain Dijkstra’s algorithm to solve single source shortest path problem
with suitable example.
Q-3 What is the Knapsack problem? Solve 0/1 knapsack problem using greedy
programming for the following four items with their weights w = {3, 5, 9, 5}
and values P = {45, 30, 45, 10} with knapsack capacity is 16 and n=4.
Q-4 Write and explain the Kruskal algorithm to find the Minimum Spanning
Tree of a graph with suitable example.
Q-5 Write the short note on convex hull?
Assignment 4 (CO 4) (K2, K4)
COURSE NAME (CODE): -DAA(KCS-503) PROGRAM: - B.TECH (V SEM)
GIVEN DATE: SUBMISSION DATE:
Q-3 Give Floyd-Warshall algorithm to find the shortest path for all pairs of
vertices in a graph.
Q-4 Define the term sum of subsets problem. Let w= {5,7,10,12,15,18,20} and m=35.
Find all possible subsets of w that sum to m using recursive backtracking algorithm
for it. Draw the portion of the state-space tree.
Q-5 Explain the method of finding Hamiltonian cycles in a graph using backtracking
method with suitable example.
Assignment 5 (CO 5) (K2, K3)
COURSE NAME (CODE): -DAA(KCS-503) PROGRAM: - B.TECH (V SEM)
GIVEN DATE: SUBMISSION DATE:
Q-3 What is the application of Fast Fourier Transform (FFT)? Also write the
recursive algorithm for FFT.
Q-4 Write Rabin Karp string matching algorithm. Working
modulo q=11, how many spurious hits does the Rabin karp
matcher in the text T= 3141592653589793, when looking
for the pattern P=26.
Q-5 Discuss the problem classes P, NP and NP –complete. with class relationship.
Previous Years University Papers
B.TECH. (SEM V)
THEORY EXAMINATION 2022-23
DESIGN & ANALYSIS OF ALGORITHM
Time: 3 Hours Total Marks: 100
Note: Attempt all Sections. If you require any missing data, then choose suitably.
SECTION A
SECTION B
B. TECH.
(SEM V) THEORY EXAMINATION 2021-22 DESIGN
AND ANALYSIS OF ALGORITHM
Time: 3 Hours Total Marks: 100
Note: 1. Attempt all Sections. If require any missing data, then choose suitably.
2. Any special paper specific instruction.
SECTION A
SECTION B
2. Attempt any three of the following: 10 x 3 = 30
a. Solve the recurrence.
i) T (n) =3T (n/4) + cn2 using recursion tree method. ii) T (n) = n
+ 2T (n/2) using Iteration method. (Given T(1)=1)
b. What is Binomial Heap? Write down the algorithm for Decrease key operation in
Binomial Heap also write its time complexity.
c. Write and explain the Kruskal algorithm to find the Minimum Spanning Tree of a
graph with suitable example.
d. What is N queens’ problem? Draw a state space tree for 4 queens problem using
backtracking.
e. Write Rabin Karp string matching algorithm. Working modulo q=11, how many
spurious hits does the Rabin karp matcher in the text T= 3141592653589793, when
looking for the pattern P=26.
SECTION C
3. Attempt any one part of the following: 10 x 1 = 10
(a) Write Merge sort algorithm and sort the following sequence {23, 11, 5, 15, 68, 31, 4,
17} using merge sort.
(b) What do you understand by stable and unstable sorting? Sort the following sequence
{25, 57, 48, 36, 12, 91, 86, 32} using heap sort.
4. Attempt any one part of the following: 10 x 1 = 10
(a) Discuss the various cases for insertion of key in red-black tree for given sequence of
key in an empty red-black tree- {15, 13, 12, 16, 19, 23, 5, 8}.
(b) What is skip list? Explain the Search operation in Skip list with suitable example
also write its algorithm.
0 2 3 1 1
0 0 0 1
1 0 1 4 2
5 6
3 5 0 2 4
1 6 1 0 3
9 8
(b) Explain the method of finding Hamiltonian cycles in a graph using
backtracking method with suitable 1 4 7 1 0 example
6 6
SECTION C
3. Attempt any one part of the following:
Q no. Question Marks CO
a. Solve the following recurrence relation: 10
i. T (n) = T (n-1) + n4
ii. T (n) = T (n/4) + T (n/2) + n2
b. Write an algorithm for insertion sort. Find the time complexity of 10
Insertion sort in all cases.
CO1 To understand the need for machine learning for various problem solving
To understand a wide variety of learning algorithms and how to evaluate
CO2
models generated from data
CO3 To understand the latest trends in machine learning
To design appropriate machine learning algorithms and apply the
CO4
algorithms to a real-world problem
To optimize the models learned and report on the expected accuracy that
CO5
can be achieved by applying the models
SECTION-A
Q.1. Attempt all parts: (2×5=10)
SECTION-B
NOTE: Attempt any three parts (3x5=15)
Q.2. What is heap sort write its algorithm? Apply heap sort algorithm for (CO1)
sorting 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.
Q.3. QSolve the recurrence relation using Master Theorem. (CO1)
T(n)=3T(n1/3) + log3n
Q.4. Sort the elements of the given array A using shell sort algorithm: (CO1)
A= [20, 35, 18, 8, 14, 41, 3, 39]
Q.5. Solve the following recurrences: (CO1)
(i) T(n)=T(n/2) +T(n/4)+T(n/8) +n
T(n)=T(√n) + O (lg n)
SECTION-C
NOTE: Attempt any one parts: (1x5=5)
Q.6. Explain Merge sort algorithm and sort the following sequence {23, 11, 5, 15, (CO1)
68,31, 4, 17} using merge sort.
SECTION-A
a. Explain and compare best and worst time complexity of Quick Sort. CO1
b. Elaborate asymptotic notation in brief. CO1
c. Explain left rotation in RB tree. CO2
d. Write down the properties of Fibonacci Heap. CO2
e. Explain Greedy programming in brief. CO3
f. Write the short note on convex hull? CO3
g. Explain Backtracking with example. CO4
h. Define Graph Coloring. CO4
i. Define NP and NP hard. CO5
j Define fast Fourier Transform (FFM). CO5
SECTION-B
a. Explain Merge sort algorithm and sort the following sequence CO1
{23, 11, 5, 15, 68,31, 4, 17} using merge sort.
b. What do you understand by stable and unstable sorting? Sort the CO1
following sequence {25, 57, 48, 36, 12, 91, 86, 32} using heap sort.
Discuss skip list. Explain the Search operation in Skip list with suitable
a. example also write its algorithm. CO2
b. Discuss the various cases for insertion of key in red-black tree for given CO2
sequence of key in an empty red-black tree- {15, 13, 12, 16, 19, 23, 5,
8}.
a. Explain Kruskal’s Algorithm and Find MST of the Graph. Also write its CO3
Time-Complexity
b Find the shortest path in the below graph from the source vertex 1 to all CO3
. other vertices by using Dijkstra’s algorithm.
6. Attempt any one 10x1=10
CO2 2 3 - 2 3 - - - - - - 3 3 3 3
CO3 3 2 2 - 2 - - - - 1 - 3 3 3 3
CO4 3 3 - - - - - - 2 - - 3 3 3 3
CO5 2 - 2 3 3 - - - - - - 3 3 3 3
Averag
2.6 2.75 2.0 2.6 2.6 2.0 1.0 3 3 3 3
e
Level -3 90% above students obtaining 70% marks(70 Marks out of 100)
End Semester Level -1 40 to 49% students obtaining 33% marks(33Marks out of 100)
Final Exams
Level-2 50 to 59% students obtaining 33% marks(33Marks out of 100)
Computation of Director Attainment – 20% of Internal Sessional Marks + 80% of End semester Final
Exam Marks.
Computation of Overall attainment – 90% of Direct Attainment + 10% of Indirect Attainment
Course PO-1 PO-2 PO-3 PO-4 PO-5 PO-6 PO-7 PO-8 PO-9 PO- PO- PO- Overall
10 11 12
POs Attainment
Level of POs
PO-1 (2.6X2.56)/3 2.21
PO-2 (2.75X2.56)/3 2.34
PO-3 (2.0X2.56)/3 1.70
PO-4 (2.6X2.56)/3 2.21
PO-5 (2.6X2.56)/3 2.21
PO-9 (2.0X2.56)/3 1.70
PO-10 (1.0X2.56)/3 0.85
PO-12 (3X2.56)/3 2.56