subject

(dpv 6.2) you are going on a long trip. you start on the road at mile post 0. along the way there are n hotels, at mile posts a1 < a2 < · · · < an, where each ai is measured from the starting point. the only places you are allowed to stop are at these hotels, but you can choose which of the hotels you stop at. you must stop at the final hotel (at distance an), which is your destination. you'd really like to travel 200 miles a day, but this may not be possible (depending on the spacing of the hotels). if you travel x miles during a day, the penalty for that day is (200−x) 2 . you want to plan your trip so as to minimize the total penalty – that is, the sum, over all travel days, of the daily penalties. give an efficient algorithm that determines the optimal sequence of hotels at which to stop.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:00
Which demographic challenge is europe currently experiencing? a. an aging and decreasing population b. a baby boomc. an unequal distribution between males and females d. a large group of teenagers moving through the school system(i chose a but i'm unsure)
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
Answers: 1
You know the right answer?
(dpv 6.2) you are going on a long trip. you start on the road at mile post 0. along the way there ar...
Questions
question
Engineering, 26.01.2021 03:20
question
History, 26.01.2021 03:20
question
Mathematics, 26.01.2021 03:20
question
Mathematics, 26.01.2021 03:20
question
Mathematics, 26.01.2021 03:30
question
Mathematics, 26.01.2021 03:30
question
Mathematics, 26.01.2021 03:30
question
Mathematics, 26.01.2021 03:30
question
Mathematics, 26.01.2021 03:30
Questions on the website: 13722363