Shell sort is more efficient than insertion sort if the length of input arrays is small.

Shell sort is more efficient than insertion sort if the length of input arrays is small.
A. True
B. False
 
Answer: b
Explanation: Insertion sort is more efficient than Shell sort if the length of array is small because insertion sort is quite simple to program and involve very few actions other than comparisons and replacements on each pass.
 

Tìm kiếm

Back
Top