SlideShare une entreprise Scribd logo
1  sur  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)

Contenu connexe

Dernier

%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
+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
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Dernier (20)

WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
+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...
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 

En vedette

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)
 

En vedette (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