The value of which of the following growth-rate functions grows the slowest?
a) O(n)
b) O(n2)
c) O(1)
d) O(log2n)
c.
Computer Science & Information Technology
You might also like to view...
Salma wants to buy a smartphone. She does not have any knowledge about the specifications and types of phones available in the market as this is her first smartphone. The types of operating systems that Salma can choose from are Windows 8, Android, and iOS.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
What is the output of the following code?int *p;int x;x = 12;p = &x;cout << x << ", ";*p = 81;cout << *p << endl;
A. 12, 12 B. 12, 81 C. 81, 12 D. 81, 81
Computer Science & Information Technology