Podcast
Questions and Answers
What is the time complexity of func1 in program1.c?
What is the time complexity of func1 in program1.c?
- $O( ext{log} n)$
- $O(1)$
- $O(n)$ (correct)
- $O(n^2)$
What is the time complexity of func in program2.c?
What is the time complexity of func in program2.c?
- $O(1)$
- $O( ext{log} n)$
- $O(n^2)$ (correct)
- $O(n)$
What is the average processing time T(6) for the given recursive algorithm?
What is the average processing time T(6) for the given recursive algorithm?
- 3
- 12
- 9
- 6 (correct)
Flashcards are hidden until you start studying
Study Notes
Time Complexity Analysis
- Time complexity of func1 in program1.c is to be analyzed.
- Time complexity of func in program2.c is also to be analyzed.
- Average processing time T(6) for the given recursive algorithm needs to be calculated.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.