{
  "id": "enwiki-001373395723",
  "slug": "maximal-pair",
  "title": "Maximal pair",
  "qid": "",
  "lead": "In computer science, a maximal pair within a string is a pair of matching substrings that are maximal, where \"maximal\" means that it is not possible to make a longer matching pair by extending the range of both substrings to the left or right.",
  "body": "In computer science, a maximal pair within a string is a pair of matching substrings that are maximal, where \"maximal\" means that it is not possible to make a longer matching pair by extending the range of both substrings to the left or right. Formally, a maximal pair of substrings with starting positions p_1 and p_2 respectively, and both of length l , is specified by a triple (p_1, p_2, l) , such that, given a string S of length n , S[p_1..p_1+l-1]=S[p_2..p_2+l-1] (meaning that the substrings have identical contents), but S[p_1-1] \\neq S[p_2-1] (they have different characters to their left) and S[p_1+l] \\neq S[p_2+l] (they also have different characters to their right; together, these two inequalities are the condition for being maximal). Thus, in the example above, the maximal pairs are (2,6,3) (the red and blue substrings) and (6,10,3) (the green and blue substrings), and (2,10,3) is not a maximal pair.",
  "categories": [
    "10637301",
    "108892838",
    "20346051",
    "21493616",
    "23468805",
    "26696192",
    "29265274"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1373395723",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1788627725.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001373395723",
    "type": "webpage",
    "title": "Maximal pair",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/maximal-pair",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          16
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          16
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001373395723",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1373395723",
    "note": "Immutable snapshot enwiki-001373395723"
  }
}