In problems 5 and 6, consider the problem of money investment. Suppose there are m different...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In problems 5 and 6, consider the problem of money investment. Suppose there are m different money investment plans P1, P2,..., Pm available. Plan P; takes y; years and will increase your money by a factor of (1+r). (In other words, if you invest D dollars in plan P, after y, years, you will have D(1+r) dollars.) For every i, y, is a positive integer and r; 0. You start with some fixed amount of money M and need to choose a series of plans to invest one by one. You must invest all your money into a single plan at any given time. Your must select some plans with the total duration at most n years. The goal is to maximize your money at the end of these investments. The series of plans you choose may include the same plan any number of times. Assume that the annual interest rate r; satisfies r1 r2 >> rm. Problem 5 (15%) Consider the greedy algorithm which picks plan P, repeatedly until the next P does not fit into n years, then pick P2 repeatedly until the next P2 does not fit, and so on. 1. (5%) Find an example in which the greedy algorithm does not find the optimal solution. 2. (10%) Assume that y, is a multiple of y+1 for i=1,2,..., m-1. Prove that the greedy algorithm always returns the optimal solution in this case. In problems 5 and 6, consider the problem of money investment. Suppose there are m different money investment plans P1, P2,..., Pm available. Plan P; takes y; years and will increase your money by a factor of (1+r). (In other words, if you invest D dollars in plan P, after y, years, you will have D(1+r) dollars.) For every i, y, is a positive integer and r; 0. You start with some fixed amount of money M and need to choose a series of plans to invest one by one. You must invest all your money into a single plan at any given time. Your must select some plans with the total duration at most n years. The goal is to maximize your money at the end of these investments. The series of plans you choose may include the same plan any number of times. Assume that the annual interest rate r; satisfies r1 r2 >> rm. Problem 5 (15%) Consider the greedy algorithm which picks plan P, repeatedly until the next P does not fit into n years, then pick P2 repeatedly until the next P2 does not fit, and so on. 1. (5%) Find an example in which the greedy algorithm does not find the optimal solution. 2. (10%) Assume that y, is a multiple of y+1 for i=1,2,..., m-1. Prove that the greedy algorithm always returns the optimal solution in this case.
Expert Answer:
Related Book For
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba
Posted Date:
Students also viewed these programming questions
-
In this question you will be asked to reflect on a project you have been involved in or observed, in which a design evolved, or could have evolved, through applying a theory of user behaviour. You...
-
In a Hopfield neural network configured as an associative memory, with all of its weights trained and fixed, what three possible behaviours may occur over time in configuration space as the net...
-
CASE STUDY. Case Study Chapters 1 and 2. Please post both case studies in Assignment Drop Box as one MS Word apa formate document. Note: See template provided for case study papers. Chapter 1 - Listo...
-
Use the information in CP6-6 (page 291 in Chapter 6) to complete the following requirements. Information From CP6-6 a. Amalgamated sold merchandise to American Fashions at a selling price of...
-
In problem, the function f is one-to-one. Find its inverse and check your answer. Graph f, f -1 , and y = x on the same coordinate axes. f(x) = 3x
-
Bernardino Santos-Rodiguez was piloting a boat owned by his friend, Raul Viera-Torres, in waters near Guayama, Puerto Rico. The boat was equipped with a hydraulic steering system manufactured by...
-
The Hoylake Rescue Squad receives an emergency call every 1, 2, 3, 4, 5, or 6 hours, according to the following probability distribution: Time Between emergency Probability Calls (hours) 1...
-
Describe a typical backup scenario and share your preferred Oracle database backup type. Why is it most appropriate? Is there a role for the Recovery Manager (RMAN) for this procedure? Explain.
-
Chloe is planning to open a caf business in Melbourne, which will sell healthy burgers prepared with fresh, local ingredients. These will come in two sizes: regular and large, and each order will be...
-
Mar Co. is a construction company. In 2019, it entered into a two-year contract to construct a building for $3,000,000. It estimated that actual costs will be $2,500,000. Actual costs in 2019 are...
-
Sam Co. sells a product whose cost (and sales price) has risen continually. This has produced increases in Sam Co.'s gross receipts and Sam Co. would like to use an inventory method that would...
-
Ludlow Inc. started business in 2018. It uses the simplified dollar-value LIFO inventory method. Ending inventories at actual prices are as follows: The price index in 2018, 2019 and 2020 is 120%,...
-
Why should an individual not use an installment sale as opposed to a cash sale?
-
Spancer Co. is in the construction business. Can it use the completed contract method to account for its long-term contracts?
-
Determine the % relative error for the following quantities: If there is no uncertainty given for a specific value, assume an absolute error of "1" in the last digit. For example, if there is no...
-
Diamond Walker sells homemade knit scarves for $25 each at local craft shows. Her contribution margin ratio is 60%. Currently, the craft show entrance fees cost Diamond $1,500 per year. The craft...
-
In exercise 25.1, we checked how the Bertrand conclusions (that flow from viewing price as the strategic variable) hold up when we change some of our assumptions about fixed and marginal costs. We...
-
I express my undying love for my wife through weekly purchases of roses that cost $5 each. A. Suppose you have known me for a long time and you have seen my economic circumstances change with time....
-
It is common in many countries that governments subsidize the production of goods in certain large oligopolistic industries. Common examples include aircraft industries and car industries. A: Suppose...
-
A client who is a director of a publicly listed corporation is required by law to refrain from trading that companys stock at certain points of the year when disclosure of financial results are...
-
Consider the pairwise correlations of monthly returns of the following asset classes: Based solely on the information in the preceding table, which equity asset class is most sharply distinguished...
-
Investing the majority of the portfolio on a passive or low active risk basis while a minority of the assets is managed aggressively in smaller portfolios is best described as: A. The coresatellite...
Study smarter with the SolutionInn App