Skip to content

Fixed worst case for shell sort - #26

Merged
OmkarPathak merged 1 commit into
OmkarPathak:masterfrom
Skeen:master
Aug 15, 2017
Merged

Fixed worst case for shell sort#26
OmkarPathak merged 1 commit into
OmkarPathak:masterfrom
Skeen:master

Conversation

@Skeen

@Skeen Skeen commented Aug 15, 2017

Copy link
Copy Markdown
Contributor

Hi,

The worst case performance of shell sort is O(n ^ 2) when using a non-optimal gap sequence.
O(n log^2(n)) when using an optimized gap sequence.

Not O(n) as stated in the code.

@OmkarPathak
OmkarPathak merged commit 8f14fbb into OmkarPathak:master Aug 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants