retagged by
425 views

2 Answers

1 votes
1 votes

Given f(n)=O(n$^{2}$) and g(n)=O(n$^{3}$)

Hence as per definition,

f(n)<=c*n$^{2}$, f(n) can be n$^{2}$, n$^{2}$/logn, nlogn,n,constant,1/n,1/n$^{2}$,1/2$^{n}$,...

Similarly,

g(n)<=c*n$^{3}$, f(n) can be n$^{3}$, n$^{2}$, nlogn,n,constant,1/n,1/n$^{2}$,1/2$^{n}$,...

Solution:

[I] f(n)*g(n) <= [constant *largest possibile eqn in f(n) ]*[constant *largest possibile eqn in g(n) ]=constant*n$^{2}$*constant*n$^{3}$

i.e. f(n)*g(n)<=c*n$^{5}$,

Hence f(n)*g(n)=O(n$^{5}$).

[II] f(n)/g(n) <= [constant *largest possibile eqn in f(n) ] [constant *smallest eqn in g(n) ]

Since the lowest equation is not bounded for g(n), it can be 1/n, 1/n!,1/2$^{n}$,1/n$^{n}$, and even lower than that

Hence f(n)/g(n) does not have an upper bound. 

0 votes
0 votes

 f(n) = O(n2)

 g(n) = O(n3)

 f(n) * g(n) = O(n^2)  * O(n^3) = O(n^5)

f(n) / g(n)  = O(n^2) /  O(n^3) = O(1/n)

Related questions

0 votes
0 votes
3 answers
1
0 votes
0 votes
1 answer
2
Shubham Pande asked Jul 1, 2017
349 views
Is it true that for any nfa M = (Q,Σ,δ,q 0 ,F) the complement of L(M)is equal to the set {w ∈ Σ * : δ *(q 0 ,w) F= Ø}?
0 votes
0 votes
1 answer
3
Nam14 asked Apr 5, 2023
531 views
Please read below passage from 10th edition Operating System Concepts, pg. 202:5.1.3 Preemptive and Nonpreemptive SchedulingCPU-scheduling decisions may take place under ...
0 votes
0 votes
0 answers
4
Mudita asked Aug 26, 2018
327 views