Components

Select Connection: INPUT[inlineListSuggester(optionQuery(#area)):connections] Date Created: INPUT[dateTime(defaultValue(null)):Date_Created] Due Date: INPUT[dateTime(defaultValue(null)):Due_Date] Priority Level: INPUT[inlineSelect(option(1 Critical), option(2 High), option(3 Medium), option(4 Low)):Priority_Level] Status: INPUT[inlineSelect(option(1 To Do), option(2 In Progress), option(3 Testing), option(4 Completed), option(5 Blocked)):Status]

Description

returns a set of points, each one being with probability at least among the k nearest neighbors to q

definitions is the priority queue that holds the top-k closest points farthest point in the priority queue from

Let be the nearest neighbors of , with k. At each stage of the algorithm, the invariant ” or ” is satisfied, and can be proven by induction. base: is empty, so the condition holds induction: assume that the invariant holds before inserting a new point into PQ. We need to prove it still holds after the insertion. There are two cases:

  1. . After the insertions, either is still or it becomes exactly . In the latter case, we need to show that
  2. . If x is not inserted because , the invariant still holds. Otherwise, it replaces the previous , since the algorithm replaces the point with highest distance. We need to show that new satisfies We still have to prove that for any new . By construction, it holds that for any point , . Since is the true k nearest neighbor, we have that:

From the definition and the monotonicity of the LSH Family, we can conclude that implies , thus concluding the proof of the invariant.

Now we want to find the minimum number of tries to visit before returning a set of points each one with probability at least to be among the true k nearest neighbors. Suppose we are at level of the search and the probability of collision at this level is . If we perform independent searches at level , the probability that none of these candidates collide with is . Our aim is to find that satisfies:

At this point we can use the Taylor expansion , on the dividend, to obtain:

since we proved that implies , we can conclude the proof: