homework 1 - Jordan Hauer 9/9/04 ENGRI 115 Lab Section:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Jordan Hauer 9/9/04 ENGRI 115 Lab Section: Monday Homework #1 1. (See attached) 2. I would convert this problem into an input in the traveling salesman mold by making each drop-off a city and make my home the starting and ending city. The information about avenues taking three times as long to cross would also need to be inputted. The last required input is the time or cost it takes to travel from city to city, or drop-off to drop-off. Each path would have a certain time T(s,d) where s is the starting city and d is the destination city. The time is calculated by finding the time it takes to get from the starting city to the pickup point and then to the drop-off point. In this problem, calculating the time is a two-step process instead of a one-step process. s: (x s , y s ) pickup (p): (x p , y p ) d: (x d , y d ) T(s,d) = T(s,p) + T(p,d) = 3|x s – x p | + |y s – y p | + 3|x p – x d | + |y p – y d | 3. The input in question 2 is not symmetric because of the fact that you need to travel to an intermediate point before you travel to your destination, and the
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

homework 1 - Jordan Hauer 9/9/04 ENGRI 115 Lab Section:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online