On the Longest Common Cartesian Substring Problem. (7th January 2022)
- Record Type:
- Journal Article
- Title:
- On the Longest Common Cartesian Substring Problem. (7th January 2022)
- Main Title:
- On the Longest Common Cartesian Substring Problem
- Authors:
- Faro, Simone
Lecroq, Thierry
Park, Kunsoo
Scafiti, Stefano - Abstract:
- Abstract: A Cartesian tree is associated with a string of numbers and is structured as a heap from which the original string can be recovered. Although Cartesian trees have been introduced 40 years ago, the Cartesian tree matching problem appeared very recently. It consists in finding all substrings of given text, which have the same Cartesian tree as that of a given pattern. In this paper, we address the problem of computing the longest common Cartesian substrings of two strings and present three methods for such problem. Our first method is based on a classical suffix tree construction and solves the problem in randomized linear time and linear space, although the space overhead is quite prohibitive in the case of large strings. Our second solution is based on classical dynamic programming, and our third solution is based on a constructive approach. Both of them run in quadratic worst case time but are more space economical in practice. From our experimental results, it turns out that our second solution runs faster than the standard suffix tree solution for short strings, whereas our third solution is more suitable for large strings, when storing a full suffix tree becomes prohibitive.
- Is Part Of:
- Computer journal. Volume 66:Number 4(2023)
- Journal:
- Computer journal
- Issue:
- Volume 66:Number 4(2023)
- Issue Display:
- Volume 66, Issue 4 (2023)
- Year:
- 2023
- Volume:
- 66
- Issue:
- 4
- Issue Sort Value:
- 2023-0066-0004-0000
- Page Start:
- 907
- Page End:
- 923
- Publication Date:
- 2022-01-07
- Subjects:
- Cartesian tree -- non-standard string matching -- longest common substring -- combinatorial algorithm -- design and analysis of algorithms
Computers -- Periodicals
005.1 - Journal URLs:
- http://comjnl.oxfordjournals.org/ ↗
http://ukcatalogue.oup.com/ ↗ - DOI:
- 10.1093/comjnl/bxab204 ↗
- Languages:
- English
- ISSNs:
- 0010-4620
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 3394.060000
British Library DSC - BLDSS-3PM
British Library HMNTS - ELD Digital store - Ingest File:
- 26931.xml