## Abstract

Most known two-dimensional matching algorithms have a rectangular text (image) and rectangular pattern (template) as their input. These matching algorithms perform a row by row analysis followed by some column processing. These techniques are only efficient if all the rows are of equal length, hence the necessity for rectangular patterns. We present a novel method for analysing patterns with rows of different lengths. This enables finding all occurrences of a nonrectangular figure of height m in an n×n text in time {Mathematical expression}. We make use of the smaller matching problem. The smaller matching problem is that of finding all appearances of a numerical one dimensional pattern in a numerical one-dimensional text, where every element of the pattern is no greater than the corresponding text element.

Original language | English (US) |
---|---|

Pages (from-to) | 211-224 |

Number of pages | 14 |

Journal | Annals of Mathematics and Artificial Intelligence |

Volume | 4 |

Issue number | 3-4 |

DOIs | |

State | Published - Sep 1991 |

## ASJC Scopus subject areas

- Artificial Intelligence
- Applied Mathematics