SlideShare a Scribd company logo
Advanced Data Structure
GPS navigation and problem
Prepared By:Vrunda(20570001)
Problem
• There are flight paths between cities. If there is a flight between city A and city B
then there is an edge between the cities. The cost of the edge can be the time that
flight takes to reach city B from A, or the amount of fuel used for the journey.
Represent this as a graph. The node can be represented by airport name or name
of the city. Justify the storage representation used.
• Take one example of graph and understand the concept of this problem.
Problem
Vadodara Ahmedabad Mumbai
Hyderabad Pune
Bangalore
45 min
90 min
120 min
45 min
45 min
45 min 50 min
30 min
GPS navigation
• How GPS works?
• How it implement using BFS
How GPS works?
• Digital maps, unlike humans, see streets as a bunch of nodes.
• The 2.6-mile road from the Columbus Circle station (59 st) to Cathedral
Pkwy (110 st) is called Central Park West.
• We (humans) consider this road a single entity (You may divide it into few
more segments based on metro stations or intersections, but not more than
that).
• We can see it in following figure.
How GPS works?
How GPS works?
• But a GPS navigation or any other digital map divides it into hundreds of
segments, with some only 24 meters long.
• A GPS looks at this street as a graph divided into vertices and edges.
• Vertices/node represent organization/hospital/theatre/hotel
• Edges represent how the path between two organization
How GPS works?
How it implement using BFS
• Graph Traversal in Maps:Take a look at this simple “Gridworld” which is
used for various graph traversal algorithms. Your digital map considers your
world a similar grid, which is made up of intersections connected to each
other.
How it implement using BFS
• Now for the grid shown, there could be N number of ways to traverse from
point A to point P.
• Following are two of these N ways in which one can travel from point A to
point P.
How it implement using BFS
• The Breadth First Search algorithm looks at the map as we do; it just can’t
perceive it completely.
• When you have to travel from one destination to another, you draw a line
from point A to point B, and then chose the road closest to that line.
• Algorithms repeat the same method choosing the node nearest to the
intersection points, eventually selecting the route with the shortest length.
How it implement using BFS
• Breadth First Search for GridWorld
• Step 1 – Visit neighboring nodes to A, i.e, B, E, and F. The vertex to B would
become 1-A and since E and F are also at an equal distance as B, hence
vertices to both E and F from A, could be denoted as 1-A too. There is the no
particular order for node preference but to make it simple, we began with B.
•
How it implement using BFS
• Step 2 – Since all the neighboring nodes of A have now been traced, we will
mark “A” as visited.
• And take the next visited node as the source node, which in this case is node
B. Visit all the adjacent nodes to B, which are C (2B) and G (2B).
• Node F is considered in the previous step from A, hence it is not visited
again. Once all neighboring nodes from one node are visited, mark them as
visited and move to the next step.
How it implement using BFS
How it implement using BFS
• Step 3 – Visit all neighboring nodes of Node E, which are I (2E) and J (2E),
and mark E as visited.
• Step 4 – Visit neighboring nodes of Node F, which is K (2F). Since all the
adjacent nodes have been visited by either B or E, mark node F as visited.
• Step 5 – Repeat the process until all the nodes on the grid are visited at least
once.
• Step 6 – Once all nodes are visited, you would find that the distance required
to reach from A to P is 3 and the shortest route is diagonal.
How it implement using BFS
•
• If you remove all the vertices which are not used to connect the nodes, as in
the graph above.
How it implement using BFS
• But in the real world, you can’t always move diagonally.
• Most of the portions in between the intersection are occupied by houses,
shops, malls, and metro stations.
• So how does BFS work in such circumstances? Let’s understand it with the
same GridWorld example, but in this case, the algorithm is not allowed to
move or visit a node diagonally.
How it implement using BFS
• Step 1 – Consider node A as source and visit all neighboring nodes of A,
which are B(1A) and E (1A). Mark A as visited.
How it implement using BFS
• Step 2 – Visit all neighboring nodes of B, node C (2B) and node F (2B), and
mark B as visited.
• Step 3 – Visit neighboring nodes to E, since F is already visited by B. Visit
node I (2E) and mark E as visited
How it implement using BFS
• Step 4 – Repeat the steps for all nodes until each of them has been visited at
least once. Mark nodes you considered visited.
• Step 5 – Remove all the unconnected/unwanted vertices, and convert the
graph into a minimum spanning tree connecting each node at least once.
• – Highlight the nodes connecting source node A to node P, which has
distance 6 and is the shortest path between two nodes.
How it implement using BFS
• You now understand why GPS navigation didn’t suggest the path A, E, I, M,
N, O, P or A,B,C, D, H, L, P though they were equidistant.
GPS Factors
• Elaspsed Time
• Speed limit
• Live traffic
• Stop signaling
Thank you !!

More Related Content

What's hot

CS6702 Unit III coloring ppt
CS6702   Unit III coloring pptCS6702   Unit III coloring ppt
CS6702 Unit III coloring ppt
Abilaasha Ganesan
 
graph representation.pdf
graph representation.pdfgraph representation.pdf
graph representation.pdf
amitbhachne
 
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph ColouringGraph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Saurabh Kaushik
 
Dijkstra's algorithm presentation
Dijkstra's algorithm presentationDijkstra's algorithm presentation
Dijkstra's algorithm presentation
Subid Biswas
 
Scales-engineering drawing b.tech
Scales-engineering drawing b.techScales-engineering drawing b.tech
Scales-engineering drawing b.tech
Mohd Mujahid Nasir
 
visible surface detection
visible surface detectionvisible surface detection
visible surface detection
Balakumaran Arunachalam
 
DLD Intro
DLD IntroDLD Intro
DLD Intro
NinJy Shabbir
 
The Floyd–Warshall algorithm
The Floyd–Warshall algorithmThe Floyd–Warshall algorithm
The Floyd–Warshall algorithm
José Juan Herrera
 
Graph representation
Graph representationGraph representation
Graph representation
Tech_MX
 
Full engineering-graphics
Full engineering-graphicsFull engineering-graphics
Full engineering-graphics
Jaimin Patel
 
Real Life Application of Digital Electronics
Real Life Application of Digital ElectronicsReal Life Application of Digital Electronics
Real Life Application of Digital Electronics
Taslima Yasmin Tarin
 
Lesson 11 Isometric Projection - Part I
Lesson 11 Isometric Projection - Part ILesson 11 Isometric Projection - Part I
Lesson 11 Isometric Projection - Part I
Jeyapoovan Thangasamy
 
Kruskal Algorithm
Kruskal AlgorithmKruskal Algorithm
Kruskal Algorithm
Snehasis Panigrahi
 
construction of ellipse and scales
construction of ellipse and scalesconstruction of ellipse and scales
construction of ellipse and scales
Chukka Nikhil Chakravarthy
 
CISC & RISC Architecture
CISC & RISC Architecture CISC & RISC Architecture
CISC & RISC Architecture
Suvendu Kumar Dash
 
Display techniques
Display techniquesDisplay techniques
Display techniques
Mohd Arif
 
Embedded Application : An Autonomous Robot or Line Follower Bot
Embedded Application : An Autonomous Robot or Line Follower BotEmbedded Application : An Autonomous Robot or Line Follower Bot
Embedded Application : An Autonomous Robot or Line Follower Bot
Er. Raju Bhardwaj
 
Amortized Analysis of Algorithms
Amortized Analysis of Algorithms Amortized Analysis of Algorithms
Amortized Analysis of Algorithms
sathish sak
 
Bucket sort
Bucket sortBucket sort
My presentation minimum spanning tree
My presentation minimum spanning treeMy presentation minimum spanning tree
My presentation minimum spanning tree
Alona Salva
 

What's hot (20)

CS6702 Unit III coloring ppt
CS6702   Unit III coloring pptCS6702   Unit III coloring ppt
CS6702 Unit III coloring ppt
 
graph representation.pdf
graph representation.pdfgraph representation.pdf
graph representation.pdf
 
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph ColouringGraph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
 
Dijkstra's algorithm presentation
Dijkstra's algorithm presentationDijkstra's algorithm presentation
Dijkstra's algorithm presentation
 
Scales-engineering drawing b.tech
Scales-engineering drawing b.techScales-engineering drawing b.tech
Scales-engineering drawing b.tech
 
visible surface detection
visible surface detectionvisible surface detection
visible surface detection
 
DLD Intro
DLD IntroDLD Intro
DLD Intro
 
The Floyd–Warshall algorithm
The Floyd–Warshall algorithmThe Floyd–Warshall algorithm
The Floyd–Warshall algorithm
 
Graph representation
Graph representationGraph representation
Graph representation
 
Full engineering-graphics
Full engineering-graphicsFull engineering-graphics
Full engineering-graphics
 
Real Life Application of Digital Electronics
Real Life Application of Digital ElectronicsReal Life Application of Digital Electronics
Real Life Application of Digital Electronics
 
Lesson 11 Isometric Projection - Part I
Lesson 11 Isometric Projection - Part ILesson 11 Isometric Projection - Part I
Lesson 11 Isometric Projection - Part I
 
Kruskal Algorithm
Kruskal AlgorithmKruskal Algorithm
Kruskal Algorithm
 
construction of ellipse and scales
construction of ellipse and scalesconstruction of ellipse and scales
construction of ellipse and scales
 
CISC & RISC Architecture
CISC & RISC Architecture CISC & RISC Architecture
CISC & RISC Architecture
 
Display techniques
Display techniquesDisplay techniques
Display techniques
 
Embedded Application : An Autonomous Robot or Line Follower Bot
Embedded Application : An Autonomous Robot or Line Follower BotEmbedded Application : An Autonomous Robot or Line Follower Bot
Embedded Application : An Autonomous Robot or Line Follower Bot
 
Amortized Analysis of Algorithms
Amortized Analysis of Algorithms Amortized Analysis of Algorithms
Amortized Analysis of Algorithms
 
Bucket sort
Bucket sortBucket sort
Bucket sort
 
My presentation minimum spanning tree
My presentation minimum spanning treeMy presentation minimum spanning tree
My presentation minimum spanning tree
 

Similar to GPS Navigation and problem

bfs tree searching ,sortingUntitled presentation.pptx
bfs tree searching ,sortingUntitled presentation.pptxbfs tree searching ,sortingUntitled presentation.pptx
bfs tree searching ,sortingUntitled presentation.pptx
saurabhpandey679381
 
NETWORK LAYER.ppt
NETWORK LAYER.pptNETWORK LAYER.ppt
NETWORK LAYER.ppt
DrTThendralCompSci
 
Lecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdfLecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdf
iftakhar8
 
Path Finding Solutions For Grid Based Graph
Path Finding Solutions For Grid Based GraphPath Finding Solutions For Grid Based Graph
Path Finding Solutions For Grid Based Graph
acijjournal
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
MOHIT AGARWAL
 
PATH FINDING SOLUTIONS FOR GRID BASED GRAPH
PATH FINDING SOLUTIONS FOR GRID BASED GRAPHPATH FINDING SOLUTIONS FOR GRID BASED GRAPH
PATH FINDING SOLUTIONS FOR GRID BASED GRAPH
acijjournal
 
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptxPPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
RaviKiranVarma4
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layer
sambhenilesh
 
Straight Line Distance Heuristic
Straight Line Distance HeuristicStraight Line Distance Heuristic
Straight Line Distance Heuristic
ahmad bassiouny
 
LAB7_FILS_DSA_graphs_datastructures.pptx
LAB7_FILS_DSA_graphs_datastructures.pptxLAB7_FILS_DSA_graphs_datastructures.pptx
LAB7_FILS_DSA_graphs_datastructures.pptx
ionutionescuionut
 
06_AJMS_334_21.pdf
06_AJMS_334_21.pdf06_AJMS_334_21.pdf
06_AJMS_334_21.pdf
BRNSS Publication Hub
 
Graph theory02
Graph theory02Graph theory02
Graph theory02
Sumit Nema
 
Algorithms and data Chapter 3 V Graph.pptx
Algorithms and data Chapter 3 V Graph.pptxAlgorithms and data Chapter 3 V Graph.pptx
Algorithms and data Chapter 3 V Graph.pptx
zerihunnana
 
Surveying - Module I - Introduction to surveying
Surveying - Module I - Introduction to surveying Surveying - Module I - Introduction to surveying
Surveying - Module I - Introduction to surveying
SHAMJITH KM
 
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
Khoa Mac Tu
 
Graphs
GraphsGraphs
levelling and contouring
levelling and contouringlevelling and contouring
levelling and contouring
ANAND JIBHKATE
 
Notes
NotesNotes
surveying contouring
surveying contouring surveying contouring
surveying contouring
ANAND JIBHKATE
 
routing algorithm
routing algorithmrouting algorithm
routing algorithm
AnusuaBasu
 

Similar to GPS Navigation and problem (20)

bfs tree searching ,sortingUntitled presentation.pptx
bfs tree searching ,sortingUntitled presentation.pptxbfs tree searching ,sortingUntitled presentation.pptx
bfs tree searching ,sortingUntitled presentation.pptx
 
NETWORK LAYER.ppt
NETWORK LAYER.pptNETWORK LAYER.ppt
NETWORK LAYER.ppt
 
Lecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdfLecture 16 - Dijkstra's Algorithm.pdf
Lecture 16 - Dijkstra's Algorithm.pdf
 
Path Finding Solutions For Grid Based Graph
Path Finding Solutions For Grid Based GraphPath Finding Solutions For Grid Based Graph
Path Finding Solutions For Grid Based Graph
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
 
PATH FINDING SOLUTIONS FOR GRID BASED GRAPH
PATH FINDING SOLUTIONS FOR GRID BASED GRAPHPATH FINDING SOLUTIONS FOR GRID BASED GRAPH
PATH FINDING SOLUTIONS FOR GRID BASED GRAPH
 
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptxPPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
PPT ON INTRODUCTION TO AI- UNIT-1-PART-2.pptx
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layer
 
Straight Line Distance Heuristic
Straight Line Distance HeuristicStraight Line Distance Heuristic
Straight Line Distance Heuristic
 
LAB7_FILS_DSA_graphs_datastructures.pptx
LAB7_FILS_DSA_graphs_datastructures.pptxLAB7_FILS_DSA_graphs_datastructures.pptx
LAB7_FILS_DSA_graphs_datastructures.pptx
 
06_AJMS_334_21.pdf
06_AJMS_334_21.pdf06_AJMS_334_21.pdf
06_AJMS_334_21.pdf
 
Graph theory02
Graph theory02Graph theory02
Graph theory02
 
Algorithms and data Chapter 3 V Graph.pptx
Algorithms and data Chapter 3 V Graph.pptxAlgorithms and data Chapter 3 V Graph.pptx
Algorithms and data Chapter 3 V Graph.pptx
 
Surveying - Module I - Introduction to surveying
Surveying - Module I - Introduction to surveying Surveying - Module I - Introduction to surveying
Surveying - Module I - Introduction to surveying
 
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
 
Graphs
GraphsGraphs
Graphs
 
levelling and contouring
levelling and contouringlevelling and contouring
levelling and contouring
 
Notes
NotesNotes
Notes
 
surveying contouring
surveying contouring surveying contouring
surveying contouring
 
routing algorithm
routing algorithmrouting algorithm
routing algorithm
 

Recently uploaded

TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
HODECEDSIET
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
mamunhossenbd75
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
enizeyimana36
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
Aditya Rajan Patra
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
zubairahmad848137
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 

Recently uploaded (20)

TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 

GPS Navigation and problem

  • 1. Advanced Data Structure GPS navigation and problem Prepared By:Vrunda(20570001)
  • 2. Problem • There are flight paths between cities. If there is a flight between city A and city B then there is an edge between the cities. The cost of the edge can be the time that flight takes to reach city B from A, or the amount of fuel used for the journey. Represent this as a graph. The node can be represented by airport name or name of the city. Justify the storage representation used. • Take one example of graph and understand the concept of this problem.
  • 3. Problem Vadodara Ahmedabad Mumbai Hyderabad Pune Bangalore 45 min 90 min 120 min 45 min 45 min 45 min 50 min 30 min
  • 4. GPS navigation • How GPS works? • How it implement using BFS
  • 5. How GPS works? • Digital maps, unlike humans, see streets as a bunch of nodes. • The 2.6-mile road from the Columbus Circle station (59 st) to Cathedral Pkwy (110 st) is called Central Park West. • We (humans) consider this road a single entity (You may divide it into few more segments based on metro stations or intersections, but not more than that). • We can see it in following figure.
  • 7. How GPS works? • But a GPS navigation or any other digital map divides it into hundreds of segments, with some only 24 meters long. • A GPS looks at this street as a graph divided into vertices and edges. • Vertices/node represent organization/hospital/theatre/hotel • Edges represent how the path between two organization
  • 9. How it implement using BFS • Graph Traversal in Maps:Take a look at this simple “Gridworld” which is used for various graph traversal algorithms. Your digital map considers your world a similar grid, which is made up of intersections connected to each other.
  • 10. How it implement using BFS • Now for the grid shown, there could be N number of ways to traverse from point A to point P. • Following are two of these N ways in which one can travel from point A to point P.
  • 11. How it implement using BFS • The Breadth First Search algorithm looks at the map as we do; it just can’t perceive it completely. • When you have to travel from one destination to another, you draw a line from point A to point B, and then chose the road closest to that line. • Algorithms repeat the same method choosing the node nearest to the intersection points, eventually selecting the route with the shortest length.
  • 12. How it implement using BFS • Breadth First Search for GridWorld • Step 1 – Visit neighboring nodes to A, i.e, B, E, and F. The vertex to B would become 1-A and since E and F are also at an equal distance as B, hence vertices to both E and F from A, could be denoted as 1-A too. There is the no particular order for node preference but to make it simple, we began with B. •
  • 13. How it implement using BFS • Step 2 – Since all the neighboring nodes of A have now been traced, we will mark “A” as visited. • And take the next visited node as the source node, which in this case is node B. Visit all the adjacent nodes to B, which are C (2B) and G (2B). • Node F is considered in the previous step from A, hence it is not visited again. Once all neighboring nodes from one node are visited, mark them as visited and move to the next step.
  • 14. How it implement using BFS
  • 15. How it implement using BFS • Step 3 – Visit all neighboring nodes of Node E, which are I (2E) and J (2E), and mark E as visited. • Step 4 – Visit neighboring nodes of Node F, which is K (2F). Since all the adjacent nodes have been visited by either B or E, mark node F as visited. • Step 5 – Repeat the process until all the nodes on the grid are visited at least once. • Step 6 – Once all nodes are visited, you would find that the distance required to reach from A to P is 3 and the shortest route is diagonal.
  • 16. How it implement using BFS • • If you remove all the vertices which are not used to connect the nodes, as in the graph above.
  • 17. How it implement using BFS • But in the real world, you can’t always move diagonally. • Most of the portions in between the intersection are occupied by houses, shops, malls, and metro stations. • So how does BFS work in such circumstances? Let’s understand it with the same GridWorld example, but in this case, the algorithm is not allowed to move or visit a node diagonally.
  • 18. How it implement using BFS • Step 1 – Consider node A as source and visit all neighboring nodes of A, which are B(1A) and E (1A). Mark A as visited.
  • 19. How it implement using BFS • Step 2 – Visit all neighboring nodes of B, node C (2B) and node F (2B), and mark B as visited. • Step 3 – Visit neighboring nodes to E, since F is already visited by B. Visit node I (2E) and mark E as visited
  • 20. How it implement using BFS • Step 4 – Repeat the steps for all nodes until each of them has been visited at least once. Mark nodes you considered visited. • Step 5 – Remove all the unconnected/unwanted vertices, and convert the graph into a minimum spanning tree connecting each node at least once. • – Highlight the nodes connecting source node A to node P, which has distance 6 and is the shortest path between two nodes.
  • 21. How it implement using BFS • You now understand why GPS navigation didn’t suggest the path A, E, I, M, N, O, P or A,B,C, D, H, L, P though they were equidistant.
  • 22. GPS Factors • Elaspsed Time • Speed limit • Live traffic • Stop signaling