Question: ( 1 ) Given functions f ( n ) and g ( n ) , we say that f ( n ) is O (

(1) Given functions f(n) and g(n), we say that f(n) is O(g(n)) if and only if there.
are positive constants c and no such that
for n>-n0.
Answer:
(A)f(n)>g(n)
(B)f(n)cg(n)
(C)f(n)cg(n)
(D) ppNO(N)O(N2)O(1)O(logN)f(n)
(2) Given a node pin a singly linked list, what is the time complexity of
deleting node p without knowing which node is before p?Nis the number
of nodes in the list.
Answer:
(A)O(N)
(B)O(N2)
(C)O(1)
(D)O(logN)
 (1) Given functions f(n) and g(n), we say that f(n) is

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!