Data Structure
Data Structure
Backtracking is an important
tool for solving constraint
satisfaction problems, such as
crosswords, verbal arithmetic,
Sudoku, and many other
puzzles. It is often the most
convenient (if not the most
efficient) technique for parsing,
for the knapsack problem and
other combinatorial
optimization problems. It may
also be used in theoretical
computer science to find
"proofs" of impossibility, as in
How Backtracking 2
What is Rabin-Karp
Algorithm ?
Rabin-Karp algorithm is a string
matching algorithm that uses
hashing to search for patterns
within a larger body of text. It is
named after its inventors,
Michael O. Rabin and Richard
M. Karp.