Valid
	XHTML 1.1! Valid CSS!
Created 2005-05-13   Modified 2009-04-11
Chelton Evans

proj Simple Sort home

Intro
Source
TODO

img01.png

2D sort

img02.png

3D sort

img04.png

2D sort

img03.png

3D sort

Intro

STATUS: Working. More sorts need to be implemented.

Sort in 2D and 3D so that all elements in the array can be visited only once from the start of the array to the finish.

In 2D the curve snakes from left to right, up to down. In 3D it does the same with slices, just reversing the transversal direction of the previous slice. The complexity is O(nlogn).

More strange orderings may be possible. For example while I divided the array into rectangular grids and ordered on the axes, if you come up with other axes or partitions you could possibly order on them instead.

Source

Files

Makefile
d2sortvec.h
main.cpp
snakeindex.h
snakeindextest.cpp
snakeindextest.h
snakesort.h
snakesorttest.cpp
snakesorttest.h
spiralindex.h
spiralindextest.cpp
spiralindextest.h

projcompile.txt
unittestsreport.txt

Doxygen

main.cpp
Makefile
d2sortvec
snakeindex
snakeindextest
snakesort
snakesorttest
spiralindex
spiralindex3D
spiralindextest

TODO