{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Rank",
 "ref": "Rank#67c6",
 "hash": "sema:Rank#mh:SHA-256:67c6fb568c5fdcfbd0de64b8a5413e943378d421dee9d5614c827e3c539bde3f",
 "stub": "67c6",
 "layer": "Infrastructure",
 "type": "Primitives",
 "summary": "Order items by score",
 "mechanism": "Deterministic Sort. Applies a caller-supplied ScoringFunction#c604 to every element in the input Set and returns a List ordered by Score. Uses Select#decf to truncate to Top-K when requested.",
 "invariants": [
  "Conservation: Output set is a subset of Input set.",
  "Monotonicity: For all i, Score(Output[i]) >= Score(Output[i+1])."
 ],
 "parameters": {},
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Score Indeterminacy: Multiple items have identical scores.",
  "Incomparability: Scoring function returns values that cannot be strictly ordered."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Rank",
 "builds_on": [
  {
   "alias": "select",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "Select",
   "ref": "Select#decf",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Select"
  },
  {
   "alias": "scoring_function",
   "relation": "accepts",
   "library": "bootstrap",
   "slug": "ScoringFunction",
   "ref": "ScoringFunction#c604",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ScoringFunction"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "Abduction",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Abduction"
  },
  {
   "slug": "BeamSearch",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/BeamSearch"
  },
  {
   "slug": "Prioritize",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Prioritize"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Rank",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Rank.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
