You are on page 1of 2

University of Management

And Technology

Analysis of Algorithms
Assignment No: 2 Instructor: Mr. Mian Ahmed Shafiq
Session: Fall 2023 Due Date: 29th December, 2023
Section: V3 Total marks: 25

Question CLO Domian/BT Level Total Marks

1-2 2 C3 25

Advice and Submission Guidelines for Assignment

• Make sure that you read and understand each and every instruction. If you have any
questions or comments you are encouraged to discuss (only) with your colleagues and
instructor.
• In case of hand written assignment, take pictures and convert them into PDF format.
Upload PDF file on the LMS and submit the hand written form to class teacher.
• All the submitted evaluation instruments (quizzes, assignments, class work, exams, and the
project) will be checked for plagiarism.
• Later Submission and Plagiarism will be dealt as per university Policy
• Start early otherwise you will struggle with the assignment.

Note: Keep all your files. It will be required at any time of evaluation.

1
University of Management
And Technology
Question 1 [CLO 2] [10]
Solve the following recurrences with back substitution method.
i. T(n) = 2T(n-2) + 2
ii. T(n) = 4T(n/4) + n/2
iii. T(n) = T(n/2) + 2

Question 2 [CLO 2] [15]


Solve the following recurrences with Master method
i.
T (n) = 3T (n/2) + n2
ii. T (n) = 2T (n/2) + nn
iii. T (n) = 2T (n/2) + nlogn
iv. T (n) = 3T (n/3) + √n
v. T (n) = 7T (n/3) + n2
vi. T (n) = 6T (n/3) + n2log n

Instructions:
i. Hard copy of assignment is required (Hand Written).
ii. Also submit the soft copy on LMS.
iii. Due Date is 29th December, 2023 Wednesday till class time.

You might also like