5 views

Uploaded by vicky101

summary

- Level Recur
- phani
- Decision Tree
- Big Companies
- Interview questions
- pro
- tree2004.pdf
- chap8
- B
- algorithm questions
- 480883 Decision Trees
- Ranking Spatial Data by Quality Preferences
- Data Structures
- Tree lecture8.pdf
- Detailed Syllabus Ec 2013-14-9may2013
- Methods for Statistical Data Analysis With Decision Trees - Tutorial
- M3_Non Linear Data Structures
- Efficiently Delivering Data Packets Using Distributed Protocol for Runtime Groups Formed In Peer-to-Peer Network
- 04024389
- Introduction of Analysis Design & Algorithm

You are on page 1of 3

Assignment 1

Vibhor (MT13019)

Rdnn tree is a special type of tree whose non leaf nodes are of the form (ptr , rect, max_dnn) where ptr is pointer to child nodes , rect is MBR of child nodes and max_dnn is maximum of NN distance from all child nodes. Whereas leaf nodes (ptid , dnn) where ptid refers to d-dimensional point in data set and dnn is NN distance for that ptid. Insertion for insertion a point p we need to have NN of P as well as RNN of p. NN is needed so that we can put the entry of p in Rdnn tree and RNN is needed to update the dnn for points in RNN. We also have to update max_dnn of ascendant nodes of points in RNN because due to inclusion of this point in a subtree might change the value of max_dnn so we have to update the value of max_dnn of ascendant nodes of RNN points. For non-leaf node we find the distance between p and MBR composed of child nodes that is Rect i.e. D(p,Rect) if this distance is less than max_dnn of subtree then we again repeat same for child node otherwise we simply prune the subtree. If subtree at some level changes than we update the max_dnn value of ascending node and so on for upward nodes. For leaf node if D(p, ptid) < D(p,c) where is c is some previous node , this means point ptid is more closer than any other node and id D(p,ptid) < dnn which means ptid is NN of p. Now by this we can have a dnns(p) and then using simple r tree insertion algo we can add newly find NN of p into n.

Deletion : here for deleting a node p we first have to find RNN (p) and than for all those RNN points we have to perform NN query as previous NN of those points is obviously p which is getting removed so we have to update. Performing NN

query for all RNN points is cosly and moreover all the RNN points are close to each other as they are RNN points for same point viz. p. So we can perform batch NN query which find NN for all RNN points. And after this query we update the dnn value for each of RNN point in tree.

Q: How to use MINDIST, MINMAXDIST, MAXDIST heuristic in deciding whether to prune the result or further explore the nodes.

d Is the distance for MBR having NN MINDIST it is the minimum distance to closest face of MBR from query point q. MINMAXDIST it is the minimum of maximum distance to all the faces of MBR from q. MAXDIST it is the maximum distance from any face of MBR to point q.

1. D > MAXDIST -- Explore - in this case it says that MAXDIST from q to MBR is smaller than d which means q is more closer to MBR than NN at d so it should be explore for RNN points. 2. d > MINMAXDIST Explore in this case also we should explore for RNN points here distance for NN of MBR is greater than MINMAXDIST so there is possibility of existence of RNN. Above point will give RNN when some points exist on closest face of MBR Otherwise no RNN 3. d < MINDIST -- Prune here this condition says that current NN of MBR having distance d is smaller than MINDIST to MBR from point q which assures that q can never be RNN of MBR hence it should be prune out.

Algorithm based on Rdnn tree for NN algo use one more heuristic to prune some more data sets which makes it more efficient. What it do is lets say we have a query point q and we have to find NN for it. P is a point in dataset than euclidean distance between p and q is D(p,q). and dnns(p) is the distance between p and its nearest neighbor Here if D(p,q) < dnns(p)/2 for any p in data set S than p is NN for q. For point p, c(p,dnns(p)) is a circle centered at p and having radius dnns(p) If D(p,q) < dnns(p)/2 than for a point x outside the circle C D(x,q) >= dnns(p)/2 which means for any point outside the circle distance between q and x is greater than distance between p and q and hence p is NN for q. so while searching for NN if at leaf node we found any point for which D(p,q) < dnns(p)/2 is found than we can stop the search and report p as NN of q.

- Level RecurUploaded byakg299
- phaniUploaded byVamshi Krishna Singirikonda
- Decision TreeUploaded bysneharach
- Big CompaniesUploaded byArjun Talwar
- Interview questionsUploaded byconnected_hum_tum123
- proUploaded byShabin Muhammed
- tree2004.pdfUploaded byJenner Patrick Lopes Brasil
- chap8Uploaded byavid_reader_new
- BUploaded byChippyVijayan
- algorithm questionsUploaded byDhrubajyoti Hati
- 480883 Decision TreesUploaded bymspandey2000
- Ranking Spatial Data by Quality PreferencesUploaded byieeexploreprojects
- Data StructuresUploaded bySantosh Jhansi
- Tree lecture8.pdfUploaded bySelf Eternal
- Detailed Syllabus Ec 2013-14-9may2013Uploaded bysharmalove
- Methods for Statistical Data Analysis With Decision Trees - TutorialUploaded bylcm3766l
- M3_Non Linear Data StructuresUploaded byresmi_ng
- Efficiently Delivering Data Packets Using Distributed Protocol for Runtime Groups Formed In Peer-to-Peer NetworkUploaded byWhite Globe Publications (IJORCS)
- 04024389Uploaded bySatyajitMohapatra
- Introduction of Analysis Design & AlgorithmUploaded bysb_sriit
- Decision TreesUploaded bytondion
- 11 DS and Algorithm TreeUploaded byRahul Sharma
- Priority queues on parallel machinesUploaded byfonseca_r
- Clustering Based Lifetime Maximizing Aggregation Tree for Wireless Sensor NetworksUploaded byIJASCSE
- COMP2211-620055419Uploaded byjoseph_thesaint
- CSE-II-I-DS-UNIT-6.pdfUploaded bybskc_sunil
- Heap SortUploaded bymrbkiter
- Tree pptUploaded bySheelnidhi Pandey
- 1378535228 Tree Travers Al 06Uploaded byshinde_jayesh2005
- Optimal Binary Search TreeUploaded byCá Chép Nhỏ

- MCQs on Tree With AnswersUploaded byBabuLalSaini
- Dynamic DictionariesUploaded bymanishbhardwaj8131
- Heap data StructureUploaded byChamara Prasanna
- Physical DBs B+ TreeUploaded bySatya Prakash
- avl treeUploaded bysaiteja1234
- Indexing Structure for FilesUploaded byJyothy Swaroop
- Informe KD Tree (1)Uploaded byMatt Mendoza
- TreeUploaded byregisanne
- Binary TreeUploaded bynabil aldbeeb
- DS(II) Ch09 PriorityQueuesUploaded bymadirikiran
- Data structures and algorithms -HeapsUploaded byNicolas Salcedo
- DSnP PA1Uploaded byJames Tan
- Advanced Data StructuresUploaded bypramodtripathi7
- C Code for n-ary treeUploaded byveeru117
- trees-FNLUploaded bypreeti200726
- lec114Uploaded byMike Ash
- avl treesUploaded byVipasha Vasisht
- Binary TreeUploaded byaliasadsahu9304
- Optimal Binary Search TreeUploaded byRaghu
- AVL TREESUploaded bymadirikiran
- 2nd unit - 2mUploaded byPushpa Ramakrishnan Iyer
- Computer Notes - Data Structures - 11Uploaded byecomputernotes
- Tut 4 - SolUploaded byTinh Phong
- Binary Search TreeUploaded byprasath
- B Tree Index FilesUploaded byKishor Peddi
- Oracle PACUploaded byRamesh Foru
- 51658218 Non Linear Data StructuresUploaded bynaaz_pinu
- csc263Uploaded byhitman047
- Red Black TreesUploaded bysaiteja1234
- Leftist Skew Heaps.pptUploaded byRevathy