Question: 3 0 points total ] Collaborative Problem: Programming Assignment 2 ( PA 2 ) explores the Traveling Salesperson Problem ( TSP ) in the form
points total Collaborative Problem: Programming Assignment PA explores the Traveling Salesperson
Problem TSP in the form of the The Maryland Lighthouse Challenge a biennial event where people
race around the state of Maryland attempting to visit all historic lighthouses and one lightship spread out
among the most beautiful parts of the state. The winner is the first team that visits all of the lighthouses during
the challenge weekend. One of your professors and his wife have competed very favorably in this ;
The lighthouse challenge can be modeled as a variation of the traveling salesperson problem TSP that recurs
frequently in networking, semiconductor layouts,and efficient routing. This problem asks you for a strategy of
finding the shortest Hamiltonian path, the path and starting point that leads contestants to visit all lighthouses
finishing at the earliest possible time. Unlike traditional TSP you do not return to the starting lighthousethis
is a straight up race from a start point to a separate finish point.
Special notedespite the algorithm taking a starting lighthouse, you are expected to choose the best lighthouse
to start at Assume some caller function, a kickoff function, will try all combinations of starting light. See
the mention of the phantom below, which is an easy way to find the best starting light automatically.
If you need a template for writing algorithms, check this out at Overleaf.com, an online LATEX editorEven if
youre using Word, you can format at Overleaf and then paste a screenshot.
a points Construct a recursive, bruteforce algorithm for finding the optimal path among a small set of
lighthouses, starting at a given light, and analyze its running time.
Write a recursive bruteforce algorithm in good pseudocode that follows this signature. Note, it must use
recursion to operate that is part of this assignment:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
