Skip to content

iterative mergesort added #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 18, 2020
Merged

iterative mergesort added #100

merged 8 commits into from
Sep 18, 2020

Conversation

kgashok
Copy link
Contributor

@kgashok kgashok commented Aug 27, 2020

@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