Where is insertion sort used?



Where is insertion sort used?..

Answer / Barun Pratap Singh

Insertion sort is often employed when the input list is nearly sorted or small in size. It's useful for sorting data that has a few out-of-place elements, as it maintains the order of the first part of the array while inserting each subsequent element in its correct position.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

How do signed and unsigned numbers affect memory?

1 Answers  


Why concurrenthashmap is fail safe?

1 Answers  


How will inorder, preorder and postorder traversals print the elements of a tree?

11 Answers  


Define back edge?

1 Answers  


Which is the slowest sorting algorithm?

1 Answers  


What is pivot in quicksort?

1 Answers  


What is meant by binary tree traversal?

1 Answers  


Suppose in an integer array, there is 1 to 100 number, out of one is duplicate, how to find?

1 Answers  


What is the purpose of tochararray ()?

1 Answers  


Explain circular linked list?

1 Answers  


Mention the steps to insert data at the starting of a singly linked list?

1 Answers  


To describe the Complexity of Binary search, Quicksort and various other sorting and searching techniques..

0 Answers   HPCL, Hughes Systique Corporation,


Categories