9. For the array (5, 1, 4, 8, 9, 15, 6, 2, 46, 78, 11), which value can be selected as the best pivot value for partitio
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
9. For the array (5, 1, 4, 8, 9, 15, 6, 2, 46, 78, 11), which value can be selected as the best pivot value for partitio
9. For the array (5, 1, 4, 8, 9, 15, 6, 2, 46, 78, 11), which value can be selected as the best pivot value for partition process? a) 1 b) 4 c) 8 d) 15 e) 9 10. If we assume that the complexity of an algorithm is O(nlogn) and we run this algorithm on the array sizes (2, 4, and 16). Which one of the execution times can be for this algorithm with these array sizes? (hint: array sizes are increasing in a quadratic manner). a) 2, 4,6 b) 2,8,16 c) 2,8, 64 d) 2, 4, 16 e) 2.16, 128
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!