1 1 vote What is the time complexity of T(n) = T(n/2) + n*(2-cos n) Also try to apply master theorem (Cormen version). Data Structures self-doubt time-complexity + – gopal_gate 289 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes Masters theorem can't be applied on trigonometric function as f(n) in recurrence equation Generally, masters relies on regularity condition and as the function has oscillatory values it violetes the regularity condition merohan17 answered Sep 28, 2024 merohan17 comment Share Follow 0 reply Please log in or register to add a comment.