The indexing for one-dimensional proportionally-scaled strings
Related problems of scaled matching and indexing, which aim to determine all positions in a text T that a pattern P occurs in its scaled form, are considered important because of their applications to computer vision. However, previous results only focus on enlarged patterns, and do not allow shrunk...
Gespeichert in:
Veröffentlicht in: | Information processing letters 2011-03, Vol.111 (7), p.318-322 |
---|---|
Hauptverfasser: | , , , |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Related problems of scaled matching and indexing, which aim to determine all positions in a text
T that a pattern
P occurs in its scaled form, are considered important because of their applications to computer vision. However, previous results only focus on enlarged patterns, and do not allow shrunk patterns since they may disappear. In this paper, we give the definition and an efficient indexing algorithm for proportionally-scaled patterns that can be visually enlarged or shrunk. The proposed indexing algorithm takes
O
(
|
T
|
)
time in its preprocessing phase, and achieves
O
(
|
P
|
+
U
p
+
log
m
)
time in its answering phase, where
|
T
|
,
|
P
|
,
U
p
, and
m denote the length of
T, the length of
P, the number of reported positions, and the length of
T under run-length representation, respectively.
► We give the first algorithm for indexing strings that can be enlarged or shrunk. ► The proposed algorithm is nearly optimal. ► Our definition for scaled strings considers the visual effect to human eyes. |
---|---|
ISSN: | 0020-0190 1872-6119 |
DOI: | 10.1016/j.ipl.2010.12.001 |