Difference between revisions of "DataStructures"
Jump to navigation
Jump to search
(→Trees) |
|||
Line 40: | Line 40: | ||
=Trees= | =Trees= | ||
+ | |||
+ | ==Quadtrees== | ||
http://en.wikipedia.org/wiki/Quadtree | http://en.wikipedia.org/wiki/Quadtree | ||
+ | |||
+ | A quadtree could be used to store: | ||
+ | |||
+ | * A sparse matrix (Can think of an image this way) | ||
+ | * Variable resolution data (parent's value is the average of its children's values) | ||
=The C++ Standard Template Library= | =The C++ Standard Template Library= |
Revision as of 17:52, 24 February 2010
'Data Structures: starting to designing your program'
Introduction
svn co http://soutce.ggy.bris.ac.uk/subversion-open/data-structures/trunk ./data-structures
Stacks
cd examples/example1 make ./simple-stack.exe
Linked Lists
cd ../example2 make ./simple-LL.exe
Hash Tables
cd examples/example1 make ./simple-hash.exe
Trees
Quadtrees
http://en.wikipedia.org/wiki/Quadtree
A quadtree could be used to store:
- A sparse matrix (Can think of an image this way)
- Variable resolution data (parent's value is the average of its children's values)