subject

Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. for example, suppose that 1 u. s. dollar buys 49 indian rupees, 1 indian rupee buys 2 japanese yen, and 1 japanese yen buys 0.0107 u. s. dollars. then, by converting currencies, a trader can start with 1 u. s. dollar and buy 49 x 2 x 0.0107 = 1.0486 u. s. dollars, thus turning a profit of 4.86 percent. suppose that we are given n currencies c1, c2, cn and an n x n table r of exchange rates, such that one unit of currency ci buys r[i, j] units of currency cj. a. give an efficient algorithm to determine whether or not there exists a sequence of currencies {ci1, ci2, cik} such that r[i1, i2] * r[i2, i3] r[ik-1, ik] * r[ik, i1] > 1. analyze the running time of your algorithm. b. give an efficient algorithm to print out such a sequence if one exists. analyze the running time of your algorithm.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:30, aryal191
Primary tech skills are skills that are necessary for success in online education
Answers: 3
image
Computers and Technology, 23.06.2019 11:30, kyraj21
Which excel file extension stores automated steps for repetitive tasks?
Answers: 1
image
Computers and Technology, 25.06.2019 11:30, robertabenavidesq
Janet has created an original musical composition, recorded it on a cd and registered her work online. which law will protect her work from any kind of infringement? a. copyright b. trademark c. patent d. trade secret
Answers: 2
image
Computers and Technology, 25.06.2019 13:00, vallhernandez13
True or false the internet is a local communication network that allows only certain computers to connect and exchange information.
Answers: 2
You know the right answer?
Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency...

Questions in other subjects:

Konu
English, 22.07.2021 17:30
Konu
Health, 22.07.2021 17:30
Konu
Mathematics, 22.07.2021 17:30