Skip to main content

Showing 1–4 of 4 results for author: Fung, S P Y

Searching in archive cs. Search in all archives.
.
  1. arXiv:2110.01111  [pdf, ps, other

    cs.DS

    Is this the simplest (and most surprising) sorting algorithm ever?

    Authors: Stanley P. Y. Fung

    Abstract: We present an extremely simple sorting algorithm. It may look like it is obviously wrong, but we prove that it is in fact correct. We compare it with other simple sorting algorithms, and analyse some of its curious properties.

    Submitted 3 October, 2021; originally announced October 2021.

    Comments: 7 pages, 0 figures

    ACM Class: F.2.2

  2. arXiv:1706.05320  [pdf, ps, other

    cs.DS

    Optimal Online Two-way Trading with Bounded Number of Transactions

    Authors: Stanley P. Y. Fung

    Abstract: We consider a two-way trading problem, where investors buy and sell a stock whose price moves within a certain range. Naturally they want to maximize their profit. Investors can perform up to $k$ trades, where each trade must involve the full amount. We give optimal algorithms for three different models which differ in the knowledge of how the price fluctuates. In the first model, there are global… ▽ More

    Submitted 16 June, 2017; originally announced June 2017.

    Comments: 15 pages, 1 figure

  3. arXiv:1204.2933  [pdf, ps, other

    cs.DS

    Improved Randomized Online Scheduling of Intervals and Jobs

    Authors: Stanley P. Y. Fung, Chung Keung Poon, Feifeng Zheng

    Abstract: We study the online preemptive scheduling of intervals and jobs (with restarts). Each interval or job has an arrival time, a deadline, a length and a weight. The objective is to maximize the total weight of completed intervals or jobs. While the deterministic case for intervals was settled a long time ago, the randomized case remains open. In this paper we first give a 2-competitive randomized alg… ▽ More

    Submitted 13 April, 2012; originally announced April 2012.

    ACM Class: F.2.2

  4. arXiv:0907.2741  [pdf, ps, other

    cs.DS

    Bounded Delay Packet Scheduling in a Bounded Buffer

    Authors: Stanley P. Y. Fung

    Abstract: We study the problem of buffer management in QoS-enabled network switches in the bounded delay model where each packet is associated with a weight and a deadline. We consider the more realistic situation where the network switch has a finite buffer size. A 9.82-competitive algorithm is known for the case of multiple buffers (Azar and Levy, SWAT'06). Recently, for the case of a single buffer, a 3… ▽ More

    Submitted 16 July, 2009; originally announced July 2009.

    Comments: 5 pages, 0 figures