Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Exam (elaborations) Traveling Salesman Problem Math in the modern world

Rating
-
Sold
-
Pages
2
Grade
A+
Uploaded on
06-11-2021
Written in
2020/2021

Sample problem to compute what is the shortest path to take. Traveling Salesman problem

Institution
Course

Content preview

Laundry shop/cleaner- C
Drugstore- D
Target Mall – T
In which order should she do these errands in order to minimize the time spent on her broom?
Aaronn Daphne M. Gatchalian BSCS 1-5
Use both methods (brute-force algorithm and nearest- neighbor method) and compare. Show
MODULE 6 ASSIGNMENT 1: Traveling Salesman Problems SOLVE THE TWO PROBLEMS
complete solution and enclose final answer. Use Figure 20
A. PROBLEM 1: Traveling Saleswitch Problem
Steps for Both methods are Shown on the last page
Laila is a traveling sales witch and has the following list of errands:


 Pet store –P
 Greenhouse- G
 Laundry
shop/cleaner- C
 Drugstore- D
 Target Mall – T


In which order should she do these errands in order to minimize the time spent on her broom? Use
both methods (brute-force algorithm and nearest- neighbor method) and compare. Show complete
solution and enclose final answer. Use Figure 20


Brute-force Algorithm
(6-1)! = 5x4x3x2x1
= 120 hamilton circuits
Hamilton Circuit Weights of the edges Total Time spent
HTDCGPH 40+45+50+36+22+36 229
HPTDCGH 36+67+45+50+36+32 266
HTDCPGH 40+45+50+58+22+32 247
HTPGCDH 40+67+22+36+50+22 237
HDCPGTH 22+50+58+22+71+40 263
HGPTDCH 32+22+67+45+50+54 270


Nearest-Neighbor method
Start at H.
H to T is 40
T to D is 45
D to C is 50
C to G is 36
G to P is 22
P to H is 36
If Laila will use the order HTDCGPH, she will spent 229minutes.

Written for

Institution
Course

Document information

Uploaded on
November 6, 2021
Number of pages
2
Written in
2020/2021
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
aaronngatchalian

Get to know the seller

Seller avatar
aaronngatchalian Polytechnic University of the Philippines
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions