Skip to content

iterative mergesort added#100

Merged
IanDoarn merged 8 commits into
OmkarPathak:masterfrom
kgashok:master
Sep 18, 2020
Merged

iterative mergesort added#100
IanDoarn merged 8 commits into
OmkarPathak:masterfrom
kgashok:master

Conversation

@kgashok

@kgashok kgashok commented Aug 27, 2020

Copy link
Copy Markdown
Contributor

@OmkarPathak, the iterative mergesort is very helpful to demonstrate how the mergesort algorithm works, in various stages.
In the verbose=True mode, for e.g.

before sorting [4, 0, 9, 8, 2, 5, 3, 1, 6, 7]
[[4], [0], [9], [8], [2], [5], [3], [1], [6], [7]]
[[0, 4], [8, 9], [2, 5], [1, 3], [6, 7]]
[[0, 4, 8, 9], [1, 2, 3, 5], [6, 7]]
[[0, 1, 2, 3, 4, 5, 8, 9], [6, 7]]
after sorting [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

@IanDoarn IanDoarn merged commit f04331a into OmkarPathak:master Sep 18, 2020
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