Need some information about Shell Sort

Click For Summary

Discussion Overview

The discussion centers around the applications, advantages, and disadvantages of the Shell Sort algorithm. Participants explore its practical uses, particularly in software libraries, and seek clarification on its implementation in specific contexts.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant inquires about the applications and advantages/disadvantages of Shell Sort, noting limited information available beyond its use in the Linux Kernel and a C library.
  • Another participant references a Wikipedia article on practical applications of Shell Sort, suggesting that most libraries favor quick sort or merge sort instead.
  • A different participant mentions that while Shell Sort is easy to implement and resource-efficient, it is generally outperformed by other sorting algorithms, particularly with large datasets.
  • One participant expresses a desire for more detailed information on how Shell Sort is utilized in the applications mentioned in the Wikipedia article.
  • There are repeated inquiries about the specific application of Shell Sort in the uClibc library, with one participant providing a link to the source code.
  • A participant notes that they found Shell Sort code within the qsort function but lacks clarity on what the function sorts or its specific purpose.

Areas of Agreement / Disagreement

Participants generally agree that Shell Sort is not widely implemented in real-life software compared to other sorting algorithms, but there is no consensus on its specific applications or advantages/disadvantages.

Contextual Notes

Some claims about the performance of Shell Sort relative to other algorithms depend on the size of the data structures involved, and the discussion lacks detailed exploration of the specific contexts in which Shell Sort may be applied.

Who May Find This Useful

This discussion may be useful for individuals interested in sorting algorithms, particularly those exploring the practical applications and theoretical aspects of Shell Sort in programming contexts.

thrasher1031
Messages
5
Reaction score
1
Hello everyone, i was wondering if anyone knows which uses or applications has Shell Sort and what are the advantages and disadvantages of this sorting method. So far i can't find a lot of information on the applications only that is used in some form in the Linux Kernel and on a library from C (i think?) but there's no more information about that i could find.

Anyone knows which applications has or is used and the advantages/disadvantages of this sort method?

Thanks.
 
Technology news on Phys.org
Besides Wikipedia page, if you want to see some related theorems, variants and open problems regarding shell sort, I also recommend to take a look at Robert Sedgewick's paper here.

As for its applications, you won't see it implemented much in real life software, because although relatively easy to code and decent regarding resources in general, it is outperformed - especially with large data structures by other algorithms, so you'll see a lot more often some variations of merge sort and quicksort, as also pointed out by rcgldr.
 
Thanks guys for your replies, i looked already from the wikipedia page but i tried to search more information about how is used on those applications that are on the wiki article.

Also thanks for the information QuantumQuest :)
 
  • Like
Likes   Reactions: QuantumQuest
Anyone knows which application could have Shell sort on the uClibc library?
 
I already saw that the code, is on the qsort function, but i don't know exactly what that function does or what information is sorting. Sorry if I wasn't too specific in my last question. Just that is to do a "wgap calculation" i think.
 

Similar threads

Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
19
Views
4K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K