Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

for the brute force can you please do it by decision tree insted of a code Exercise 1 [10 points) (Traveling Salesperson Problem by Brute

for the brute force can you please do it by decision tree insted of a code image text in transcribed
Exercise 1 [10 points) (Traveling Salesperson Problem by Brute Force) Suppose we have a directed graph (like below) with n vertices labeled 1 through n, im- plemented using an n by n matrix where row j, column k contains the weight of the edge going from vertex j to vertex k, or a dash if there is no edge from j to k. The Traveling Salesperson Problem (TSP) is as follows: given a weight matrix as input, determine the cycle-a path that starts at vertex 1, hits all the vertices exactly once, and ends up back at vertex 1that has smallest total weight of its edge. Note that the minimum weight cycle might be oo. Figure out how to use the brute force technique to solve an instance of this problem, and dernonstrate your algorithm on the matrix below. Be sure to think about pruning, and what information should be kept in each node. To avoid me demanding that you fix your work, be sure that the nodes have enough information to allow construction of their child nodes, without any knowledge of where a node appears in the tree. Along the same lines, you must not have any information stored on the edges of the tree. 3 2 5 4 9 3 7 12 7 10 9 5 8 12 6 9 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

Students also viewed these Databases questions