Suppose I want to determine whether two strings, S and T, of…
Suppose I want to determine whether two strings, S and T, of length n, drawn from alphabet set D, are cryptoquips (the same under a permutation of the alphabet). For example, “abcabab” and “bcabcbc” are cryptoquips because we can map a to b, b to c, and c to a. Formally, they are cryptoquips if there exists a bijective function f:[1..|D|] –> [1..|D|] such that T[i] = f(S[i]). Which strategy can we use to do this efficiently?
Read Details