-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jakedcolbert
committed
May 3, 2022
1 parent
a3fef01
commit 4eb83ef
Showing
7 changed files
with
89 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,42 @@ | ||
The input data is: | ||
|
||
------------------------------------------------ | ||
---------------- New DataSet: ------------------ | ||
------------------------------------------------ | ||
Wenham | ||
Hamilton 1 mi | ||
Hamilton | ||
Wenham 1 mi | ||
|
||
The input data is : | ||
The shortest paths from Wenham are: | ||
|
||
Salem | ||
Beverly 2.4 mi via bridge | ||
Danvers 3.7 mi via bridge | ||
Lynn 4.9 mi | ||
Beverly | ||
Danvers 2.9 mi | ||
Salem 2.4 mi via bridge | ||
Wenham 5.2 mi | ||
Danvers | ||
Beverly 2.9 mi | ||
Wenham 4.2 mi | ||
Salem 3.7 mi via bridge | ||
Lynn | ||
Salem 4.9 mi | ||
Wenham | ||
Beverly 5.2 mi | ||
Danvers 4.2 mi | ||
|
||
|
||
The shortest routes from Salem are: | ||
|
||
The shortest route from Salem to Wenham is 7.6 mi: | ||
Salem | ||
Beverly | ||
Wenham | ||
The shortest route from Salem to Beverly is 2.4 mi: | ||
Salem | ||
Beverly | ||
The shortest route from Salem to Danvers is 3.7 mi: | ||
Salem | ||
Danvers | ||
The shortest route from Salem to Lynn is 4.9 mi: | ||
Salem | ||
Lynn | ||
|
||
------------------------------------------------ | ||
------------------------------------------------ | ||
The shortest path from Wenham to Hamilton is 1 mi: | ||
Wenham | ||
Hamilton | ||
|
||
The road upgrading goal can be achieved at minimal cost by upgrading: | ||
Hamilton to Wenham | ||
|
||
Salem to Beverly | ||
Danvers to Beverly | ||
Wenham to Danvers | ||
Salem to Lynn | ||
|
||
------------------------------------------------ | ||
------------------------------------------------ | ||
|
||
------------------------------------------------------------------ | ||
The input data is: | ||
|
||
------------------------------------------------ | ||
---------------- New DataSet: ------------------ | ||
------------------------------------------------ | ||
A | ||
B 1 mi via bridge | ||
B | ||
A 1 mi via bridge | ||
C 1 mi via bridge | ||
C | ||
B 1 mi via bridge | ||
|
||
The input data is : | ||
The shortest paths from A are: | ||
|
||
Wenham | ||
Hamilton 1 mi | ||
Hamilton | ||
Wenham 1 mi | ||
|
||
|
||
The shortest routes from Wenham are: | ||
|
||
The shortest route from Wenham to Hamilton is 1 mi: | ||
Wenham | ||
Hamilton | ||
|
||
------------------------------------------------ | ||
------------------------------------------------ | ||
The shortest path from A to B is 1 mi: | ||
A | ||
B | ||
The shortest path from A to C is 2 mi: | ||
A | ||
B | ||
C | ||
|
||
The road upgrading goal can be achieved at minimal cost by upgrading: | ||
B to A | ||
C to B | ||
|
||
Hamilton to Wenham | ||
|
||
------------------------------------------------ | ||
------------------------------------------------ | ||
|
||
------------------------------------------------------------------ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
The input data is: | ||
|
||
Wenham | ||
Hamilton 1 mi | ||
Hamilton | ||
Wenham 1 mi | ||
|
||
The shortest paths from Wenham are: | ||
|
||
The shortest path from Wenham to Hamilton is 1 mi: | ||
Wenham | ||
Hamilton | ||
|
||
The road upgrading goal can be achieved at minimal cost by upgrading: | ||
Hamilton to Wenham | ||
|
||
|
||
------------------------------------------------------------------ | ||
|
||
The input data is: | ||
|
||
A | ||
B 1 mi via bridge | ||
B | ||
A 1 mi via bridge | ||
C 1 mi via bridge | ||
C | ||
B 1 mi via bridge | ||
|
||
The shortest paths from A are: | ||
|
||
The shortest path from A to B is 1 mi: | ||
A | ||
B | ||
The shortest path from A to C is 2 mi: | ||
A | ||
B | ||
C | ||
|
||
The road upgrading goal can be achieved at minimal cost by upgrading: | ||
B to A | ||
C to B | ||
|
||
|
||
------------------------------------------------------------------ |