closed by
481 views
1 votes
1 votes
closed as a duplicate of: Sorting Algorithm
A cache aware sorting algorithm sorts an array of size $2^{k}$ with each key of size 4 Bytes. The size of cache memory 128 Bytes. and algorithm is a combination of merge sort and insertion sort to exploit locality of reference for the cache memory(i.e. will use insertion sort when problem size equal to cache memory)

Worst case running time of this algo

1)$2^{k}\left [ 2^{5}+log_{2}2^{k-5} \right ]$

2)$2^{k-5}\left [ 2^{5}+log_{2}2^{k-5} \right ]$
closed by

Related questions

0 votes
0 votes
2 answers
2
_Madhuri asked Oct 9, 2021
664 views
The complexity of comparison based sorting algorithm is (nlogn) .How?
1 votes
1 votes
1 answer
4
iarnav asked May 4, 2019
850 views
I’ve seen this wikipedia article – https://en.wikipedia.org/wiki/Comparison_sortAlso see this link – https://gateoverflow.in/32948/minimum-number-of-comparisonshttp...