If an algorithm needs 4 seconds to run on a set of 2 input data, 9 seconds for 3, 16 for 4, and so on, then what is the complexity of this algorithm?

a. Quadratic
b. Linear
c. Logarithmic
d. This can't be determined


a. Quadratic

Computer Science & Information Technology

You might also like to view...

A Waterfall View on a spectrum analyzer shows the aggregate energy collected since the start of a session.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A hot feed is a real-time transfer of data from a source IS to a destination IS that does not receive acknowledgment of receipt of data, so the data transfer is not guaranteed

Indicate whether the statement is true or false

Computer Science & Information Technology

The ____ option must be used when running a program in order to see the results of assert statements.

A. -db B. -ea C. -debug D. -assert

Computer Science & Information Technology

A field with a Yes/No data type can store only one of two values. The choices are ____.

A. True/False B. One/Zero C. Yes/No D. On/Off

Computer Science & Information Technology