Animated demonstration and explanation of the LPS array construction process. Constructing the LPS array of the pattern string is the foundation and core of mastering the KMP algorithm.