Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7. The risk-free currency exchange problem offers a risk-free way to make money. Suppose we have currencies Ci,...,cn (For example, ci might be dollars, c2

image text in transcribed

7. The risk-free currency exchange problem offers a risk-free way to make money. Suppose we have currencies Ci,...,cn (For example, ci might be dollars, c2 rubles, cs yen, etc.) For every two currencies ci and cj there is an exchange rate rij such that you can exchange one unit of ci for rij units ofcj. Note that ifmj .rji > 1, then you can make money simply by trading units of currency i into units of currency j and back again. This almost never happens, but occasionally (because the updates for exchange rates do not happen quickly enough) for very short periods of time exchange traders can find a sequence of trades that can make risk-free money. That is, if there is a sequence of currencies ch ,ch, , cu such that rive . rias . . . . r4-1,4 . rk,il 1, then trading one Fiss>, then trading one unit of ci into ci and trading that into ci, and so on will yield a profit. Design an efficient algorithm to detect if a risk-free currency exchange exists. (You need not actually find it.) 7. The risk-free currency exchange problem offers a risk-free way to make money. Suppose we have currencies Ci,...,cn (For example, ci might be dollars, c2 rubles, cs yen, etc.) For every two currencies ci and cj there is an exchange rate rij such that you can exchange one unit of ci for rij units ofcj. Note that ifmj .rji > 1, then you can make money simply by trading units of currency i into units of currency j and back again. This almost never happens, but occasionally (because the updates for exchange rates do not happen quickly enough) for very short periods of time exchange traders can find a sequence of trades that can make risk-free money. That is, if there is a sequence of currencies ch ,ch, , cu such that rive . rias . . . . r4-1,4 . rk,il 1, then trading one Fiss>, then trading one unit of ci into ci and trading that into ci, and so on will yield a profit. Design an efficient algorithm to detect if a risk-free currency exchange exists. (You need not actually find it.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

6. How do histories influence the process of identity formation?

Answered: 1 week ago