1.

Which of the following real time examples is based on insertion sort?(a) arranging a pack of playing cards(b) database scenarios and distributes scenarios(c) arranging books on a library shelf(d) real-time systemsThe question was asked by my college director while I was bunking the class.This interesting question is from Insertion sort topic in section Sorting of Data Structures & Algorithms II

Answer»

The correct option is (a) arranging a pack of playing cards

Easiest EXPLANATION - Arranging a pack of cards mimics an insertion SORT. Database SCENARIO is an EXAMPLE for MERGE sort, arranging books is a stack and real-time systems uses quick sort.



Discussion

No Comment Found

Related InterviewSolutions