IRJET-Review of Shortest Path Algorithm

Page 1

International Research Journal of Engineering and Technology (IRJET) Volume: 03 Issue: 08 |Aug -2016

www.irjet.net

e-ISSN: 2395 -0056

p-ISSN: 2395-0072

Review of Shortest Path Algorithm Thorat Surekha1, Rahane Santosh2 1At/Post

.Sangamner ,dist.Ahmednagar ,Country . India

2At/Post

.Sangamner ,dist .Ahmednagar ,Country . India

-----------------------------------------------------------------------***---------------------------------------------------------------2. LITERATURE REIVEW

Abstract - Shortest path algorithm find minimum distance

A graph can be used to represent a map where the cities are

path between source to destination .we use graph to solve

represented

shortest path distance problem . Graph is set of Edges and

roads are represented by edges within the graph. In these

vertices. A graph is a pictorial representation of a set of objects

paper brief descriptions and implementations of the three

where some pairs of objects are connected by links. Formally, a

shortest path algorithms being studied are presented2.1

graph is a pair of sets (V, E), where V is the set of vertices

Representation Of Graph.Graph can be represented using

and E is the set of edges, connecting the pairs of vertices.

adjacency matrix and adjacency list . Consider 2D array will

undirected graphs have edges that do not have a direction .

be adj[][], a slot adj[i][j] = 1 indicates that there is an edge

The edges indicate a two-way relationship, in that each edge

from vertex i to vertex j. Adjacency matrix for undirected

can be traversed in both directions. Directed graphs have

graph is always symmetric. Adjacency Matrix is used to

edges

a one-

represent weighted graphs. If adj[i][j] = w, then there is an

way relationship, in that each edge can only be traversed in a

edge from vertex i to vertex j with weight w. Removing an

single direction. Edges contain Wight which is used to

edge takes O(1) time. Queries like whether there is an edge

calculate shortest path from source to destination .consider

from vertex ‘u’ to vertex ‘v’ are efficient and can be done

example Airline route maps. Vertices represent airports, and

O(1). Consumes more space O(V^2). Even if the graph

there is an edge from vertex A to vertex B if there is a direct

contains less number of edges, it consumes the same space.

flight from the airport represented by A to the airport

Adding a vertex is O(V^2) time. We also use linked lists for

represented by B. There are different shortest path algorithm

representation of graph .Let the array be a[]. An entry a[i]

which solve shortest path problem. They are Dijkstra’s ,Floyd –

represents the linked list of vertices adjacent to the ith vertex.

Warshall ,Bellman Ford Algorithm.

This representation can also be used to represent a weighted

Key Words: Graph ,Dijkstra’s Algorithm,Floyd-Warshall

graph. The weights of edges can be stored in nodes of linked

Algorithm ,Bellman –Ford Algorithm

lists.

with

direction.

The

edges

indicate

by

vertices

and

the

routes

or

2.2 DIJKSTRA’S ALGORITHM :EXPLANATION AND 1.RESEARCH OBJECTIVES

IMPLEMENTATION

To determine representation of graph in computer with

Dijkstra's algorithm is used for finding the shortest

basic terms also find problem of shortest path problem .To

paths between nodes in a graph, which may represent,

discuss general aspect of ,Dijkstra’s Algorithm,Floyd-

for example, road networks. we can use a priority queue in

Warshall Algorithm ,Bellman –Ford Algorithm

which vertices are sorted by their increasing dist[] value. Then at each iteration, we will pick the vertex, u, with smallest dist[u] value and call relax(u,v) on all of ts neighbours, The only difference is

© 2016, IRJET

|

Impact Factor value: 4.45

|

ISO 9001:2008 Certified Journal

that

|

now we

add

Page 1956


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.