CS 101 Exam 1questions and answers Graded A+
CS 101 Exam 1questions and answers Graded A+ Choose the correct increasing ordering of growth rates (for large n). - O(1) O(lg n) O(n) O(n lg n) O(n^2) O(n!) O(n^n) Time complexity: for (a=1; an/4; a++) for (b=1; bn; b+=2) z++; - O(n^2) Time complexity: for (a=1; an; a++) if (a25) for (b=1; bn; b++) z++; - O(n) Time complexity: for (a=1; an; a*=2) for (b=a; b; b++) z++; - O(lg n) Time complexity: for (a=1; a=n; a*=s
Document information
- Uploaded on
- April 8, 2026
- Number of pages
- 8
- Written in
- 2025/2026
- Type
- Exam (elaborations)
- Contains
- Questions & answers