Skip to content

NelsonBN/algorithms-data-structures-shell-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Algorithms and Data Structures - Shell Sort

Shell Sort is a generalization of Insertion Sort. It was created by Donald Shell in 1959.

Here an example of the Insertion Sort

Characteristics

  • Time complexity:
    • Best: Ω(n log(n)) -> Depends on the gap sequence
    • Average: Θ(n^(3/2)) -> Depends on the gap sequence
    • Worst: O(n^2) -> Depends on the gap sequence
  • Space complexity: O(1)
  • In-place
  • Unstable

Demos:

Demonstration

References

About

Algorithms and Data Structures - Shell Sort

Topics

Resources

License

Stars

Watchers

Forks

Languages