Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Thursday, January 23, 2020

The best method to rearrange books in a library shelf at the

The best method to rearrange books in a library shelf at the end of the day is
Ainsertion sort
Bradix sort
Cmerge sort
Dheap sort

Answer : insertion sort

Explanation:

Insertion sort is a simple sorting algorithm that builds the final sorted array (or list) one item at a time.
Library sort, or gapped insertion sort is a sorting algorithm that uses an insertion sort, but with gaps in the array to accelerate subsequent insertions.

Reference :https://en.wikipedia.org/wiki/Insertion_sort

https://en.wikipedia.org/wiki/Library_sort

Akilesh Kharvi
answered Dec 8 '2016 at 20:31

All Comments

Post your answers here:

Post

Post your comments here:

Post

Categories