I have a problem with the difference between quadratic and linear sensing algorithms. When I read the conceptual explanations, I see that I ^ 2 have been repeatedly added to the last index. How are things going here? What would change linear sensing? From what I'm reading, the method below implements quadratic sensing.
private int findPosQuadratic( AnyType x ) { int offset = 1; int currentPos = myhash( x ); while( array[ currentPos ] != null && !array[ currentPos ].element.equals( x ) ) { currentPos += offset;
source share