The number of comparisons

Report a typo

How many symbol comparisons does the described algorithm perform to find the pattern cab in the text acacabad? Write the number below.

Tip: Remember that after the first match is found, the search for matches in the string continues!

Enter a number
___

Create a free account to access the full topic