Exemple #1
0
 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;
 }
Exemple #2
0
 protected void toString(StringBuilder sb) {
   sb.append("[" + x.toString() + "]; ");
   if (left != null) {
     left.toString(sb);
   }
   if (right != null) {
     right.toString(sb);
   }
 }