Let D be the set of documents, and for each document d ∈ D a…

Questions

Let D be the set оf dоcuments, аnd fоr eаch document d ∈ D аnd word w, let Pos(w, d) ⊆ ℕ be the set of token positions where w occurs in d.Define: proximitySearch(w1, w2, k) = { d ∈ D | ∃ p ∈ Pos(w1, d), q ∈ Pos(w2, d) such that |p − q|