In: Computer Science
1)If an algorithm performs N steps then we say it is O(N) ?
2) An example of something that is O(N) is(chose one)
A)printing to the screen.B)executing a conditional statement. C) initializing an integer variable. D) looping through an array of size N.
3)Suppose we found the run time of an algorithm was O(2N3 + 4N2 + 5N + 3). What is the Big O notation for the algorithm?
A) O(5N), B) O(4N^2), C) O(N^3), D) O(2N^3)
PLEASE FIND THE ANSWER(S) and EXPLANATION BELOW.