By Comparing the orders of growth of (f(n)=1/2~n(n-1)) and (g(n)=n^{2}) we get f(n) =…
- User
By Comparing the orders of growth of (f(n)=1/2~n(n-1)) and (g(n)=n^{2}) we get
f(n) = 2(g(n)) (a f(n) = O(g(n)) (b f(n)=Ω(g(n)) (c - Assistant
To compare the orders of growth of the functions ( f(n) = \frac{1}{2} n (n - 1) ) and ( g(n) = n^2 ), we start by simplifying and analyzing the function ( f(n) ).
The function ( f(n) ) can be expanded as follows: [ f(n) = \frac{1}{2} n (n - 1) = \frac{1}{2} (n^2 - n) ]