


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Midterm paper DSA for 100 marks
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!
1. Time complexity analysis Learning objectives & assessment examples : - Given an algorithm, no matter whether the algorithm is recursive or not, we are able to define its growth rate function. [Measure frequency or number of iterations associated with input instances] - Compare the asymptotic behaviors of functions or describe the relative merits of worst-, average-, and best-case analysis Given two functions of input instance size N, we are able to specify their asymptotic order. The asymptotic behavior of a function f(N) refers to the growth of f(N) as N gets large. We are interested in how slow the program will be on large inputs. A good rule of thumb is: the slower the asymptotic growth rate, the better the algorithm. - Given a recurrence, we are able to analyze its time complexity through different methods: - Master method - Substitution and proof - Recursive tree
Example:
Learning objectives :