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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
question
Computers and Technology, 24.06.2019 13:50
Write a program that performs a simple n-body simulation, called "jumping leprechauns." this simulation involves n leprechauns, numberd 1 to n. it maintains a gold value g_i for each leprechaun i, which begins with each leprechaun starting out with a million dollars worth of gold, that is, g_i = 1000000 for each i = 1,. in addition, the simulation also maintains, for each leprachaun,i, a place on the horizon, which is represented as a double-precision floating point number, x_i. in each iteration of the simulation, the simulation processes the leprachauns in order. processing a leprachaun i during its iteration begins by computing a new place on the horizon for i, which is determined by the assignment:
Answers: 3
question
Computers and Technology, 24.06.2019 16:30
What is the item which could be matched with a statement below? software installed on a computer that produces pop-up ads using your browser an example of social engineering malware loads itself before the os boot is complete type of spyware that tracks your keystrokes, including passwords windows key + l the practice of tricking people into giving out private information or allowing unsafe programs into the network or computer when someone who is unauthorized follows the employee through a secured entrance to a room or building a type of malware that tricks you into opening it by substituting itself for a legitimate program a computer that has been hacked, and the hacker is using the computer to run repetitive software in the background without the user's knowledge an infestation designed to copy itself repeatedly to memory, on drive space, or on a network
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
What is the local portion of the e-mail address below? [email protected] a.) @ b.) biz c.) gumchewer d.) twrigley
Answers: 1
You know the right answer?
Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency...
Questions
Questions on the website: 13722360