Algorithm ST-1: Solve The Following Given Recurrence Relation: T (N) 4T (n/2) + N 2
Algorithm ST-1: Solve The Following Given Recurrence Relation: T (N) 4T (n/2) + N 2
Algorithm ST-1
Your email address ([email protected]) will be recorded when you submit this
form. Not you? Switch account
* Required
Solve the following given recurrence relation: T(n) = 4T(n/2)+ n^2 1 point
Θ(n^2)
Θ (n^2 log n)
Θ (n log n)
Clear selection
1 point
(b) log n
(a) n
(c) n^n
(d) n^2
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSdHwcGwy3Sjuq5i5vBtnRWlfJr4JSF8SWnskETlEB5ISvEwag/viewform?hr_submission=ChkI9erYtNY… 1/7
1/21/2021 Algorithm ST-1
Consider the given code: y = y + z; for (i = 1; i < = n; i++) k = k + 2; for (i = 1; i < 1 point
O(n^2 log n)
O(n log n)
O(n^2)
O(n^3)
Clear selection
Θ (log log n)
O (log n)
O (n log n)
Θ (n log n)
Clear selection
Big-O estimate for the factorial function, that is, n!, is given by 1 point
O(n!)
O(n ×n!)
O( √n)
O(n^n)
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSdHwcGwy3Sjuq5i5vBtnRWlfJr4JSF8SWnskETlEB5ISvEwag/viewform?hr_submission=ChkI9erYtNY… 2/7
1/21/2021 Algorithm ST-1
Name *
Tushar Khatri
O (n log n)
Θ (log log n)
Θ (n^2 log n)
Θ (n)
Clear selection
2019UIT3049
1 point
A(n) = Θ(W(n))
A(n) = Ω (W(n))
A(n) = O(W(n))
A(n) = o(W(n))
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSdHwcGwy3Sjuq5i5vBtnRWlfJr4JSF8SWnskETlEB5ISvEwag/viewform?hr_submission=ChkI9erYtNY… 3/7
1/21/2021 Algorithm ST-1
f(n) = Θ (n log n)
f(n) = Ω (n^2)
Clear selection
1 point
A1
A3
A2
A4
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSdHwcGwy3Sjuq5i5vBtnRWlfJr4JSF8SWnskETlEB5ISvEwag/viewform?hr_submission=ChkI9erYtNY… 4/7
1/21/2021 Algorithm ST-1
1 point
f(n) - g(n)
f(n) + g(n)
Clear selection
1 point
O(n^2)
O(n log n)
O(2^n)
O(n)
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSdHwcGwy3Sjuq5i5vBtnRWlfJr4JSF8SWnskETlEB5ISvEwag/viewform?hr_submission=ChkI9erYtNY… 5/7
1/21/2021 Algorithm ST-1
Consider the following segment of C-code: int j,n ; j=1;while (j<=n) j=j*2; The 1 point
number of comparisons made in the execution of the loop for any n > 0 is:
[log n] - 1
log n
[log n] + 1
Clear selection
Consider the given Recurrence Relation, T(n) = 2n T(n/3) + n, Which of the 1 point
following is TRUE?
Clear selection
1 point
It determines the maximum size of a problem that can be solved in a given system, in
a given amount of time
It can be used to decide the best algorithm that solves a given problem
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSdHwcGwy3Sjuq5i5vBtnRWlfJr4JSF8SWnskETlEB5ISvEwag/viewform?hr_submission=ChkI9erYtNY… 6/7
1/21/2021 Algorithm ST-1
The minimum number of comparisons required to find the minimum and 1 point
n2
2.5*n - 1
n log n
1.5*n -2
Clear selection
Submit
This form was created inside of Netaji Subhas University of Technology. Report Abuse
Forms
https://docs.google.com/forms/d/e/1FAIpQLSdHwcGwy3Sjuq5i5vBtnRWlfJr4JSF8SWnskETlEB5ISvEwag/viewform?hr_submission=ChkI9erYtNY… 7/7