Visualize sorting algorithms (quicksort-only for now)

This only runs in studio for the moment.

I made this script that visualizes how quick-sort works. I haven’t been able to make a system that allows you to input any sorting algorithm and it visualizes but you can play around with the script and see how it works.

Suggest anything to improve efficiency of my system or even a way to use different sorting algorithms.

This is my first time making one of those github projects I believe? If anyone thinks it needs something else inform me.

How to use:

  1. Get the model:
  1. Put in StarterGui.

  2. Copy the content in the “execution” local script and run it thru the Command bar. As specified before, it’s designed to work in StarterGui, not PlayerGui which means it’s not gonna work in-game.

local module = require(game.StarterGui.sorteng_core.execution.module)

module.new_sort(200, 10, 5)
--[[
	First argument defines the amount of items the randomized array has and will sort
	Second argument defines how long it will take before cleaning the UI elements.
	Third variable is a push rate that defines how much delay between each sort will be

	Push rate is not in seconds or miliseconds, its a multiplication variable which you need 
	to play with a  little to get your wanted execution time.
	
	Simply copy and paste all of this in the command bar and the script will do the work.
]]

GitHub project

3 Likes