{
  "id": "2008/135",
  "url": "https://opencryptology.org/2008/135",
  "original_url": "https://eprint.iacr.org/2008/135",
  "title": "Unbalanced Digit Sets and the Closest Choice Strategy for Minimal Weight Integer Representations",
  "authors": [
    "Clemens Heuberger",
    "James A. Muir"
  ],
  "affiliations": null,
  "abstract": "An online algorithm is presented that produces an optimal radix-2 representation of an input integer $n$ using digits from the set $D_{\\ell,u}=\\{a\\in\\Z:\\ell\\le a\\le u\\}$, where $\\ell \\leq 0$ and $u \\geq 1$. The algorithm works by scanning the digits of the binary representation of $n$ from left-to-right (\\ie from most-significant to least-significant).  The output representation is optimal in the sense that, of all radix-2 representations of $n$ with digits from $D_{\\ell,u}$, it has as few nonzero digits as possible (\\ie it has \\emph{minimal weight}).  Such representations are useful in the efficient implementation of elliptic curve cryptography.  The strategy the algorithm utilizes is to choose an integer of the form $d 2^i$, where $d \\in D_{\\ell,u}$, that is closest to $n$ with respect to a particular distance function.  It is possible to choose values of $\\ell$ and $u$ so that the set $D_{\\ell,u}$ is unbalanced in the sense that it contains more negative digits than positive digits, or more positive digits than negative digits.  Our distance function takes the possible unbalanced nature of $D_{\\ell,u}$ into account.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Unbalanced Digit Sets and the Closest Choice Strategy for Minimal Weight Integer Representations” by Clemens Heuberger, James A. Muir, Cryptology ePrint Archive, Paper 2008/135, https://eprint.iacr.org/2008/135. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2008-03-31T14:03:03Z",
    "updated": "2008-03-31T14:03:03Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2008/135.pdf",
    "sha256": "023dacefcb78605ab7b1374242efb9ddc2d642eebd21b00c90e48dd62d1a3cd8",
    "size": 357820,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:13:43Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2008/135/versions/20190225T161343Z.pdf",
      "captured_at": "2019-02-25T16:13:43Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2008/135.pdf",
      "size": 357820,
      "sha256": "023dacefcb78605ab7b1374242efb9ddc2d642eebd21b00c90e48dd62d1a3cd8",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260105153404id_/https://eprint.iacr.org/2008/135.pdf",
      "captured_at": "2026-01-05T15:34:04Z",
      "size": 295596
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2008/135.pdf",
      "captured_at": "2019-02-25T16:13:43Z",
      "size": 357820
    }
  ],
  "bibtex": "@misc{cryptoeprint:2008/135,\n      author = {Clemens Heuberger and James A. Muir},\n      title = {Unbalanced Digit Sets and the Closest Choice Strategy for Minimal Weight Integer Representations},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2008/135},\n      year = {2008},\n      url = {https://eprint.iacr.org/2008/135}\n}"
}
