Skip to content

Commit 0a3b9c3

Browse files
committed
+ add visulaizer & algorithms
0 parents  commit 0a3b9c3

26 files changed

+8512
-0
lines changed

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## Sorting Visualizer
2+
3+
![preview](/public/preview.png)
4+
5+
## Overview
6+
7+
This sorting visualizer is a tool designed to help users understand and visualize various sorting algorithms in action. It provides a graphical representation of how different sorting algorithms rearrange elements in a list to achieve a sorted order.
8+
9+
## Supported Sorting Algorithms
10+
11+
- Bubble Sort
12+
- Selection Sort
13+
- Quick Sort
14+
- Insertion Sort
15+
- Merge Sort
16+
17+
## How to Use
18+
19+
1. **Select Algorithm:** Choose one of the supported sorting algorithms from the dropdown menu.
20+
2. **Generate Data:** Click on the "Generate Data" button to create a new random list of elements to be sorted.
21+
3. **Visualize Sorting:** Click on the "Sort" button to see the chosen algorithm in action, sorting the generated list.
22+
4. **Speed Control:** Adjust the speed slider to control the speed of the visualization.
23+
5. **Reset:** Click on the "Reset" button to reset the visualization.
24+
25+
## Key Features
26+
27+
- Interactive visualization of sorting algorithms.
28+
- Option to choose from a variety of sorting algorithms.
29+
- Adjustable speed for better understanding.
30+
- Easy reset option to start over.
31+
32+
## Future Improvements
33+
34+
- Adding more sorting algorithms.
35+
- Enhancing user interface and experience.
36+
- Providing additional customization options.
37+
38+
## Contribution
39+
40+
Contributions are welcome! If you want to contribute to this project, feel free to fork it and submit a pull request with your changes.

next.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {};
3+
4+
export default nextConfig;

0 commit comments

Comments
 (0)