


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Exam; Class: ALGS/DATA STRUCTURES; Subject: COMPUTER SCIENCE; University: Clemson University; Term: Fall 2005;
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Closed books. Closed Notes. Calculators OK. 85 points. 60 minutes. The weight of each question is indicated in parentheses. Please use a pencil. If you need more space, use the back of the sheet.
Morse:
(10) Genetic Algorithms. Consider the following chromosome representing a solution to the traveling salesman problem. Evaluate the tour cost using the adjacency matrix shown on the left. Note that a solution to the traveling salesman problem requires that the salesman returning to the starting city. 0 1 2 3 4 5 6 7 0 0 2 5 8 1 3 2 6 chromosome: 1 3 0 5 8 1 3 2 6 5 2 3 7 1 4 0 6 tour cost: _____ 2 2 5 0 1 3 2 6 3 3 3 4 1 0 3 5 1 6 4 8 4 5 8 0 3 2 6 5 3 3 7 8 1 0 5 6 6 3 9 6 8 1 3 0 6 7 6 4 5 8 8 3 7 0 Now use the chromosomes to generate two offspring using one-point crossover. The crossover point is marked below. 1 2 4 5 0 | 3 7 6 offspring #1: _________________________ 3 5 6 2 1 | 7 4 0 offspring #2: _________________________
union-by-height