Project Title: Sort Comparer
Project Description: It generates random lists that the program can then sort through using merge, quick, and bubble sort. It then displays the average amount of comparisons and time.
Project Goals: The goal was to learn typescript and by extension javascript.
Steps to build and/or run the software:
- Ensure you can run javascript on your computer.
- If you only have the typescript file, use tsc .\sort_comp.ts to compile to javascript.
- Open up a terminal to run node .\sort_comp.js
- If there are other ways you have to run the file, you can use those.
Instructions for using the software:
- Run sort_comp.js using node .\sort_comp.js
- Enter in the length of the lists to be used.
- Enter the minimum and maximum random numbers in the list.
- Enter the amount of lists to be compared.
- Wait for the comparison to finish.
To recreate the development environment, you need the following software and/or libraries with the specified versions:
- Install VSCode.
- Using VSCode, install nvm 20.17.0.
- Install Typescript for VSCode using the npm install manager.
- Install the VSCode ESling extension.
- Use npm install @types/node --save-dev
- Install ESlint for the project using the npm install manager.
I found these websites useful in developing this software:
The following items I plan to fix, improve, and/or add to this project in the future:
- Add in error catching.
- See if it can be integrated into a website later.
- Improve display.