Iβm not sure what exactly performs binary interpolation searches, however binary interpolation sort has been applied in insert sort. E, g., Given by the element, insert into the sorted array and save its sorting at the same time. If we compare it with each emelemt directly to find the correct location for the insert, then the time complexity will be O (n), now that it is sorted, binary search can be applied with this situation with the time complexity O (logn), since we we all know.
Bruce source
share