Day 6 - I don’t know what to put…
Hey there, this is going to be another quick devlog..
I usually post devlogs as I make commits so, everytime I commit something to the repo I make a devlog and say what I did, lol
Anyway.. there we go.
Statistics!!
Yayyy! I’ve finally added statistics!
So now, every time you finish sorting a range of values, it shows how many comparisons and swaps the algorithm performed and how many array accesses it made!
It wasn’t hard to implement but for now it works only for bubble sort and selection sort! (I was lazy and didn’t want to add it yesterday lol).
And still isn’t quite complete.. cause I don’t know for what reason but if I compare the statistics with a normal implementation of the algorithm, my Selection sort appears to do one cycle more than it needs too.. So I have to check that out.
Other things
After adding the statistics I just cleaned up some code, added some comments so people can actually understand what everything does and then added a quick button to show/hide the text under the rectangles with a limit. The limit is there so that you can still see the text of the rectangles without them overlapping on each other.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.