# Shortest and Longest path Journey.

Metro is the most common term for underground rapid transit systems, which is a type of high-capacity public transport. Metro system network is provided on designated lines between stations to help passengers movements. you are about designing, analyzing, and implementing two algorithms with the following defined functionalities.

Write a clear pseudocode of each algorithm, then analyze them to find their time complexity:

1- Shortest-journey Algorithm is the algorithm of finding shortest journey between any two given stations.

2- Longest-journey Algorithm is the algorithm of finding longest journey between any two given stations.

use any programming language to do:

Read graph information from two txt files: [url removed, login to view] and [url removed, login to view] to represent corresponding metro network. The files are stated as follows:

o [url removed, login to view]: This file has one line per vertex and each line contains a text string with the station name.

o [url removed, login to view]: This file has three lines per edge. The first two lines give the stations names at either end of the connected line. Tail station then head station. The third line is a string of digits that gives the distance of the connected line between two stations.

To test the algorithms, generate a graph randomly with 20-30 vertices and each vertex has edges incident to about 25%-50% of the other vertices. Randomly assign positive weights to edges in the graphs. Then, write generated graph information into two txt files: [url removed, login to view] and [url removed, login to view] as stated above.

Results:

Test two algorithms on three graphs samples, one of them by using given text files samples [url removed, login to view] and edge.txt. Generate text files for testing two more samples. For each test sample, choose two vertices: one to be the source and the other to be the destination.

Skills: Algorithm, Java

( 1 review ) Riyadh, Saudi Arabia

Project ID: #15797981

## Awarded to:

josemontenegro13

Computer Engineer. Plenty of experience solving algorithmic problems via code. I can do this in Java, C++ or Python Relevant Skills and Experience Coding Proposed Milestones \$30 USD - Project

\$40 USD in 1 day
(61 Reviews)
5.2

## 4 freelancers are bidding on average \$46 for this job

zkstacks

Compelete solution of the problem can be provided using bell for algorithm for longest journey and dijakstra algorithm for shortest journey. Client's satisfaction is my primary goal. Contact me for quality work.

\$60 USD in 2 days
(3 Reviews)
2.8
\$50 USD in 4 days
(3 Reviews)
2.2
amolupraity

I have more than 4 years of experience in Data structure and Algorithm. Task mentioned will be completed within the proposed deadline. Relevant Skills and Experience I have more than 4 years of experience in Data stru More

\$35 USD in 2 days
(0 Reviews)
0.0