Visualization of sorthing method called Bubble sort.
HOW TO USE:
- Pygame lib is required in order for this program to work.
- Choose density of noise.
- Press Enter to generate noise.
- After the noise is generated, press enter again to start sorting algorithm.
- If noise density is too big, sorting will take long time (Bubble sort is one of worst time complexity sorts), you can skip to the end by pressing 'Space' continuously until it skips to sorted noise.
SCREENSHOTS: