a) 2*n +2
b) n + ((n+1)/2) -2
c) n+logn
d) n2
The total comparisons in finding both smallest and largest elements are
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
The total comparisons in finding both smallest and largest elements are
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!