11.07.2015 Views

Data Structures and Algorithm Analysis - Computer Science at ...

Data Structures and Algorithm Analysis - Computer Science at ...

Data Structures and Algorithm Analysis - Computer Science at ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Sec. 13.6 Projects 45713.11 Select any two of the point represent<strong>at</strong>ions described in this chapter (i.e., thek-d tree, the PR quadtree, the bintree, <strong>and</strong> the point quadtree). Implementyour two choices <strong>and</strong> compare them over a wide range of d<strong>at</strong>a sets. Describewhich is easier to implement, which appears to be more space efficient, <strong>and</strong>which appears to be more time efficient.13.12 Implement a represent<strong>at</strong>ion for a collection of (two dimensional) rectanglesusing a quadtree based on regular decomposition. Assume th<strong>at</strong> the spacebeing represented is a square whose width <strong>and</strong> height are some power oftwo. Rectangles are assumed to have integer coordin<strong>at</strong>es <strong>and</strong> integer width<strong>and</strong> height. Pick some value c, <strong>and</strong> use as a decomposition rule th<strong>at</strong> a regionis subdivided into four equal-sized regions whenever it contains more th<strong>at</strong> crectangles. A special case occurs if all of these rectangles intersect <strong>at</strong> somepoint within the current region (because decomposing such a node wouldnever reach termin<strong>at</strong>ion). In this situ<strong>at</strong>ion, the node simply stores pointersto more than c rectangles. Try your represent<strong>at</strong>ion on d<strong>at</strong>a sets of rectangleswith varying values of c.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!