What is the usual size of a run in tim sort?

What is the usual size of a run in tim sort?
A. 32
B. less than 32
C. 32-64 depending on size of the array
D. 64
 
Answer: c
Explanation: Usually the size of the run is chosen somewhere between 32 and 64. The size of run is preferably chosen in powers of 2 in order to maintain balance while merging the sorted runs.
 

Tìm kiếm

Back
Top