Algorithm Analysis and Design

subject Type Homework Help
subject Pages 7
subject Words 837
subject School N/A
subject Course N/A

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
Algorithm Analysis and Design
First Exam, Spring 2018/2019
March 17th 2019
Instructor: Dr. Khaled W. Mahmoud
Student Name: ________________________
Student Number: ______________________
Major: _______________________________
Question
Points
Score
1
25
2
35
3
40
Total
100
page-pf2
Question 1: Asymptotic Notations [25 Points]
(a) [10 pts] For each pair of functions below, determine which function grows asymptotically faster then
give all the θ, O and relations that apply. You only need to mention the relations in which f(n)
appears on the left-hand side.
(i) f(n) = log(n!), g(n) = log(nn)
(ii) f(n) = logkn g(n) = nɛ, k≥1, ɛ>0
F(n) = θ, O and Ω (g(n))
Logarithmic vs polynomial
F(n) = O (g(n))
(iii) f(n) = 2n g(n) = 2n/2
Take log for both sides
F(n) = Ω (g(n))
page-pf3
page-pf4
page-pf5
page-pf6
page-pf7

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.