{
  "id": "2019/1234",
  "url": "https://opencryptology.org/2019/1234",
  "original_url": "https://eprint.iacr.org/2019/1234",
  "title": "Efficient Homomorphic Comparison Methods with Optimal Complexity",
  "authors": [
    "Jung Hee Cheon",
    "Dongwoo Kim",
    "Duhyeong Kim"
  ],
  "affiliations": null,
  "abstract": "Comparison of two numbers is one of the most frequently used operations, but it has been a challenging task to efficiently compute the comparison function in homomorphic encryption (HE) which  basically support addition and multiplication.\nRecently, Cheon et al. (Asiacrypt 2019) introduced a new  approximate representation of the comparison function with a rational function, and showed that this rational function can be evaluated by an iterative algorithm. Due to this iterative feature, their method achieves a logarithmic computational complexity compared to previous polynomial approximation methods; however, the computational complexity is still not optimal, and the algorithm is quite slow for large-bit inputs in HE implementation.\n\nIn this work, we propose new comparison methods with optimal asymptotic complexity based on composite polynomial approximation. The main idea is to systematically design a constant-degree polynomial $f$ by identifying the \\emph{core properties} to make a composite polynomial $f\\circ f \\circ \\cdots \\circ f$ get close to the sign function (equivalent to the comparison function) as the number of compositions increases. We additionally introduce an acceleration method applying a mixed polynomial composition $f\\circ \\cdots \\circ f\\circ g \\circ \\cdots \\circ g$ for some other polynomial $g$ with different properties instead of $f\\circ f \\circ \\cdots \\circ f$. Utilizing the devised polynomials $f$ and $g$, our new comparison algorithms only require $\\Theta(\\log(1/\\epsilon))  + \\Theta(\\log\\alpha)$ computational complexity   to obtain an approximate comparison result of $a,b\\in[0,1]$ satisfying $|a-b|\\ge \\epsilon$ within $2^{-\\alpha}$ error.\n\nThe asymptotic optimality results in substantial performance enhancement: our comparison algorithm on encrypted $20$-bit integers for $\\alpha = 20$ takes $1.43$ milliseconds in amortized running time, which is $30$ times faster than the previous work.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Efficient Homomorphic Comparison Methods with Optimal Complexity” by Jung Hee Cheon, Dongwoo Kim, Duhyeong Kim, Cryptology ePrint Archive, Paper 2019/1234, https://eprint.iacr.org/2019/1234. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2019-10-21T08:25:34Z",
    "updated": "2020-08-18T02:48:59Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2019/1234.pdf",
    "sha256": "b3bde39d7ad6edcb80bd3c311a0dbe5ac3c87ed8f6b4aef797925d7e645ab222",
    "size": 795008,
    "source": "wayback",
    "source_date": "2026-09-07T05:55:15Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2019/1234/versions/20260907T055515Z.pdf",
      "captured_at": "2026-09-07T05:55:15Z",
      "label": "copy captured 2026-09-07",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20260907055515id_/https://eprint.iacr.org/2019/1234.pdf",
      "size": 795008,
      "sha256": "b3bde39d7ad6edcb80bd3c311a0dbe5ac3c87ed8f6b4aef797925d7e645ab222",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260907055515id_/https://eprint.iacr.org/2019/1234.pdf",
      "captured_at": "2026-09-07T05:55:15Z",
      "size": 792317
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2019/1234.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "size": 795008
    }
  ],
  "bibtex": "@misc{cryptoeprint:2019/1234,\n      author = {Jung Hee Cheon and Dongwoo Kim and Duhyeong Kim},\n      title = {Efficient Homomorphic Comparison Methods with Optimal Complexity},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2019/1234},\n      year = {2019},\n      url = {https://eprint.iacr.org/2019/1234}\n}"
}
