Mental Model
We use a number (hash) to represent a string part and compare these numbers to find matches quickly.
Analogy: Imagine checking if a small book page is inside a big book by comparing page numbers instead of reading every word each time.
Text: T h i s i s a t e s t Index: 0->1->2->3->4->5->6->7->8->9->10->11->null Pattern: t e s t Index: 0->1->2->3->null
