Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C03 - Problem 2 #103

Closed
swethmandava opened this issue Oct 24, 2016 · 4 comments
Closed

C03 - Problem 2 #103

swethmandava opened this issue Oct 24, 2016 · 4 comments

Comments

@swethmandava
Copy link

swethmandava commented Oct 24, 2016

a )
for 0 < epsilon < 1,

lg^k n > n^epsilon

and for epsilon >= 1,

lg^k n) < n^epsilon

Therefore, the correct answer is
YES YES YES YES YES

@gzc
Copy link
Owner

gzc commented Dec 1, 2016

Thanks, I will specially mark it in my solution

@gzc gzc closed this as completed Dec 1, 2016
@hsingchien
Copy link

hsingchien commented Feb 14, 2017

It does not matter what epsilon is. Use L'Hôpital's rule recursively for k times to calculate the lim(n→∞){lg(n)^k/n^ε}, you'll finally get k!/(ε^k*n^ε), which is 0 as both k and ε are constant. Therefore the answer should be only o and O are yes. You can also easily verify this by plotting in matlab. The difference is quite obvious.

@kestory
Copy link
Contributor

kestory commented Sep 29, 2017

the correct answer for (a) is
YES YES YES YES NO

@jotarios
Copy link

the correct answer for (a) is
YES YES YES YES NO

If there exist any two functions f(n) and g(n), and we have f(n) = \Theta(g(n)) if only and if f(n) = O(g(n)) and f(n) = \BigOmega(g(n)). You can check Theorem 3.1 in the book.

Thus, if you say YES and YES for O and \BigOmega, then is YES for \Theta. So, you answer should be YES YES YES YES YES.


BTW, I think the correct answer is YES YES NO NO NO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants