You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
480 B

  1. // Copyright 2014-2017 Ulrich Kunitz. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. /*
  5. Package hash provides rolling hashes.
  6. Rolling hashes have to be used for maintaining the positions of n-byte
  7. sequences in the dictionary buffer.
  8. The package provides currently the Rabin-Karp rolling hash and a Cyclic
  9. Polynomial hash. Both support the Hashes method to be used with an interface.
  10. */
  11. package hash