4 ms·
Sorting is categorizing, just with an order imposed on the categories. If the categories have a natural order, then people will exploit that when they sort. S
by kazinator 8y ago
Sorting is categorizing, just with an order imposed on the categories.
If the categories have a natural order, then people will exploit that when they sort.
Suppose you had to put some cards with names on them into bins labeled by first letter. You might go through the cards one by one and stick each in the appropriate bin. It would help you if the bins are in alphabetic order, rather than scrambled.
Sorting into categories involves a search to find the category for an item; the search benefits from order.
- hk__2 8y ago> Sorting is categorizing, just with an order imposed on the categories. …and infinite categories.
- jdmichal 8y agoInfinite, or recursive? Alphabetic, lexographic, and numeric sorts are recursive over "significant digits", which is why we can write radix sorts. (Scare quotes because that term doesn't necessarily directly translate to alphabetic and lexographic sorting, but the basic prinicple is the same.)
- solipsism 8y ago"recursively" is but one way to build a potentially infinite set. They're not mutually exclusive.
- mywittyname 8y agoI actually asked a non-math/cs person the question, "if I gave you a shuffled deck of cards and asked you to sort them, what would you give me?" Her response was, I'd give you the deck order them by suit (spade, club, heart, diamond), then by number (with j,q,k after 9). Which was what I expected. The twitter post seems to suggest that his expectation for the given question would be four decks, one for each suit (i.e., categorized).