For each of the following pairs of functions, determine whether 𝒇(𝒏) = 𝑶(𝒈(𝒏)) or
𝒈(𝒏) = 𝑶(𝒇(𝒏)).
a. 𝑓(𝑛) = 𝑛(𝑛 − 1)⁄2 and 𝑔(𝑛) = 6𝑛
b. 𝑓(𝑛) = 𝑛 + 2√𝑛 and 𝑔(𝑛) = 𝑛^2
c. 𝑓(𝑛) = 𝑛 + log 𝑛 and 𝑔(𝑛) = 𝑛√𝑛
d. 𝑓(𝑛) = 𝑛 log 𝑛 and 𝑔(𝑛) = 𝑛√𝑛/2
e. 𝑓(𝑛) = 2(log 𝑛)^2
and 𝑔(𝑛) = log 𝑛 + 1
a.
𝒈(𝒏) = 𝑶(𝒇(𝒏))
b.
𝒇(𝒏) = 𝑶(𝒈(𝒏))
c.
𝒇(𝒏) = 𝑶(𝒈(𝒏))
e.
𝒈(𝒏) = 𝑶(𝒇(𝒏))
d.
𝒇(𝒏) = 𝑶(𝒈(𝒏))
Comments