What is the read/write complexity of the following program?

int N = 0, M = 10;
for (int x = 0; x <= M; x++ ) {
for (int y = 0; y <= N; y++ ) {
writeToDisk(""something"");
}
}
a. O(M*N)
b. O(N)
c. O(N^2)
d. O(M+N)


a. O(M*N)

Computer Science & Information Technology

You might also like to view...

Click the File tab and click Print to view the ________ settings and options for printing

Fill in the blank(s) with correct word

Computer Science & Information Technology

The file format known as Portable Document Format was developed by Microsoft

Indicate whether the statement is true or false

Computer Science & Information Technology

To move a field list in the Relationships window, drag the table's primary key field. _________________________

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

Computer Science & Information Technology

The angle and length of direction lines define what?

A. a closed path B. the arc of a curved segment C. a smooth point D. a "broken" point

Computer Science & Information Technology