<p>In <a href="https://github.com/mlpack/mlpack/pull/691#discussion_r67987417">src/mlpack/methods/lsh/lsh_search_impl.hpp</a>:</p>
<pre style='color:#555'>&gt; +
&gt; +
&gt; +  // define a priority queue with CompareGreater as a minheap
&gt; +  std::priority_queue&lt;
&gt; +    std::pair&lt;double, size_t&gt;,        // contents: pairs of (score, index)
&gt; +    std::vector&lt;                      // container: vector of pairs
&gt; +      std::pair&lt;double, size_t&gt;
&gt; +      &gt;,
&gt; +    mlpack::neighbor::CompareGreater // comparator of pairs(compare scores)
&gt; +  &gt; minHeap; // our minheap
&gt; +
&gt; +  // Start by adding the lowest scoring set to the minheap
&gt; +  std::pair&lt;double, size_t&gt; pair0( perturbationScore(Ao, scores), 0 );
&gt; +  minHeap.push(pair0);
&gt; +
&gt; +  double prevScore = 0; // store score of smallest inserted vector (for assert)
</pre>
<p>If this variable is here just for an assert, then I think once the tests show the algorithm is working then we can remove this.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/691/files/fa7f62da6a4cfe7fa45e297d7a4a1491c9c39bb1#r67987417">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFLqzTBcVZ6SQdbQJWcwwO-UbJ9Q2ks5qOKMhgaJpZM4IxQW5">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFLYHLYkqtolupIl8RcCKJ4ryswRDks5qOKMhgaJpZM4IxQW5.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/691/files/fa7f62da6a4cfe7fa45e297d7a4a1491c9c39bb1#r67987417"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>