Understanding KMP algorithm

This is pattern matching algorithm. I tried to understand this algorithm lot of time but was not able to get the intuation of this…