Counting common substrings effectively
Abstract
This article presents effective (dynamic) algorithm for solving a problem of counting the number of substrings of given string which are also substrings of second string. Presented algorithm can be used for example for quick calculation of strings similarity measure using generalized n-gram method (Niewiadomski measure), which are shown. Correctness and complexity analyses are included. ----- W artykule przedstawiono efektywny (dynamiczny) algorytm wyznaczajacy miare podobie\'nstwa wyraz\'ow za pomoca uog\'olnionej metody n-gram\'ow (miary Niewiadomskiego). Uzasadniono tak\.ze poprawno\'s\'c dziaania algorytmu i oszacowano jego zo\.zono\'s\'c obliczeniowa.
Turn this paper into a lesson
ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.