-
Notifications
You must be signed in to change notification settings - Fork 73
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
Conversation
@yashugarg please merge this PR. |
There was a problem hiding this 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!
onPressed: () { | ||
pause = !pause; | ||
//TODO: Fix the bug, i.e, when we pause the code shows unusual behaviour | ||
if (!sort) | ||
_sort(); | ||
else | ||
setState(() { | ||
sort = false; | ||
}); | ||
}, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
There was a problem hiding this comment.
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. :)
@yashugarg I've added Merge algorithm simulation for solving the issue #174 , it works fine.