Home /
Expert Answers /
Computer Science /
write-a-code-in-c-write-a-c-program-to-get-a-graph-a-proposed-candidate-solution-i-e-a-of-set-pa284
(Solved): write a code in c++ Write a C Program to get a graph, a proposed candidate solution (i.e., a of set ...
write a code in c++
Write a C Program to get a graph, a proposed candidate solution (i.e., a of set vertices which mark the cities a traveling salesman has to visit, and check whether it covers the possible route to visit each city exactly once and return to the origin city) from the User. Output true if the given candidate solution is actually a possible route. Else, output the given candidate solution is not actually a solution. What is the time complexity of your program? For example, for the following graph and the possible route A??B?>C?D?>A, the algorithm should return true. Cost Adjacency matrix of the above graph =?0251015?2501045?101005?154550?? For example: