{
  "id": "2018/227",
  "url": "https://opencryptology.org/2018/227",
  "original_url": "https://eprint.iacr.org/2018/227",
  "title": "Can We Overcome the $n \\log n$ Barrier for Oblivious Sorting?",
  "authors": [
    "Wei-Kai Lin",
    "Elaine Shi",
    "Tiancheng Xie"
  ],
  "affiliations": null,
  "abstract": "It is well-known that non-comparison-based techniques\ncan allow us to sort $n$ elements in $o(n \\log n)$ time\non a Random-Access Machine (RAM). On the other hand, it is a long-standing open\nquestion whether\n(non-comparison-based) circuits can sort\n$n$ elements from the domain $[1..2^k]$\nwith $o(k n \\log n)$ boolean gates.\nWe consider weakened forms of this question: first, we consider\na restricted class of sorting where the number of distinct keys\nis much smaller than the input length; and second, we\nexplore Oblivious RAMs and probabilistic circuit families, i.e.,\ncomputational models that are\nsomewhat more powerful than circuits but much weaker than RAM.\nWe show that Oblivious RAMs and probabilistic circuit families\ncan sort $o(\\log n)$-bit keys in $o(n \\log n)$ time or $o(k n \\log n)$ circuit\ncomplexity where $n$ is the input length.\nOur algorithms work in the balls-and-bins model, i.e., not only can they\nsort an array of numerical keys --- if each key additionally\ncarries an opaque ball, our algorithms\ncan also move the balls into the correct order.\nWe further show that\nin such a balls-and-bins model, it is impossible\nto sort $\\Omega(\\log n)$-bit keys\nin $o(n \\log n)$ time, and thus\nthe $o(\\log n)$-bit-key assumption\nis necessary for overcoming the $n \\log n$ barrier.\n\nFinally, we optimize the IO efficiency of our oblivious algorithms\nfor RAMs --- we show that even the $1$-bit special\ncase of our algorithm can solve open questions\nregarding whether there exist oblivious\nalgorithms for tight compaction and selection in linear IO.",
  "category": "Foundations",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Can We Overcome the $n \\log n$ Barrier for Oblivious Sorting?” by Wei-Kai Lin, Elaine Shi, Tiancheng Xie, Cryptology ePrint Archive, Paper 2018/227, https://eprint.iacr.org/2018/227. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2018-03-01T16:41:47Z",
    "updated": "2018-10-29T17:36:09Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2018/227.pdf",
    "sha256": "c33fa67d6097b48e9c3d14dd9114a4d373ec7c58a4eb1dcd49b00b86675db118",
    "size": 643283,
    "source": "github-mirror",
    "source_date": "2019-02-25T18:03:07Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2018/227/versions/20190225T180307Z.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/227.pdf",
      "size": 643283,
      "sha256": "c33fa67d6097b48e9c3d14dd9114a4d373ec7c58a4eb1dcd49b00b86675db118",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251230195559id_/https://eprint.iacr.org/2018/227.pdf",
      "captured_at": "2025-12-30T19:55:59Z",
      "size": 644216
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/227.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "size": 643283
    }
  ],
  "bibtex": "@misc{cryptoeprint:2018/227,\n      author = {Wei-Kai Lin and Elaine Shi and Tiancheng Xie},\n      title = {Can We Overcome the $n \\log n$ Barrier for Oblivious Sorting?},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2018/227},\n      year = {2018},\n      url = {https://eprint.iacr.org/2018/227}\n}"
}
