bool PqueueHasNext(SplayTree<int> pqueue, int next, int[] pos, IList<IList<int>> invindex) { return invindex[next][pos[next]] + 1 == pqueue.GetFirstWithSplay (); }
bool PqueueHasNext(SplayTree<int> pqueue, int next, int[] pos, IList<IList<int>> invindex) { return invindex[next][pos[next]] + 1 == pqueue.GetFirstWithSplay (); }