show the steps please.
Exercise 3: (Brute Force: String Matching) How many comparisons (both successful and unsuccessful) are made by the brute-force string-matching algorithm in searching for each of the following patterns in the binary text of 1000 zeros? [CL01.1, K1, 0.5 Mark] 00001 b.10000 c.01010
Answer :