subject

Imagine that you wish to exchange one currency for another. you realize that instead of directly exchanging one currency for another, you might be better off making a series of trades through other currencies, winding up with the currency you want. suppose that you can trade n different currencies, numbered 1.2, , n, where you start with currency 1 and wish to wind up with currency n. you are given, for each pair of currencies i and j, an exchange rate r_ij, meaning that if you start with d units of currency i, you can trade for dr_ij units of currency j. a sequence of trades may entail a commission, which depends on the number of trades you make. let c_k be the commission that you are charged when you make k trades. show that, if c_k = 0 for all k = 1, 2, , n, then the problem of finding the best sequence of exchanges from currency 1 to currency n exhibits optimal substructure. then show that if commissions c_k are arbitrary values, then the problem of finding the best sequence of exchanges from currency 1 to currency n does not necessarily exhibit optimal substructure.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 09:30, relic7391
Is a string of code written to hurt others by damaging or destroying
Answers: 1
image
Computers and Technology, 22.06.2019 10:40, pbarbee3034
Nims is applicable to all stakeholders with incident related responsibilities. true or false
Answers: 1
image
Computers and Technology, 22.06.2019 18:30, cascyrio2002
What is outfitting a workplace with video in a technology
Answers: 2
image
Computers and Technology, 22.06.2019 19:20, mahaleyrenee1195
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 2
You know the right answer?
Imagine that you wish to exchange one currency for another. you realize that instead of directly exc...

Questions in other subjects:

Konu
Mathematics, 30.03.2021 18:10