Preview

Dijktra's Shortest Path Algorithm

Powerful Essays
Open Document
Open Document
1927 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Dijktra's Shortest Path Algorithm
| |Kingdom of Saudi Arabia
Ministry of Higher Education
Jazan University, Jazan | |

A DIJKSTRA SHORTEST PATH ALGORITHM

Faculty of Computer Science & Information system

ABSTRACT

Dijkstra Algorithm is utilized to compute shortest path in a network. It is essential to explain the different types of connected, directed and weighted graphs. Tree is also discussed with the help of graph.
Dijkstra shortest path is shown and described with the example. Pseudo code and algorithm are also included along with their efficiency and applications. The different aspects of related algorithms were discussed, such as A* algorithm, Bellman–Ford algorithm and Prim’s algorithm

Keywords – Algorithm, Network, Tree, Pseudo code

INTRODUCTION

Graphs ➢ G (V, E) where: - V is vertex set - E is edge set: every e in E connects two vertices -If (i, j) connected they are said adjacent -Edge e = (i, j) is said incident to i and j -|V| = cardinality of the vertex set ➢ A graph G(V, E) can be represented by |V| x |V| adjacency matrix ➢ A path between vertices i and j is a sequence of vertices and edges starting with vertex i and ending in j, such that every edge is incident to the preceding and following vertices. ➢ A path is simple if every node/edge appears only once. ➢ Distance between vertices i and j: minimum number of edges along a path from i to j ➢ Cycle: simple path where starting vertex coincides with ending vertex ➢ A graph is connected if there exists a path between any possible vertex pair i and j ➢ A graph is directed if edges have a direction. In this case, (i, j) belonging to E does not imply that (j, i) belongs to E. Edges are called arcs in this case ➢ A graph is weighted if every edge (or arc) comes with a number .

Tree
Graph T is a tree if: ➢ One and only one simple path between every



References: 1. http://tide4javascript.com/?s=Dijkstra 2. http://www.cs.sunysb.edu/~skiena/combinatorica/animations/dijkstra.html 3. http://www.unf.edu/~wkloster/foundations/DijkstraApplet/DijkstraApp l et.htm 4. http://www.cs.auckland.ac.nz/software/AlgAnim/dijkstra.html 5. http://www.cs.mcgill.ca/~cs251/OldCourses/1997/topic29/ 6. http://en.wikipedia.org/wiki/Dijkstra 's_algorithm

You May Also Find These Documents Helpful

  • Good Essays

    Routing is the methodology of selecting way or path in a system and also to send network traffic in this path or way and route is the way to send the system traffic. There are two types of routes. One is static routing and other…

    • 1266 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Network Topology – A drawing of a series of connected nodes via links, including descriptions.…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Step 1: Construct a network diagram for the project. (NOTE: EF for activity H should be 19)…

    • 552 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Between two nodes in a network there can be many connecting paths but usually shortest path is considered best. It means any information exchange between two nodes also go through all nodes appearing in shortest path. By this reason any node involved in shortest paths can have…

    • 596 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Professor Philip Vaccaro MGMT E-5050 STRATEGIC RESOURCE ALLOCATION and PLANNING 3rd (FINAL) EXAMINATION , Aggregate Planning (slides) and Chapter 12 (text) NAME_____Due Thursday, January 23rd , 2014 MULTIPLE CHOICE 1. In the aggregate planning problem, total labor force costs are: a. $96,562.50 b. $93,827.00 c. $93,750.00 d. none of the above. 2.…

    • 882 Words
    • 8 Pages
    Good Essays
  • Powerful Essays

    Nt1310 Unit 3 Quiz

    • 1152 Words
    • 5 Pages

    Refer to the exhibit. The network in the exhibit is fully operational. What two statements correctly describe the routing for the topologythat is shown? (Choose two.)…

    • 1152 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Cse 373 Final Note

    • 955 Words
    • 4 Pages

    Null Path: The path length of the given node to the nearest descendant null node of the binary tree…

    • 955 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Unit 8 Assignment 1

    • 349 Words
    • 1 Page

    IP route: One entry in an IP routing table that lists some potential destination (usually a network ID or subnet ID) as forwarding instructions, including the interface out which the router should forward the IP packet.…

    • 349 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Unit 8 assignment 1

    • 347 Words
    • 2 Pages

    IP Route – One entry in an IP routing table that lists some potential destination (usually a network ID or subnet ID) as forwarding instructions, including the interface out which the router should forward the IP packet.…

    • 347 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT 1210

    • 401 Words
    • 2 Pages

    IP Route – One entry in an IP routing table that lists some potential destination (usually a network ID or subnet ID) as forwarding instructions, including the interface out which the router should forward the IP packet.…

    • 401 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The first characteristic in the LAN architecture is the physical arrangement of the network. This is how the nodes connect. The topology of an LAN is the design pattern of interconnections between the computers and network sectors. The second component is the method of access for the nodes. Specifically, how the nodes connect to the transmission medium. A network interface card is a device that permits computers to be joined together in a network. The NIC acts as the translator; it allows the devices to direct data on the LAN. The NIC has a port to insert a cable that allows the device to be connected the network.…

    • 620 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    It 242 Packet Switching

    • 729 Words
    • 3 Pages

    The important thing to look for in transmitting information over such a complex network is the path or circuit. The devices making up the path are called nodes. For instance, switches, routers and some other network devices, are nodes.…

    • 729 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Review Report on A Heuristic Routing Protocol for Wireless Sensor Networks in Home Automation (WSNHA) Proposed by Xiao Hui Li, Seung Ho Hong and Kang Ling Fang This review report summarizes the proposed concept of WSNHA greedy-algorithm heuristic routing(GAHR) protocol by using the Greedy algorithm and A* heuristic path finding to find a optimal route from source to destination while simultaneously records the changes in network topology. WSNHA-GAHR protocol aims to address the challenge of when implementing WSNHA -- high energy efficiency, low storage and simple algorithm, high dependency of sensor node distribution and self adaptation to network topology changes The Greedy algorithm is a simple approach that finds the shortest and optimum route from the source to destination, based on the immediate information known by the node to its neighbours and forwards the packet to the neighbour closest to the destination. The decision make does not account to effects in future. The selection function is based on f = min (d1, d2,...,dN), where di is the distance between ith neighbour of X and the destination for i ϵ [1,N]. To resolve infinite loop issue caused by Greedy algorithm, the WSNHA-GAHR protocol uses the A*route finding algorithm, a distance-plus-cost function [h(x) = d(x) + c(x)] to find the least-cost path from a given initial node to the destination node taking account the distance already traveled. d(x) is the path cost function and c(x) is an admissible heuristic estimate of the distance to destination. The main idea of the Algorithm is that a node,S chooses the smallest heuristic value of its neighbours as its next hop (example n1), set and broadcast a new heuristic value[h(S) = dsn1 + h(n1)] to its neighbours. When packet is forwarded to n1 from S, n1 finds its neighbours in the similar way. Each node maintains three tables: Ntable (records neighbours' coordinates of the local node), Htable (records heuristic value between local node and the destination…

    • 1043 Words
    • 5 Pages
    Powerful Essays
  • Powerful Essays

    online viewing of grades

    • 4499 Words
    • 16 Pages

    Network topology is the arrangement of the various elements (links, nodes, etc.) of a computer network.[1][2] Essentially, it is the topological[3] structure of a network, and may be depicted physically or logically. Physical topology refers to the placement of the network's various components, including device location and cable installation, while logical topology shows how data flows within a network, regardless of its physical design. Distances between nodes, physical interconnections, transmission rates, and/or signal types may differ between two networks, yet their topologies may be identical.…

    • 4499 Words
    • 16 Pages
    Powerful Essays
  • Good Essays

    Butterfly Networks

    • 1194 Words
    • 5 Pages

    Figure (A) shows an example in which the connection pattern between Columns 0 and 1 has been interchanged with that between Columns 1 and 2. It is easily seen that if we redraw the network by interchanging the places of Rows 1 and 2 as well as Rows 5 and 6, the resulting diagram will look exactly like the left-hand diagram in Fig. (A). The butterfly network is quite versatile. Many other independently developed networks are in fact butterfly network in disguise. Take a fat tree, for example. Recall that a…

    • 1194 Words
    • 5 Pages
    Good Essays

Related Topics