### Abstract

The suffix array SA_{w} of a string w of length n is a permutation of [1..n] such that SA_{w}[i]=j iff w[j, n] is the lexicographically i-th suffix of w. In this paper, we consider variants of the reverse-engineering problem on suffix arrays with two given permutations P and Q of [1..n], such that P refers to the forward suffix array of some string w and Q refers to the backward suffix array of the reversed string w^{R}. Our results are the following: (1) An algorithm which computes a solution string over an alphabet of the smallest size, in O(n) time. (2) The exact number of solution strings over an alphabet of size σ. (3) An efficient algorithm which computes all solution strings in the lexicographical order, in time near optimal up to log n factor.

Original language | English |
---|---|

Title of host publication | String Processing and Information Retrieval - 25th International Symposium, SPIRE 2018, Proceedings |

Editors | Travis Gagie, Alistair Moffat, Gonzalo Navarro, Ernesto Cuadros-Vargas |

Publisher | Springer Verlag |

Pages | 254-267 |

Number of pages | 14 |

ISBN (Print) | 9783030004781 |

DOIs | |

Publication status | Published - Jan 1 2018 |

Event | 25th International Symposium on String Processing and Information Retrieval, SPIRE 2018 - Lima, Peru Duration: Oct 9 2018 → Oct 11 2018 |

### Publication series

Name | Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) |
---|---|

Volume | 11147 LNCS |

ISSN (Print) | 0302-9743 |

ISSN (Electronic) | 1611-3349 |

### Other

Other | 25th International Symposium on String Processing and Information Retrieval, SPIRE 2018 |
---|---|

Country | Peru |

City | Lima |

Period | 10/9/18 → 10/11/18 |

### All Science Journal Classification (ASJC) codes

- Theoretical Computer Science
- Computer Science(all)

## Fingerprint Dive into the research topics of 'Recovering, counting and enumerating strings from forward and backward suffix arrays'. Together they form a unique fingerprint.

## Cite this

*String Processing and Information Retrieval - 25th International Symposium, SPIRE 2018, Proceedings*(pp. 254-267). (Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics); Vol. 11147 LNCS). Springer Verlag. https://doi.org/10.1007/978-3-030-00479-8_21