SlideShare ist ein Scribd-Unternehmen logo
1 von 36
By:
Mahe Samrin Firdous
M.E Software Engineering(1st Sem)
“A Dynamic Index Structure For Spatial
Searching”.
The B-Tree provided a foundation for
R-Trees
Region-Trees (R-Trees)
R1
R2
R1 R2
R3 R4 R5
R3
R4
R5
R6
R7
R6 R7
R8
R9
R10
R8 R9 R10
R13
R14
R13 R14
R15
R16
R15 R16
B-Trees cannot store new types of data
Specifically people wanted to store
geometrical data and multi-dimensional data
The R-Tree provided a way to do that (thanks
to Antonin Guttman ‘84)
Allows Overlapping.
R-Trees can organize any-dimensional data
by representing the data by a minimum
bounding region(MBR).
Each node bounds it’s children.
The leaves point to the actual objects
(stored on disk pages)
The height is always log n. It is height
balanced.
Root has at least two children
a
b
c
d
m
a b c d e f g h i j k l
m n o p
a
b
c
d
m
e fn
a b c d e f g h i j k l
m n o p
a
b
c
d
m
e fn
h
g
i
o p
a b c d e f g h i j k l
m n o p
j
k
l
• Similar to insertion into B+-tree
but may insert into any leaf; leaf
splits in case capacity exceeded.
–Which leaf to insert into? (Choose Leaf)
–How to split a node? (Node Split)
m
n
o p
m
n
o
17
a
b
c
d
a
b
c
d
Bad split
Good split
• Search for the rectangle
• If the rectangle is found, remove it.
• Adjust the rectangles making them
smaller.
• If the node is too empty (deficient):
• delete the node recursively at its parent
• insert all entries of the deleted node into the R-tree
Re-use of INSERT routine Incrementally
refines spatial structure
Similar to B-tree search
Quite easy & straight forward (Traverse
the whole tree starting at the root node)
No guarantee on good worst-case
performance! (Possible overlapping of
rectangles of entries within a single
node!). Again, dependent on geometries.
Average case-O(logMn)
• R+ trees differ from R trees in that:
– No overlapping
– An object ID may be stored in
more than one leaf node.
• Advantages
– Search is easier.
– A fewer nodes are visited than
with the R-tree.
• Disadvantages
– Since rectangles are duplicated,
it is larger than R tree.
– Construction & maintenance
is more complex.
R-Tree MBRs
R+-Tree MBRs
• Data objects in the map
are represented by the
Minimum Bounding
Rectangles (MBRs)
The initial application that motivated Guttman to
his pioneering research was VLSI design
(i.e., how to efficiently answer whether a space is
already covered by a chip or not).
A VLSI integrated-circuit
The system extracts robust features from images. These features are
used for indexing the images in a database using an R-tree.
When a query is made about whether a test image is a replica of an
image in the database, then the R-tree is traversed.
Original
Fingerprint image
(left side) and a
fake finger (right
side), almost
indistinguishable.
Template of the pores and search along ridges.
Fingerprint image (a) where
pores can be easily noticed
as small “holes” along ridges
flow (as evident in the zoom
(b)).
(a) (b)
In astronomical data collections, there are many data that can be thought of as
points in a multi-dimensional space and are then suitable to be indexed using R-
trees .Coordinates on the sky can be (and often are) represented in a database as
ordered couples of longitude and latitude.
A common example of spatial data can be seen in a road map. Spatial
data lets you use R-tree indexing .A road map is a two-dimensional
object that contains points, lines, and polygons that can represent
cities, roads, and political boundaries such as states or provinces.
Supplier: Divya, Affinis Technosoft, Excellex, JB Systems,
Sterling Securities, Dotway Technologies, Sofgen India ,etc
Virtual Sky Astronomy for iPad, iPhones on the App Store.
In many scientific applications
such as Earth Observation
System (EOSDIS) it is a
daunting task to index ever
increasing volume of complex
data that are continuously
added to databases. To
efficiently manage
multidimensional data in
scientific and data
warehousing environments, R-
tree based index structures
have been widely used
R-trees (data structure)
R-trees (data structure)

Weitere ähnliche Inhalte

Kürzlich hochgeladen

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Kürzlich hochgeladen (20)

Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 

Empfohlen

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Empfohlen (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

R-trees (data structure)

  • 1.
  • 2. By: Mahe Samrin Firdous M.E Software Engineering(1st Sem)
  • 3. “A Dynamic Index Structure For Spatial Searching”. The B-Tree provided a foundation for R-Trees Region-Trees (R-Trees)
  • 4.
  • 5. R1 R2 R1 R2 R3 R4 R5 R3 R4 R5 R6 R7 R6 R7 R8 R9 R10 R8 R9 R10 R13 R14 R13 R14 R15 R16 R15 R16
  • 6. B-Trees cannot store new types of data Specifically people wanted to store geometrical data and multi-dimensional data The R-Tree provided a way to do that (thanks to Antonin Guttman ‘84) Allows Overlapping.
  • 7. R-Trees can organize any-dimensional data by representing the data by a minimum bounding region(MBR). Each node bounds it’s children. The leaves point to the actual objects (stored on disk pages) The height is always log n. It is height balanced. Root has at least two children
  • 8.
  • 9.
  • 10. a b c d m a b c d e f g h i j k l m n o p
  • 11. a b c d m e fn a b c d e f g h i j k l m n o p
  • 12. a b c d m e fn h g i o p a b c d e f g h i j k l m n o p j k l
  • 13.
  • 14. • Similar to insertion into B+-tree but may insert into any leaf; leaf splits in case capacity exceeded. –Which leaf to insert into? (Choose Leaf) –How to split a node? (Node Split)
  • 16. m n o
  • 18.
  • 19.
  • 20.
  • 21. • Search for the rectangle • If the rectangle is found, remove it. • Adjust the rectangles making them smaller. • If the node is too empty (deficient): • delete the node recursively at its parent • insert all entries of the deleted node into the R-tree Re-use of INSERT routine Incrementally refines spatial structure
  • 22. Similar to B-tree search Quite easy & straight forward (Traverse the whole tree starting at the root node) No guarantee on good worst-case performance! (Possible overlapping of rectangles of entries within a single node!). Again, dependent on geometries. Average case-O(logMn)
  • 23. • R+ trees differ from R trees in that: – No overlapping – An object ID may be stored in more than one leaf node. • Advantages – Search is easier. – A fewer nodes are visited than with the R-tree. • Disadvantages – Since rectangles are duplicated, it is larger than R tree. – Construction & maintenance is more complex. R-Tree MBRs R+-Tree MBRs
  • 24.
  • 25. • Data objects in the map are represented by the Minimum Bounding Rectangles (MBRs)
  • 26. The initial application that motivated Guttman to his pioneering research was VLSI design (i.e., how to efficiently answer whether a space is already covered by a chip or not). A VLSI integrated-circuit
  • 27. The system extracts robust features from images. These features are used for indexing the images in a database using an R-tree. When a query is made about whether a test image is a replica of an image in the database, then the R-tree is traversed. Original Fingerprint image (left side) and a fake finger (right side), almost indistinguishable.
  • 28. Template of the pores and search along ridges. Fingerprint image (a) where pores can be easily noticed as small “holes” along ridges flow (as evident in the zoom (b)). (a) (b)
  • 29. In astronomical data collections, there are many data that can be thought of as points in a multi-dimensional space and are then suitable to be indexed using R- trees .Coordinates on the sky can be (and often are) represented in a database as ordered couples of longitude and latitude.
  • 30. A common example of spatial data can be seen in a road map. Spatial data lets you use R-tree indexing .A road map is a two-dimensional object that contains points, lines, and polygons that can represent cities, roads, and political boundaries such as states or provinces.
  • 31.
  • 32. Supplier: Divya, Affinis Technosoft, Excellex, JB Systems, Sterling Securities, Dotway Technologies, Sofgen India ,etc
  • 33. Virtual Sky Astronomy for iPad, iPhones on the App Store.
  • 34. In many scientific applications such as Earth Observation System (EOSDIS) it is a daunting task to index ever increasing volume of complex data that are continuously added to databases. To efficiently manage multidimensional data in scientific and data warehousing environments, R- tree based index structures have been widely used