Download presentation
Presentation is loading. Please wait.
Published byTamsyn Gilbert Modified over 9 years ago
1
CMU SCS 15-826: Multimedia Databases and Data Mining Lecture #12: Fractals - case studies Part III (quadtrees, knn queries) C. Faloutsos
2
CMU SCS 15-826Copyright: C. Faloutsos (2014)2 Must-read Material Alberto Belussi and Christos Faloutsos, Estimating the Selectivity of Spatial Queries Using the `Correlation' Fractal Dimension Proc. of VLDB, p. 299-310, 1995 Estimating the Selectivity of Spatial Queries Using the `Correlation' Fractal Dimension
3
CMU SCS 15-826Copyright: C. Faloutsos (2014)3 Optional Material Optional, but very useful: Manfred Schroeder Fractals, Chaos, Power Laws: Minutes from an Infinite Paradise W.H. Freeman and Company, 1991
4
CMU SCS 15-826Copyright: C. Faloutsos (2014)4 Outline Goal: ‘Find similar / interesting things’ Intro to DB Indexing - similarity search Data Mining Optional
5
CMU SCS 15-826Copyright: C. Faloutsos (2014)5 Indexing - Detailed outline primary key indexing secondary key / multi-key indexing spatial access methods –z-ordering –R-trees –misc fractals –intro –applications text... Optional
6
CMU SCS 15-826Copyright: C. Faloutsos (2014)6 Indexing - Detailed outline fractals –intro –applications disk accesses for R-trees (range queries) dimensionality reduction dim. curse revisited quad-tree analysis [Gaede+] nn queries [Belussi+] Optional ✔ ✔ ✔
7
CMU SCS 15-826Copyright: C. Faloutsos (2014)7 Fractals and Quadtrees Problem: how many quadtree nodes will we need, to store a region in some level of approximation? [Gaede+96] Optional Faloutsos, C. and V. Gaede (Sept. 1996). Analysis of the z- ordering Method Using the Hausdorff Fractal Dimension. VLDB, Bombay, India.
8
CMU SCS 15-826Copyright: C. Faloutsos (2014)8 Fractals and Quadtrees I.e.: Optional
9
CMU SCS 15-826Copyright: C. Faloutsos (2014)9 Fractals and Quadtrees I.e.: level of quadtree # of quadtree ‘blocks’ (= # gray nodes) ? Optional
10
CMU SCS 15-826Copyright: C. Faloutsos (2014)10 Fractals and Quadtrees Datasets: Franconia Brain Atlas Optional
11
CMU SCS 15-826Copyright: C. Faloutsos (2014)11 Fractals and Quadtrees Hint: –assume that the boundary is self-similar, with a given fd –how will the quad-tree (oct-tree) look like? Optional
12
CMU SCS 15-826Copyright: C. Faloutsos (2014)12 Fractals and Quadtrees white black gray Optional
13
CMU SCS 15-826Copyright: C. Faloutsos (2014)13 Fractals and Quadtrees Let p g (i) the prob. to find a gray node at level i. If self-similar, what can we say for p g (i) ? Optional
14
CMU SCS 15-826Copyright: C. Faloutsos (2014)14 Fractals and Quadtrees Let p g (i) the prob. to find a gray node at level i. If self-similar, what can we say for p g (i) ? A: p g (i) = p g = constant Optional
15
CMU SCS 15-826Copyright: C. Faloutsos (2014)15 Fractals and Quadtrees Assume only ‘gray’ and ‘white’ nodes (ie., no volume’) Assume that p g is given - how many gray nodes at level i? Optional
16
CMU SCS 15-826Copyright: C. Faloutsos (2014)16 Fractals and Quadtrees Assume only ‘gray’ and ‘white’ nodes (ie., no volume’) Assume that p g is given - how many gray nodes at level i? A: 1 at level 0; 4*p g (4*p g )* (4*p g )... (4*p g ) i … Optional
17
CMU SCS 15-826Copyright: C. Faloutsos (2014)17 Fractals and Quadtrees I.e.: level of quadtree (‘i’) # of quadtree ‘blocks’ ? (4*p g ) i Optional
18
CMU SCS 15-826Copyright: C. Faloutsos (2014)18 Fractals and Quadtrees I.e.: level of quadtree log(# of quadtree ‘blocks’) ? log[(4*p g ) i ] Optional
19
CMU SCS 15-826Copyright: C. Faloutsos (2014)19 Fractals and Quadtrees Conclusion: Self-similarity leads to easy and accurate estimation level log 2 (#blocks) Optional
20
CMU SCS 15-826Copyright: C. Faloutsos (2014)20 Fractals and Quadtrees Conclusion: Self-similarity leads to easy and accurate estimation level log 2 (#blocks) Optional
21
CMU SCS 15-826Copyright: C. Faloutsos (2014)21 Fractals and Quadtrees Optional
22
CMU SCS 15-826Copyright: C. Faloutsos (2014)22 Fractals and Quadtrees level log(#blocks) Optional
23
CMU SCS 15-826Copyright: C. Faloutsos (2014)23 Fractals and Quadtrees Final observation: relationship between p g and fractal dimension? Optional
24
CMU SCS 15-826Copyright: C. Faloutsos (2014)24 Fractals and Quadtrees Final observation: relationship between p g and fractal dimension? A: very close: (4*p g ) i = # of gray nodes at level i = # of Hausdorff grid-cells of side (1/2) i = r Eventually: D H = 2 + log 2 ( p g ) and, for E-d spaces: D H = E + log 2 ( p g ) Optional
25
CMU SCS 15-826Copyright: C. Faloutsos (2014)25 Fractals and Quadtrees for E-d spaces: D H = E + log 2 ( p g ) Sanity check: - point in 2-d: D H = 0 p g = ?? -line in 2-d: D H = 1 p g = ?? -plane in 2-d: D H =2 p g = ?? -point in 3-d: D H = 0 p g = ?? Optional
26
CMU SCS 15-826Copyright: C. Faloutsos (2014)26 Fractals and Quadtrees for E-d spaces: D H = E + log 2 ( p g ) Sanity check: - point in 2-d: D H = 0 p g = 1/4 - line in 2-d: D H = 1 p g = 1/2 -plane in 2-d: D H =2 p g = 1 -point in 3-d: D H = 0 p g = 1/8 Optional
27
CMU SCS 15-826Copyright: C. Faloutsos (2014)27 Fractals and Quadtrees Final conclusions: self-similarity leads to estimates for # of z- values = # of quadtree/oct-tree blocks close dependence on the Hausdorff fractal dimension of the boundary Optional
28
CMU SCS 15-826Copyright: C. Faloutsos (2014)28 Indexing - Detailed outline fractals –intro –applications disk accesses for R-trees (range queries) dimensionality reduction dim. curse revisited quad-tree analysis [Gaede+] nn queries [Belussi+] Optional ✔ ✔ ✔ ✔
29
CMU SCS 15-826Copyright: C. Faloutsos (2014)29 NN queries Q: in NN queries, what is the effect of the shape of the query region? [Belussi+95] r L inf L2L2 L1L1
30
CMU SCS 15-826Copyright: C. Faloutsos (2014)30 NN queries Q: in NN queries, what is the effect of the shape of the query region? that is, for L2, and self-similar data: log(d) log(#pairs-within(<=d)) r L2L2 D2D2
31
CMU SCS 15-826Copyright: C. Faloutsos (2014)31 NN queries Q: What about L 1, L inf ? log(d) log(#pairs-within(<=d)) r L2L2 D2D2
32
CMU SCS 15-826Copyright: C. Faloutsos (2014)32 NN queries Q: What about L 1, L inf ? A: Same slope, different intercept log(d) log(#pairs-within(<=d)) r L2L2 D2D2
33
CMU SCS 15-826Copyright: C. Faloutsos (2014)33 NN queries Q: What about L 1, L inf ? A: Same slope, different intercept log(d) log(#neighbors)
34
CMU SCS 15-826Copyright: C. Faloutsos (2014)34 NN queries Q: what about the intercept? Ie., what can we say about N 2 and N inf r L2L2 N 2 neighbors r L inf N inf neighbors volume: V 2 volume: V inf SKIP Optional
35
CMU SCS 15-826Copyright: C. Faloutsos (2014)35 NN queries Consider sphere with volume V inf and r’ radius r L2L2 N 2 neighbors r L inf N inf neighbors volume: V 2 volume: V inf r’ SKIP Optional
36
CMU SCS 15-826Copyright: C. Faloutsos (2014)36 NN queries Consider sphere with volume V inf and r’ radius (r/r’)^E = V 2 / V inf (r/r’)^D 2 = N 2 / N 2 ’ N 2 ’ = N inf (since shape does not matter) and finally: SKIP Optional
37
CMU SCS 15-826Copyright: C. Faloutsos (2014)37 NN queries ( N 2 / N inf ) ^ 1/D 2 = (V 2 / V inf ) ^ 1/E SKIP Optional
38
CMU SCS 15-826Copyright: C. Faloutsos (2014)38 NN queries Conclusions: for self-similar datasets Avg # neighbors: grows like (distance)^D 2, regardless of query shape (circle, diamond, square, e.t.c. ) Optional
39
CMU SCS 15-826Copyright: C. Faloutsos (2014)39 Indexing - Detailed outline fractals –intro –applications disk accesses for R-trees (range queries) dimensionality reduction dim. curse revisited quad-tree analysis [Gaede+] nn queries [Belussi+] –Conclusions Optional
40
CMU SCS 15-826Copyright: C. Faloutsos (2014)40 Fractals - overall conclusions self-similar datasets: appear often powerful tools: correlation integral, NCDF, rank-frequency plot intrinsic/fractal dimension helps in –estimations (selectivities, quadtrees, etc) –dim. reduction / dim. curse (later: can help in image compression...)
41
CMU SCS 15-826Copyright: C. Faloutsos (2014)41 References 1. Belussi, A. and C. Faloutsos (Sept. 1995). Estimating the Selectivity of Spatial Queries Using the `Correlation' Fractal Dimension. Proc. of VLDB, Zurich, Switzerland. 2. Faloutsos, C. and V. Gaede (Sept. 1996). Analysis of the z- ordering Method Using the Hausdorff Fractal Dimension. VLDB, Bombay, India. 3. Proietti, G. and C. Faloutsos (March 23-26, 1999). I/O complexity for range queries on region data stored using an R- tree. International Conference on Data Engineering (ICDE), Sydney, Australia.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.