# Subcaterpillar Isomorphism Between Caterpillars: Subtree Isomorphism Restricted Text and Pattern Trees to Caterpillars

### Tomoya Miyazaki, Kouich Hirata

#### 2023

#### Abstract

In this paper, as a pattern matching for rooted labeled caterpillars (caterpillars, for short), we discuss a subcaterpillar isomorphism between caterpillars whether or not a pattern caterpillar is a subcaterpillar of a text caterpillar. Then, we design the algorithms to solve it by simplifying the algorithms for subcaterpillar isomorphism (between a caterpillar and a tree) when a pattern caterpillar is a subcaterpillar of a text tree designed by Miyazaki and Hirata (2022). These algorithms run in O(hHσ) time and O(h) space, where h is the height of a pattern caterpillar, H is the height of a text caterpillar and σ is the number of labels in the caterpillars. Finally, we give experimental results of computing these algorithms by comparing with subcaterpillar isomorphism and caterpillar inclusion.

Download#### Paper Citation

#### in Harvard Style

Miyazaki T. and Hirata K. (2023). **Subcaterpillar Isomorphism Between Caterpillars: Subtree Isomorphism Restricted Text and Pattern Trees to Caterpillars**. In *Proceedings of the 12th International Conference on Pattern Recognition Applications and Methods - Volume 1: ICPRAM,* ISBN 978-989-758-626-2, pages 89-94. DOI: 10.5220/0011659600003411

#### in Bibtex Style

@conference{icpram23,

author={Tomoya Miyazaki and Kouich Hirata},

title={Subcaterpillar Isomorphism Between Caterpillars: Subtree Isomorphism Restricted Text and Pattern Trees to Caterpillars},

booktitle={Proceedings of the 12th International Conference on Pattern Recognition Applications and Methods - Volume 1: ICPRAM,},

year={2023},

pages={89-94},

publisher={SciTePress},

organization={INSTICC},

doi={10.5220/0011659600003411},

isbn={978-989-758-626-2},

}

#### in EndNote Style

TY - CONF

JO - Proceedings of the 12th International Conference on Pattern Recognition Applications and Methods - Volume 1: ICPRAM,

TI - Subcaterpillar Isomorphism Between Caterpillars: Subtree Isomorphism Restricted Text and Pattern Trees to Caterpillars

SN - 978-989-758-626-2

AU - Miyazaki T.

AU - Hirata K.

PY - 2023

SP - 89

EP - 94

DO - 10.5220/0011659600003411