def _newRepresentation(self, index, newIndex):
newRepresentation = self.bucketMap[index].copy()<EOL>ri = newIndex % self.w<EOL>newBit = self.random.getUInt32(self.n)<EOL>newRepresentation[ri] = newBit<EOL>while newBit in self.bucketMap[index] ornot self._newRepresentationOK(newRepresentation, newIndex):<EOL><INDENT>self.numTries += <NUM_LIT:1><EOL>newBit = self.random.getUInt32(self.n)<EOL>newRepresentation[ri] = newBit<EOL><DEDENT>return newRepresentation<EOL>
Return a new representation for newIndex that overlaps with the
representation at index by exactly w-1 bits