{
  "id": "bbg-p0413-algorithms-and-decision-models-algorithms",
  "title": "HashMap Bucket Lookup Flow",
  "chapter": "algorithms-and-decision-models",
  "batch": "17",
  "rank": 165,
  "sourcePage": 413,
  "sourcePointer": "p. 413",
  "status": "accepted",
  "reviewerStatus": "reviewed",
  "fidelityScore": 0.9,
  "canvas": {
    "width": 960,
    "height": 640
  },
  "fireworksTechGraph": {
    "style": "style-1-flat-icon",
    "diagramType": "data-flow",
    "topologyNotes": [
      "source page render inspected",
      "extracted page text inspected",
      "source page render inspected",
      "preserve HashMap sequence: keys enter map, hash function computes bucket index, buckets point to stored data values, collisions chain within a bucket",
      "omit example names, source branding, and decorative dark styling"
    ],
    "publicBoundary": [
      "original vector output",
      "no source pixels",
      "no source mark or long wording"
    ]
  },
  "callouts": [],
  "sourceReview": {
    "conceptAnchors": [
      "concept: key input",
      "concept: hash function",
      "concept: bucket index",
      "concept: collision chain",
      "concept: stored value lookup"
    ],
    "labelSource": "curated",
    "semanticStatus": "reviewed"
  },
  "groups": [
    {
      "id": "input",
      "label": "Keys",
      "x": 58,
      "y": 124,
      "w": 194,
      "h": 306
    },
    {
      "id": "map",
      "label": "Hash map internals",
      "x": 310,
      "y": 124,
      "w": 326,
      "h": 306
    },
    {
      "id": "values",
      "label": "Stored values",
      "x": 700,
      "y": 124,
      "w": 202,
      "h": 306
    }
  ],
  "shapes": [
    {
      "id": "keys",
      "kind": "table",
      "label": "Keys",
      "detail": "input set",
      "x": 96,
      "y": 172,
      "w": 112,
      "h": 76,
      "tone": "blue"
    },
    {
      "id": "hash",
      "kind": "gateway",
      "label": "Hash function",
      "detail": "key to number",
      "x": 396,
      "y": 156,
      "w": 136,
      "h": 78,
      "tone": "orange"
    },
    {
      "id": "bucketA",
      "kind": "queue",
      "label": "Bucket A",
      "detail": "index",
      "x": 356,
      "y": 292,
      "w": 112,
      "h": 48,
      "tone": "teal"
    },
    {
      "id": "bucketB",
      "kind": "queue",
      "label": "Bucket B",
      "detail": "collision",
      "x": 498,
      "y": 292,
      "w": 112,
      "h": 48,
      "tone": "teal"
    },
    {
      "id": "chain",
      "kind": "rect",
      "label": "Chain",
      "detail": "same bucket",
      "x": 426,
      "y": 376,
      "w": 112,
      "h": 50,
      "tone": "purple"
    },
    {
      "id": "valueA",
      "kind": "rect",
      "label": "Value A",
      "detail": "record",
      "x": 742,
      "y": 190,
      "w": 112,
      "h": 54,
      "tone": "green"
    },
    {
      "id": "valueB",
      "kind": "rect",
      "label": "Value B",
      "detail": "record",
      "x": 742,
      "y": 332,
      "w": 112,
      "h": 54,
      "tone": "green"
    }
  ],
  "connectors": [
    {
      "from": "keys",
      "to": "hash",
      "label": "hash",
      "flow": "main"
    },
    {
      "from": "hash",
      "to": "bucketA",
      "label": "index",
      "flow": "data"
    },
    {
      "from": "hash",
      "to": "bucketB",
      "label": "index",
      "flow": "data"
    },
    {
      "from": "bucketB",
      "to": "chain",
      "label": "collision",
      "flow": "control"
    },
    {
      "from": "bucketA",
      "to": "valueA",
      "label": "lookup",
      "flow": "data"
    },
    {
      "from": "chain",
      "to": "valueB",
      "label": "scan",
      "flow": "data"
    }
  ]
}
