Image: Sorting stability playing cards
Size of this PNG preview of this SVG file: 363 × 600 pixels. Other resolution: 145 × 240 pixels.
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
Image usage
The following page links to this image:
All content from Kiddle encyclopedia articles (including the article images and facts) can be freely used under Attribution-ShareAlike license, unless stated otherwise.