ct-1-algorithm-design-and-analysis-ct1
ct-1-algorithm-design-and-analysis-ct1
Register No.
PURPOSE To acquire the ability of applying various algorithmic concepts for all domains and efficient interpretation of
real life problems.
Instructional Objectives
IO–No. Instructional Objective Student Outcome
a An ability to apply knowledge of computing, mathematics and basic sciences appropriate to the
discipline
a1 Combines mathematical and /or scientific principles to formulate models of core application
domain
a2 Translates academic theory into engineering applications and accepts limitations of computing,
mathematics and /or basic sciences appropriate to the discipline
1. 2 a2 4
2. 1 a1 4
3. 1 a1 4
4. 1 a1 4
5. 2 a2 4
6. 1 a1 15
7. 2 a2 15
TOTAL
Faculty Name:
Signature:
Register No.
PART B
Answer any TWO questions 2*15=30
Sl. Question Course Marks
No Outcome
6. a1
i. Derive the recurrence tree for T(n)=3T(n/4)+cn 2 and
find time complexity in "Big-oh" notation for the 10
given recurrence relation.
ii.
Apply Masters theorem to solve the following
5
equations:
a) T(n) = 9T(n/3)+n
b) T(n) =2 T(n/2)+n
OR
Write a recursive program to calculate sum of n
numbers. Find the recurrence relation for the same 15
and solve it using substitution method.
Register No.
PART B
Answer any TWO questions 2*15=30
Sl. Question Course Marks
No Outcome
6.i. Derive the recurrence tree for T(n)=T(n/3)+T(2n/3)+n and a1 15
find time complexity in "Big-oh" notation for the given
recurrence relation.
ii. Apply Masters theorem to solve the following equations:
a) T(n) = 4T(n/2)+n2
b) T(n) =16 T(n/4)+n
OR
Write a recursive program to calculate Fibonacci series.
Find the recurrence relation for the same and solve it using
substitution method.
Register No.
5 a2 4
Solve X using strassen's matrix
multiplication.
PART B
Answer any TWO questions 2*15=30
Sl. Question Course Marks
No Outcome
6.i. Derive the recurrence tree for T(n)=2T(n/2)+n2 and find a1 15
time complexity in "Big-oh" notation for the given
recurrence relation.
ii. Apply Masters theorem to solve the following equations:
a) T(n) = T(2n/3)+1
b) T(n) =3T(n/4)+n log n
OR
Write a recursive program to convert decimal number to
binary. Find the recurrence relation for the same and solve
it using substitution method.
Register No.
5 a2 4
Solve X using strassen's matrix
multiplication
PART B
Answer any TWO questions 2*15=30
Sl. Question Course Marks
No Outcome
6. Derive the recurrence tree for T(n)=4T(n/2)+cn and a1 15
provide a tight asymptotic bound on its solution and
verify by substitution method.
OR
Write a recursive program to calculate Fibonacci
series. Find the recurrence relation for the same and
solve it using substitution method.
7 Write an algorithm to find out the closest pair points a2 15
using divide and conquer method. Derive its time
complexity.
OR
Analyze the best, worst and average time
complexity of merge sort. Also explain the merge
sort algorithm.