I have an algorithm that runs in O(n2)time, where n is the size of the problem. What does “the size of the problem” mean?
A. The size of the problem is the number of bytes the data occupies
B. The size of the problem is the number of lines in the source code of the program.
C. The size of a problem is the number of data items that the algorithm operates upon
D. The size of the problem is the depth of nesting of loops in the program.
C. The size of a problem is the number of data items that the algorithm operates upon
You might also like to view...
A company is installing IP-based security cameras in an area where sensitive data and resources are kept as part of a new security system. Which feature might a technician have to configure as part of this installation?
A) VPN B) Wi-Fi analysis C) Calibration D) Port forwarding
The ______ statement is used to execute one action when a condition is true and an- other when that condition is false.
Fill in the blank(s) with the appropriate word(s).