by Ericson2314 · 6y ago · 0 comments
This whole field is a waste of time, and anachronism from when the master copy was paper/pre-computer and computers were just doing the analytics.
I wrote this comparing the high-level performance of a “set” (AVL or red-black tree) against just that:
Faster lookups, insertions, and in-order traversal than a red-black or AVL tree [0]
[0]: https://neosmart.net/blog/2019/sorted-list-vs-binary-search-...
(Spoiler: it depends on the nature of your data, but sorted vector can be dramatically faster.)
My point is I care about the map or set interface. I don't use temporary sets or quicksort to sort....because I don't sort---I don't want a list/array of things in order, basically ever.
But some of us work on problems where performance of the sort does matter.
Map are just far more the bread and butter of programming than sorting, and not just if you are using the one of the languages satirized by https://elbenshira.com/blog/the-universal-data-structure/