In this paper, we present a linear time algorithm to verify if a given integer array is a valid p-border array for a binary alphabet. We also show a linear time algorithm to compute all binary parameterized strings sharing a given p-border array. In addition, we give an algorithm which computes all p-border arrays of length at most , where is a given threshold. This algorithm runs in time, where is the number of all p-border arrays of length for a binary parameter alphabet.
The problems with a larger alphabet are much more difficult. Still, we present an ¨Ctime ¨Cspace algorithm to verify if a given integer array of length is a valid p-border array for an unbounded alphabet. The best previously known solution to this task takes time proportional to the -th Bell number , and hence our algorithm is much more efficient. Also, we show that it is possible to enumerate all p-border arrays of length at most for an unbounded alphabet in time, where denotes the number of p-border arrays of length .