COS2611
Latest uploads at COS2611. Looking for notes at COS2611? We have lots of notes, study guides and study notes available for your school.
-
2
- 0
- 0
All courses for COS2611
-
COS2611 2
Latest content COS2611
COS2611 EXAM ACTUAL QUESTIONS AND ANSWERS WITH COMPLETE VERIFIED 100% SOLUTIONS GRADED A++ GUARANTEED PASS 
Which of the following functions is ordered by growth rate from largest to smallest? 
 
ORDERS OF MAGNITUDE (small to large): 
1, N, logN, NlogN, N2, N3, 2N, N! 
2N, N3, NlogN, 24 
What is the running time of the following code fragment? 
for (int i = 0; i < 5n; i++) 
sum++; 
 
calculation: 
1; 5N + 1; 5N = 10N + 2 O(N) 
O(N) 
Questions 3, 4 and 5 refer to the following code fragment: 
...
- Exam (elaborations)
- • 71 pages's •
-
COS2611•COS2611