kids encyclopedia robot

Image: Sorting stability playing cards

Kids Encyclopedia Facts
Original image(SVG file, nominally 379 × 626 pixels, file size: 76 KB)

Description: An example of stable sorting on playing cards. When the cards are sorted by rank with a stable sort, the two 5s must remain in the same order in the sorted output that they were originally in. When they are sorted with a non-stable sort, the 5s may end up in the opposite order in the sorted output.
Title: Sorting stability playing cards
Credit: Own work, based on File:Cards-2-Heart.svg, File:Cards-7-Spade.svg, File:Cards-5-Spade.svg, File:Cards-5-Heart.svg
Author: User:Dcoetzee, User:WDGraham
Usage Terms: Creative Commons Zero, Public Domain Dedication
License: CC0
License Link: http://creativecommons.org/publicdomain/zero/1.0/deed.en
Attribution Required?: No

The following page links to this image:

kids search engine