mountain-sort

The best algorithm to sort mountains (by Morwenn)

Mountain-sort Alternatives

Similar projects and alternatives to mountain-sort

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better mountain-sort alternative or higher similarity.

mountain-sort reviews and mentions

Posts with mentions or reviews of mountain-sort. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-10.
  • 10~17x faster than what? A performance analysis of Intel x86-SIMD-sort (AVX-512)
    12 projects | news.ycombinator.com | 10 Jun 2023
    It depends on the size of the structs. For struct pointers you're likely better off sorting keys and pointers simultaneously. It doesn't matter much until you get to large sizes (millions), but sorting indices and then selecting with them is random access. If the original ordering is messy, selecting can be slower than the sorting step. For structs a few words long, the unit you're moving is a larger portion of a cache line, and I'd expect the data movement to drown out any SIMD advantage. A radix sort might be all right because it moves less, but I'd probably go with sorting indices as the first thing to try unless I knew the arrays were huge. For very large structs there's an interesting effort called mountain sort[0], "probably the best sorting algorithm if you need to sort actual mountains by height". Given that it minimizes number of moves it's ignoring cache entirely. I haven't benchmarked so I can't say much about how practical it is.

    [0] https://github.com/Morwenn/mountain-sort

Stats

Basic mountain-sort repo stats
1
3
10.0
over 8 years ago

Morwenn/mountain-sort is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of mountain-sort is C++.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com