Bubble Sort Design

From AgentSheetsWiki

Jump to: navigation, search
Bubble Sort.png

This project is an implementation of one-, two- and three- dimensional Bubble Sort. Bubble sort is a simple sort algorithm in which adjacent numbers (represented as colors) get swapped if they are in the wrong order. AgentCubes is used in this case to visualize how the algorithm works. Please note that there is no centralized control in this implementation. Every bubble at each moment in time is ready to swap itself. A simple generalization of this approach leads to the 2D version of bubble sort in which numbers bubble horizontally as well as vertically.

Category


Explorations


Acknowledgements

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox