String sorting algorithms

Burstsort

Burstsort and its variants are cache-efficient algorithms for sorting strings. They are variants of the traditional radix sort but faster for large data sets of common strings, first published in 2003, with some optimizing versions published in later years. Burstsort algorithms use a trie to store prefixes of strings, with growable arrays of pointers as end nodes containing sorted, unique, suffixes (referred to as buckets). Some variants copy the string tails into the buckets. As the buckets grow beyond a predetermined threshold, the buckets are "burst" into tries, giving the sort its name. A more recent variant uses a bucket index with smaller sub-buckets to reduce memory usage. Most implementations delegate to multikey quicksort, an extension of three-way radix quicksort, to sort the contents of the buckets. By dividing the input into buckets with common prefixes, the sorting can be done in a cache-efficient manner. Burstsort was introduced as a sort that is similar to MSD radix sort, but is faster due to being aware of caching and related radixes being stored closer to each other due to specifics of trie structure. It exploits specifics of strings that are usually encountered in real world. And although asymptotically it is the same as radix sort, with time complexity of O(wn) (w – word length and n – number of strings to be sorted), but due to better memory distribution it tends to be twice as fast on big data sets of strings. It has been billed as the "fastest known algorithm to sort large sets of strings". (Wikipedia).

Video thumbnail

Now You Know: Bursting Balloons

When you stick a needle in a balloon, the rubber tears—the balloon pops. But high-speed video reveals the details, and there are some surprises to be had. How does the rubber unzip as it tears? It’s different for a round balloon and a longer balloon-animal balloon. And if the balloon is fi

From playlist Now You Know

Video thumbnail

Fireworks! I Full-Spectrum Science I Exploratorium

Where do fireworks come from? Who invented them? What causes their beautiful colors, and how do the bursting shells create such different patterns? Join us for some real illumination, and learn the difference between a jerb and a lance.

From playlist Collection Favorites

Video thumbnail

Early Stomper Tests

Enjoy a small collection of explosions from our preliminary tests of the prototype of what is to become Project Stomper.

From playlist Project Stomper Videos

Video thumbnail

呼叫魚

好恐佈,咁都食得落口

From playlist Crazy Stuff

Video thumbnail

Auto-parking car

Watch a car park itself! Credits: , HowStuffWorks

From playlist Classic HowStuffWorks

Video thumbnail

Real-time Shattering Demolition physics

This is my own implementation for shattering physics, mainly inspired by the persons below. Thanks go out to: scorpion81 - ideas TomWalks - ideas darczol - first person template http://kostackstudio.de

From playlist Destruction Physics Demos

Video thumbnail

Snippet: The Life of a Bubble

Something spectacular—and ordinarily invisible—occurs in the gas rushing out of a bursting bubble Read more: https://scim.ag/2OGDSKu Credit (video footage): Ali Dasouqi About Science Snippets These videos are short snippets from researchers' work—often videos actually used as data in a

From playlist Science Snippets

Related pages

Sorting algorithm | Dynamic array | String (computer science) | Trie | Radix sort