Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 830 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 830 Bytes

homebroker-algorithm

Algorithms and data structures II - PUC RS

Using maxheap and minheap to build an priority queue to process stock trading in high volumes.

  1. Input is a txt file where each line represents an buy or sell order
  2. The algorithm read each line and close any possible deal with those offers
  3. At the end, it calculates the profit made by the arbitrage

Check the detailed problem statement here (pt-br).

And my complete report, containing time-complexity analysis of the algorithm, here (pt-br).

Fluxogram (pt-br):

figura