Purchase Solution

Dijkstra's shortest path algorithm

Not what you're looking for?

Ask Custom Question

Requirements:

Implement Dijkstra's shortest path algorithm, findShortestPath.

Suggestions:

Write helper methods to find the next vertex or update the distance and predecessor structures.
Write tests for your helper methods, this will help ensure your code is correct.
Project layout

The project has the following directory layout:

Dijkstra/
src/
all program source code
lib/
all project library dependencies
test/
all test classes
There may also be a separate directory storing your compiled classes.

Building and testing:

Use your IDE to build your code and run the included JUnit tests.

Attachments
Purchase this Solution

Solution Summary

Dijkstra's shortest path algorithm are examined.

Purchase this Solution


Free BrainMass Quizzes
Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

C# variables and classes

This quiz contains questions about C# classes and variables.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.