Can you please help figure out answer to these two problem.
Match the following functions with their asymptotic big- estimations. 1 > n(n+1) 2 √100n² +n³ √nlog (n +2¹) log (n!) 2n+n! 1. 0(n²) 2. O(n³/²) 3. O(n!) 4. (2¹) 5. (n log n)
Select the following statements that are true. The worst-case complexity of the linear search algorithm is O(logn). | If g(n) = O(f(n)) then f(n) = O(g(n)). The worst-case complexity of the binary search algorithm is O(log n) If f(n) = (g(n)) then f(n) = O(g(n)). The worst-case complexity of the bubble-sort algorithm is O(n²).
Can you please help figure out answer to these two problem.
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Can you please help figure out answer to these two problem.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!