Premium Only Content

Hash Sort
A very quick and simple sorting algorithm. Public domain. Could also called as Leaf Sort, because it split-sorts into equal width bins. If the count of the bins is very large compared to the count of the unsorted values, each unsorted value will have its own bin, the algorithm will run in one pass O(n), and extra storage required O(n), for example 4x used storage space. If Bin count is 2, it is like a binary search sort, but does not need sorted data and will sort the data values at same time. The Hash (Leaf) Sort algorithm is simply blindly multi-thread-able. Could also be called Linear Sort or Function Sort, because of the linear function the default implementation uses, to classify values to buckets. If your particular application has different distribution of the data values, than uniform linear distribution, like gaussian distribution, or logarithmic, then that can be implemented in the hash function. The hash function attempts to fill the buckets with equal amounts, making the sorting problem split exactly in the bin count sub-problems that are exactly bin count section of the original problem. For example a sort of 1000 items to bins of 10, makes it 10x 100 item sort problem, then 100x 10 item problem, and finally 1000x 1 item problem, the unsorted array becomes sorted. The most fastest but also most memory using setup will go directly to the 1000x 1 item sort problem. The bin data structure should a linked list, for O(1) item addition and O(n) of any order all items query, or a pre-allocated array at some expected item amount, like 1/10 of n in each bin, like a vector. Extension to the quick sort, multiple pivots, in bins. Logarithmic sub-problem complexity of O(n). Also for hash search and hash insert, O(1), as a data structure.
-
0:40
Jkauppafi
8 days agoCross Drone (Tether Drone)
21 -
1:05:46
Candace Show Podcast
7 hours agoHarvey Speaks: Shocking Emails Revealed | Ep 2
77.1K48 -
1:51:18
Michael Franzese
4 hours agoRFK Was Right… But It’s Worse Than You Think | Jillian Michaels
43K22 -
1:23:47
Redacted News
4 hours agoEPSTEIN BOMBSHELL! SOMETHING VERY STRANGE IS GOING ON HERE, WHO ARE THEY PROTECTING? | REDACTED LIVE
122K191 -
1:05:37
Sean Unpaved
6 hours ago $4.69 earnedUnpaved
58.4K8 -
56:40
VSiNLive
4 hours ago $3.25 earnedFollow the Money with Mitch Moss & Pauly Howard | Hour 1
51.8K4 -
1:00:52
In The Litter Box w/ Jewels & Catturd
1 day agoFIRST 40 DAYS | In the Litter Box w/ Jewels & Catturd – Ep. 754 – 3/4/2025
99.6K46 -
1:20:04
Awaken With JP
8 hours agoHow Impressive is Zelensky? - LIES Ep 81
105K50 -
2:14:02
The Quartering
8 hours agoEpstein Files FINALLY Arrive, Zelensky CRAWLS Back & Trump Cuts Off, Oscars Sink To New Low & More
126K49 -
57:11
Russell Brand
7 hours agoBREAK BREAD EP. 16 - SEAN FEUCHT
116K6