Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1.Suppose f(n) = 100n + log n and g(n) = n + (log n)^2 Which of the following holds? f(n)=O(g(n)) g(n)=O(f(n)) f(n)=O(g(n)) and g(n)=O(f(n)) ANS:
1.Suppose f(n) = 100n + log n and g(n) = n + (log n)^2
Which of the following holds?
f(n)=O(g(n))
g(n)=O(f(n))
f(n)=O(g(n)) and g(n)=O(f(n))
ANS: g(n) = O(f(n))
2.Suppose f(n)=n log n and g(n)=10n log(10n)
Which of the following holds?
f(n)=O(g(n))
g(n)=O(f(n))
f(n)=O(g(n)) and g(n)=O(f(n))
ANS: f(n)=O(g(n)) and g(n)=O(f(n))
I know what the answer for each question, but I have not got yet how can I find out the answer.
Could you explain me how to solve them, please?
Thank you in advance.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started