staff project download information miscellaneous
Trend Download   Two Dimensional Bubble Sort
  More Trend Examples

Public Key CryptoSystem

Langton's Self-Replication Loop

Game of Life

Langton's Ant

Snowflake Generation

Reaction Diffusion

One Dimensional CA

1-D Bubble Sort

2-D Bubble Sort

Image Thinning Algorithm

Genetic Drift

Emergence of Self-Replication Structures

Solving 2-SAT Problem

Solving 3-SAT Problem

Solid 2-SAT

Mouse Maze

Logic Gate Adder

Voronoi Diagram

Two Gender Solid Self-replication Loop

One-cell-based Genetic Algorithm for Solving SAT Problem

 
MangoVect DownloadPicky DownloadLucy2 DownloadGRAMAUBViz DownloadgeneDBN Download

1. Description

This example is similar to the previous one-dimensional bubble sort, except that the numbers are stored in two-dimensional arrays instead of one-dimensional arrays.

This 2D bubble sort is an extension of the 1D bubble sort. In this 2D version, elements are compared for vertical as well as for horizontal neighbors. Again, swaps are made between two neighbors, if necessary. Smaller numbers will migrate to the upper-left corner of the cellular space while larger numbers move towards the lower-right corner. The simulation results are shown in the above animated figure.

2. Download

next example

Last modified June 13, 2008 . All rights reserved.

Contact Webmaster

lab