Skip to content

v0.4.1

Choose a tag to compare

@davidesantangelo davidesantangelo released this 04 Apr 16:31
· 81 commits to main since this release

This is a maintenance release focused on simplifying the codebase by removing an algorithm and refining existing implementations.

Removed

  • Rabin-Karp Algorithm: The Rabin-Karp search algorithm (rabin_karp_search) has been completely removed from the codebase, including its implementation, header declaration, tests, and compatibility wrappers.

Changed

  • Algorithm Selection: The internal logic for selecting literal search algorithms has been updated. Boyer-Moore-Horspool is now used more broadly for patterns not handled by KMP, replacing the previous logic that might have selected Rabin-Karp for longer patterns.
  • Case-Insensitive Logic: Minor refinements were made to the case-insensitive handling within the Boyer-Moore-Horspool and KMP search functions for improved clarity or correctness.
  • Code Structure: ANSI color code definitions have been consolidated directly within krep.c.
  • Dependencies: References to Rabin-Karp removed from tests and documentation (docs/index.html).