Computational Geometry Extra Credit Homework Assignment, Assignments of Data Structures and Algorithms

An extra credit homework assignment in computational geometry. The assignment includes four problems with varying points and includes problems related to priority search trees, data structures for intervals, and an open problem regarding minimum size bsp (bounding volume tree) for a set of line segments. The problems are worth extra credits and are optional.

Typology: Assignments

Pre 2010

Uploaded on 02/13/2009

koofers-user-m7i-1
koofers-user-m7i-1 🇺🇸

9 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Extra&Credit&Homework&Assignment&
Due$May$13$
$
These$problems$are$taken$from$de$Berg$et$al.$Computational+Geometry.$They$are$extra$
credit,$worth$the$number$of$points$assigned$to$them.$They$are$added$to$your$homework$
score$after$the$curve$is$computed.$
$
1. (4pts)$Show$that$a$priority$search$tree$on$n$points$in$the$plane$can$be$constructed$in$
O(n)$time$if$the$points$are$already$sorted$by$their$y‐coordinate.$
2. (8pts)$Describe$a$data$structure$to$store$n$intervals$on$the$real$line$so$that$we$can$
find$the$intervals$that$are$completely+contained$in$a$query$range$[x1,$x2]$in$time$$
O(log$n$+$k),$where$k$is$the$number$of$matching$intervals.$Your$data$structure$
should$take$O(n$log$n)$space.$(Hint:$use$a$range$tree).$
3. (10pts)$Give$an$example$of$a$set$of$line$segments$in$the$plane$where$the$greedy$
method$of$constructing$an$auto‐partition$(where$the$splitting$line$is$taken$that$
induces$the$fewest$number$of$cuts)$results$in$a$BSP$of$quadratic$size.$
4. (a$lot)$[Open$Problem!]$Show$that$there$exists$a$BSP$of$size$O(n)$for$any$set$of$n$
non‐intersection$line$segments$in$the$plane.$
$

Partial preview of the text

Download Computational Geometry Extra Credit Homework Assignment and more Assignments Data Structures and Algorithms in PDF only on Docsity!

Extra Credit Homework Assignment Due May 13 These problems are taken from de Berg et al. Computational Geometry. They are extra credit, worth the number of points assigned to them. They are added to your homework score after the curve is computed.

  1. (4pts) Show that a priority search tree on n points in the plane can be constructed in O( n ) time if the points are already sorted by their y ‐coordinate.
  2. (8pts) Describe a data structure to store n intervals on the real line so that we can find the intervals that are completely contained in a query range [ x 1 , x 2 ] in time O(log n + k ), where k is the number of matching intervals. Your data structure should take O( n log n ) space. (Hint: use a range tree).
  3. (10pts) Give an example of a set of line segments in the plane where the greedy method of constructing an auto‐partition (where the splitting line is taken that induces the fewest number of cuts) results in a BSP of quadratic size.
  4. (a lot) [Open Problem!] Show that there exists a BSP of size O(n) for any set of n non‐intersection line segments in the plane.