Лекция 3: Красно-чёрные деревья (Red-black trees). Скошенные деревья (Splay trees)
Trees 3
description
Transcript of Trees 3
![Page 1: Trees 3](https://reader035.fdocuments.us/reader035/viewer/2022070500/56816835550346895dddedd5/html5/thumbnails/1.jpg)
Trees 3
cs5984: Information VisualizationChris North
![Page 2: Trees 3](https://reader035.fdocuments.us/reader035/viewer/2022070500/56816835550346895dddedd5/html5/thumbnails/2.jpg)
Nifty App of the Day• SAS JMP
![Page 3: Trees 3](https://reader035.fdocuments.us/reader035/viewer/2022070500/56816835550346895dddedd5/html5/thumbnails/3.jpg)
Review• Connection (node & link)
• Hyperbolic, Conetree, …
• Containment (node in node)• Treemap, Sunburst, …
• Scale: <=1000
A
CB
A
B C
![Page 4: Trees 3](https://reader035.fdocuments.us/reader035/viewer/2022070500/56816835550346895dddedd5/html5/thumbnails/4.jpg)
Today• Beaudoin, “Cheops”, web
» Satya, Sumithra
![Page 5: Trees 3](https://reader035.fdocuments.us/reader035/viewer/2022070500/56816835550346895dddedd5/html5/thumbnails/5.jpg)
The Original Fisheye View• George Furnas, 1981 (pg 311)• Large information space• User controlled focus point• How to render items?
• Normal View: just pick items nearby• Fisheye View: pick items based on degree of interest
• Degree of Interest = function of distance from f and a priori importance
• DOI(x) = -dist(x,f) + imp(x)x
f
![Page 6: Trees 3](https://reader035.fdocuments.us/reader035/viewer/2022070500/56816835550346895dddedd5/html5/thumbnails/6.jpg)
Example: Tree structure• Distance = # links between f and x• Importance = level of x in tree
Distance:
I 3 A 2 a 3 i 4 ii 4 b 1 i 2 ii 0 B 4 a 5 i 6 ii 6 b 5 i 6 ii 6
Importance:
I 0 A -1 a -2 i -3 ii -3 b -2 i -3 ii -3 B -1 a -2 i -3 ii -3 b -2 i -3 ii -3
DOI:
I -3 A -3 a -5 i -7 ii -7 b -3 i -5 ii -3 B -5 a -7 i -9 ii -9 b -7 i -9 ii -9
f
![Page 7: Trees 3](https://reader035.fdocuments.us/reader035/viewer/2022070500/56816835550346895dddedd5/html5/thumbnails/7.jpg)
![Page 8: Trees 3](https://reader035.fdocuments.us/reader035/viewer/2022070500/56816835550346895dddedd5/html5/thumbnails/8.jpg)
![Page 9: Trees 3](https://reader035.fdocuments.us/reader035/viewer/2022070500/56816835550346895dddedd5/html5/thumbnails/9.jpg)
Assignment• Read for Thurs
• Wills, “NicheWorks”, web» Denzil, Aarthi
• Read for Tues• Korn, “Multi-Digraphs”, web
» Shumei, Yuying
• Homework #3: Tues Mar 20