A stable sort does not change the order of elements with


Problem

A stable sort does not change the order of elements with the same value. This is a desirable feature in many applications. Consider a sequence of e-mail messages. If you sort by date and then by sender, you'd like the second sort to preserve the relative order of the first, so that you can see all messages from the same sender in date order. Is selection sort stable? Insertion sort? Why or why not?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: A stable sort does not change the order of elements with
Reference No:- TGS02636815

Expected delivery within 24 Hours