Naive pattern matching compares each character of the pattern with each character of the text _______.

  • In reverse order
  • One by one
  • Randomly
  • Simultaneously
Naive pattern matching compares each character of the pattern with each character of the text one by one. It involves a simple character-by-character comparison, starting from the beginning of the text, and sliding the pattern one position at a time until a match is found or the end of the text is reached.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *