2 2 votes Consider the following program:function GO_Recursion(n): if n <= 1: return for i=1 to n: doConstantWork() // O(1) for j=1 to 5: GO_Recursion(n/3) Which of the following is the worst-case time complexity of this algorithm?(Here $\Theta$ represents big-theta.)$\Theta(n)$ $\Theta(n \log n)$ $\Theta\!\left(n^{\log_{3} 5}\right)$ $\Theta\left(n^2\right)$ Algorithms goclasses algorithms goclasses-cs-dpp goclasses-cs-dpp-day-65 goclasses-algorithms-practice-questions + – GO Classes 382 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
Best answer 1 1 vote $$T(n)=5 T(n / 3)+O(n)$$By Master's Theorem:$\mathrm{a}=5, \mathrm{~b}=3, \mathrm{f}(\mathrm{n})=\mathrm{n}$ $\mathrm{n}^{\log _3 5} \approx \mathrm{n}^{1.464}$ $\mathrm{n}=\mathrm{O}\left(\mathrm{n}^{1.464}\right)$ case 1 appliesCorrect Answer: $\Theta\left(\mathrm{n}^{\log _3 5}\right)$ GO Classes answered Aug 23, 2025 • selected Aug 25, 2025 by GO Classes GO Classes comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes answer is c by master theorm Gaurav_sharma 1 answered Sep 4, 2025 Gaurav_sharma 1 comment Share Follow 0 reply Please log in or register to add a comment.