Jump to content

Made a Sorting Algorithm Display in NCurses


act

Recommended Posts

Have you ever seen a video like this and wondered what it was doing? To put it simply, that's showing how different ways you can sort - known formally as Sorting Algorithms - work in real-time. I've developed a bit of a quasi-obsession with these sorting algorithms, as they're nice little challenges for programming that are not only educational, but useful.

As a result of me finishing two of the most popular algorithms, those being Bubble Sort and Quick Sort, I've decided to make a program that does what's shown in the linked video. But I decided to add the twist of it being done via NCurses; which is a library that allows a programmer to make simple, entirely CLI-based graphical displays. I'm quite proud of what I made, and if you'd like to check it out, it's available at https://github.com/act17/nsortdisplay.

Here's a .gif of it using Bubble Sort!

1778280543_mysortingalgorithmthingy.gif.9c4b627748daadb60c4eb93d88c03bec.gif

It's still a heavy work-in-progress at the moment, so any and all criticism will be appreciated! :D

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...