public boolean dominatesSomebody(Int2DIndividual nInd) { Treaps split = splitX(nInd); if (split.l != null && nInd.compareDom(split.l.getMax()) < 0) { return true; } if (split.r != null && nInd.compareDom(split.r.getMin()) < 0) { return true; } return false; }
protected void toString(StringBuilder sb) { sb.append("[" + x.toString() + "]; "); if (left != null) { left.toString(sb); } if (right != null) { right.toString(sb); } }