knearpalindromic
Knearpalindromic is a term used to describe a property of a string or sequence relative to palindromes, parameterized by a nonnegative integer k. It denotes how close the string is to being a palindrome when allowing up to k changes.
Formal definition: Let s be a string of length n over an alphabet. s is knearpalindromic with
Recognition and computation: To test knearpalindromicity with fixed k, count the number of i in 0 to
Examples: The string "abca" is knearpalindromic with k = 1 because the only mismatched pair is s[1]
See also: palindrome, k-palindrome, near-palindrome. Knearpalindromic sits within discussions of string similarity and palindrome-constrained problems in