{
  "id": "bbg-p0250-search-retrieval-and-rag-search",
  "title": "Coding Pattern Toolkit",
  "chapter": "algorithms-and-decision-models",
  "batch": "14",
  "rank": 139,
  "sourcePage": 250,
  "sourcePointer": "p. 250",
  "status": "accepted",
  "reviewerStatus": "reviewed",
  "fidelityScore": 0.9,
  "canvas": {
    "width": 960,
    "height": 640
  },
  "fireworksTechGraph": {
    "style": "style-1-flat-icon",
    "diagramType": "comparison",
    "topologyNotes": [
      "source page render inspected",
      "extracted page text inspected",
      "source page render inspected",
      "preserve interview coding pattern categories: two pointers, hash maps, linked lists, sliding windows, binary search, stacks, heaps, graphs, DP, and backtracking",
      "retargeted from RAG chapter to algorithms-and-decision-models"
    ],
    "publicBoundary": [
      "original vector output",
      "no source pixels",
      "no source mark or long wording"
    ]
  },
  "callouts": [],
  "sourceReview": {
    "conceptAnchors": [
      "concept: two pointers",
      "concept: hash maps",
      "concept: sliding window",
      "concept: binary search",
      "concept: dynamic programming"
    ],
    "labelSource": "curated",
    "semanticStatus": "reviewed"
  },
  "groups": [
    {
      "id": "linear",
      "label": "Linear scans",
      "x": 64,
      "y": 130,
      "w": 250,
      "h": 284
    },
    {
      "id": "lookup",
      "label": "Lookup and ordering",
      "x": 356,
      "y": 130,
      "w": 250,
      "h": 284
    },
    {
      "id": "state",
      "label": "State-space search",
      "x": 648,
      "y": 130,
      "w": 250,
      "h": 284
    }
  ],
  "shapes": [
    {
      "id": "two",
      "kind": "rect",
      "label": "Two pointers",
      "detail": "paired scan",
      "x": 106,
      "y": 168,
      "w": 126,
      "h": 54,
      "tone": "blue"
    },
    {
      "id": "window",
      "kind": "rect",
      "label": "Sliding window",
      "detail": "range scan",
      "x": 106,
      "y": 282,
      "w": 126,
      "h": 54,
      "tone": "green"
    },
    {
      "id": "hash",
      "kind": "rect",
      "label": "Hash map",
      "detail": "lookup",
      "x": 398,
      "y": 168,
      "w": 126,
      "h": 54,
      "tone": "orange"
    },
    {
      "id": "binary",
      "kind": "rect",
      "label": "Binary search",
      "detail": "ordered split",
      "x": 398,
      "y": 282,
      "w": 126,
      "h": 54,
      "tone": "purple"
    },
    {
      "id": "graph",
      "kind": "rect",
      "label": "Graph search",
      "detail": "BFS DFS",
      "x": 690,
      "y": 168,
      "w": 126,
      "h": 54,
      "tone": "teal"
    },
    {
      "id": "dp",
      "kind": "rect",
      "label": "Dynamic program",
      "detail": "reuse state",
      "x": 690,
      "y": 282,
      "w": 126,
      "h": 54,
      "tone": "red"
    },
    {
      "id": "choose",
      "kind": "diamond",
      "label": "Choose by",
      "detail": "data shape",
      "x": 414,
      "y": 450,
      "w": 132,
      "h": 84,
      "tone": "gray"
    }
  ],
  "connectors": [
    {
      "from": "two",
      "to": "choose",
      "label": "ordered",
      "flow": "main"
    },
    {
      "from": "window",
      "to": "choose",
      "label": "contiguous",
      "flow": "data"
    },
    {
      "from": "hash",
      "to": "choose",
      "label": "lookup",
      "flow": "control"
    },
    {
      "from": "binary",
      "to": "choose",
      "label": "sorted",
      "flow": "main"
    },
    {
      "from": "graph",
      "to": "choose",
      "label": "relations",
      "flow": "async"
    },
    {
      "from": "dp",
      "to": "choose",
      "label": "overlap",
      "flow": "control"
    }
  ]
}
