Question

You are going on a cross-country road trip. You know the route you will take. There...

You are going on a cross-country road trip. You know the route you will take. There are n hotels along this route. You know the location and rate rj for each hotel hj along the route, for 1 ≤ j ≤ n.   You also know the distance dj of each hotel from your starting point. You will eventually get to your destination, after traveling a distance d*.    You can travel a maximum of m miles in a day.
You want to minimize the total cost of lodging on your trip of distance d*, call this total cost roomCost(d*). Write an equation for the recursive solution to this problem, by steps.

a) There will be some hotel hj that is the last hotel you will stop at before your destination. Not all hotels are candidates to be this last hotel. What inequality relates the distance dj from the starting point to this last hotel, and the distance d*?


b) Given that you stop for the last night at hotel hj, at a distance dj from your starting point, for a cost of rj, what is the recursive equation for the total room cost for all the previous nights (if any)?
This will be of the form roomCost(dn+1) = <something>


c) What is the recursive equation for minimizing the overall cost roomCost(dn+1)? In other words, take the equation in part b and minimize it over the appropriate variable(s).

Homework Answers

Answer #1

a.

As dj is the last halting point, destination d* to dj can be m at most, i.e the daily travelling limit.

b. The total cost roomCost(dn +1) , will be the sum of last day cost rj and cost till the previous day i.e. roomCost(dn)

c.

-------------------------END---------------------

Please give a thumbs up(upvote) if you liked the answer.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Based on the total explicit and implicit costs, should you take the trip to Fort Walton...
Based on the total explicit and implicit costs, should you take the trip to Fort Walton Beach or to Myrtle Beach? Explain your answer and support it with total cost estimates (explicit plus implicit) for each trip option. Trip Scenario: Assume that you are considering a 7-night vacation to Fort Walton Beach, Florida, in March. You estimate the total cost of the trip to Fort Walton Beach at $1,250, including discounted airfare. However, a resort at Myrtle Beach, South Carolina,...
A company has to transport a container by road from Amsterdam (Holland) to Tabriz (Iran), a...
A company has to transport a container by road from Amsterdam (Holland) to Tabriz (Iran), a distance of 4,529km. There are two viable routes. Route A is longer but less dangerous than Route B. If the container reaches its destination, the company will receive a fee of €30,000. Total overhead costs incurred will amount to €12,000 on Route A and €9,000 on Route B. The probability that the container is hijacked on Route A is estimated to be 20% and...
3.You know from earlier in the course that if the firm has the linear demand equation...
3.You know from earlier in the course that if the firm has the linear demand equation P(q) = a –bq, then the price elasticity of demand at an output qis ε= (bq-a)/bq. Use this result to calculate the price elasticity of demand at the firm’s profit-maximizing point on the demand curve. a. Based on your result in the last part, is the firm’s demand elastic or inelastic at the profit-maximizing point? Explain. b.Using the price and marginal cost you found...
You and your family have booked a cabin just outside of Gatlinburg, TN. Everyone is excited...
You and your family have booked a cabin just outside of Gatlinburg, TN. Everyone is excited about tomorrow's plan to tackle the Ramsey Cascades trail, a beautiful eight mile round-trip hike that gains more than 2,000 feet in elevation over the course of four miles. The park brochure says this trail is considered to be a strenuous hike, but it will allow you to view the tallest waterfall in the park (at the highest point of the hike at the...
“Big city, bright lights, who needs it,” you think to yourself.  After working long hours for the...
“Big city, bright lights, who needs it,” you think to yourself.  After working long hours for the last six months at Starbucks in Seattle, and the constant rain and cold, you decided to quit your job and move back to Austin.  Being temporarily between jobs, your friend from your college days at St. Edward’s, who majored in entrepreneurship and has started her own business Claudia’s Cakes, has asked you to help her out calculating some numbers for her.   “I’ve been in business...
Biology Unit I Homework - Nutritional Analysis Worksheet Introduction In Chapters 3 and 4 of the...
Biology Unit I Homework - Nutritional Analysis Worksheet Introduction In Chapters 3 and 4 of the textbook, you learned that the body needs various macro and micronutrients in order to function properly. You also learned about cellular metabolism and what the human body uses as a fuel source. This all seems simple at first glance; however, it can be difficult to determine whether we are getting what our body needs. Even when we know what our body needs, it becomes...
QUESTION 1 All of the followings are the rights and privileges of a Common Stockholders EXCEPTING:...
QUESTION 1 All of the followings are the rights and privileges of a Common Stockholders EXCEPTING: a. Voting/Proxy Rights b. Right to Dividends c. Residual Right d. Pre-emptive Right e. Right to Interest Payments 10 points    QUESTION 2 Your best friend's parents want to buy a home in the Worcester County, but they don’t know the exact amount of money that they can afford to borrow. They can afford monthly payments of $ 1,800. A friendly bank in Worcester...
1. For a pair of sample x- and y-values, what is the difference between the observed...
1. For a pair of sample x- and y-values, what is the difference between the observed value of y and the predicted value of y? a) An outlier b) The explanatory variable c) A residual d) The response variable 2. Which of the following statements is false: a) The correlation coefficient is unitless. b) A correlation coefficient of 0.62 suggests a stronger correlation than a correlation coefficient of -0.82. c) The correlation coefficient, r, is always between -1 and 1....
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
The Business Case for Agility “The battle is not always to the strongest, nor the race...
The Business Case for Agility “The battle is not always to the strongest, nor the race to the swiftest, but that’s the way to bet ’em!”  —C. Morgan Cofer In This Chapter This chapter discusses the business case for Agility, presenting six benefits for teams and the enterprise. It also describes a financial model that shows why incremental development works. Takeaways Agility is not just about the team. There are product-management, project-management, and technical issues beyond the team’s control. Lean-Agile provides...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT