Computers and Technology

The problem of searching for cycles in graphs arises naturally in financial trading applications. Consider a firm that trades shares in n different companies. For each pair i j, they maintain a trade ratio rj, meaning that one share of i trades for rshares of j. Here we allow the rate r to be fractional; that is, rmeans that you can trade three shares of i to get two shares of j. A trading cycle for a sequence of shares i, i2,... ,ik consists of successively trading shares in company i, for shares in company i2, then shares in company i2 for shares i, and so on, finally trading shares in ik back to shares in company i. After such a sequence of trades, one ends up with shares in the same company i that one starts with. Trading around a cycle is usually a bad idea, as you tend to end up with fewer shares than you started with. But occasionally, for short periods of time, there are opportunities to increase shares. We will call such a cycle an opportunity cycle, if trading along the cycle increases the number of shares. This happens exactly if the product of the ratios along the cycle is above 1. In analyzing the state of the market, a firm engaged in trading would like to know if there are any opportunity cycles. Give a polynomial-time algorithm that finds such an opportunity cycle, if one exists.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:30, mmimay3501
What do character formats do for your document's message? a. set the tone b. provide organization c. provide clarity d. set how texts align with documents
Answers: 2
image
Computers and Technology, 22.06.2019 23:30, keviongardner
The next button in the review section shows the next available comment. next slide with no comment. previous comment. edited comment.
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, CalCDanG
What is the biggest difference between section breaks and regular page breaks? section breaks are more difficult to add than page breaks. section breaks make it easier for you to view the document as an outline. section breaks allow you to have areas of the document with different formatting. section breaks are smaller than regular page breaks.
Answers: 2
image
Computers and Technology, 23.06.2019 17:20, Morehollie9428
What is the best assassins creed game?
Answers: 2
Do you know the correct answer?
The problem of searching for cycles in graphs arises naturally in financial trading applications. Co...

Questions in other subjects:

Konu
Geography, 07.10.2019 08:30
Konu
Biology, 07.10.2019 08:30