Skip to content
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

lib:simulations:Merge_sort :Merge Sort implemented #174 #185

Merged
merged 4 commits into from
Jun 4, 2021
Merged

lib:simulations:Merge_sort :Merge Sort implemented #174 #185

merged 4 commits into from
Jun 4, 2021

Conversation

mrmayurgithub
Copy link

@yashugarg I've added Merge algorithm simulation for solving the issue #174 , it works fine.

@mrmayurgithub
Copy link
Author

@yashugarg please merge this PR.

Copy link
Member

@yashlamba yashlamba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really good work, loved the simulation! Still needs some work, I have added a few points. Thanks for your efforts!

lib/src/data/simulations.dart Outdated Show resolved Hide resolved
lib/src/data/simulations.dart Outdated Show resolved Hide resolved
lib/src/simulations/merge_sort.dart Outdated Show resolved Hide resolved
Comment on lines +198 to +207
onPressed: () {
pause = !pause;
//TODO: Fix the bug, i.e, when we pause the code shows unusual behaviour
if (!sort)
_sort();
else
setState(() {
sort = false;
});
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pause bug needs to be fixed, when paused, it restarts the sort.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Copy link
Author

@mrmayurgithub mrmayurgithub May 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it actually scans the array from the starting and I tried making some other changes but I wasn't able to implement the pause function properly.
Hopefully, someone else will be able to resolve this issue. :)

lib/src/simulations/merge_sort.dart Show resolved Hide resolved
@yashugarg yashugarg changed the base branch from master to mergesort June 4, 2021 13:18
@yashugarg yashugarg merged commit 6377d31 into builtree:mergesort Jun 4, 2021
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.

3 participants