Abstract
Two planar figures aresimilar if a scaled version of one of them can be moved so that it coincides with the second figure. The problem of checking whether two planar figures are similar is relevant to both computational geometry and pattern recognition. An efficient algorithm is known for checking whether two polygonsP andQ are similar(1) The purpose of this note is to give an efficient algorithm for checking whether two planar figuresP andQ are similar when the figures are no longer constrained to be polygons. We give anO(n logn) time algorithm for solving this problem when each figure consists of a collection of (possibly intersecting) straight line segments, circles, and ellipses. Our algorithm can easily be modified for figures which include other geometric patterns as well. We also prove that our algorithm is optimal.
Similar content being viewed by others
References
G. Manacher, An Application of Pattern Matching to a Problem in Geometrical Complexity,Information Processing Letters 5(1):6–7 (1976).
I. M. Yaglom,Geometric Transformations, Random House, New York, pp. 61–63.
A. V. Aho, J. E. Hopcroft, and J. D. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, Massachusetts.
D. E. Knuth, J. H. Morris, and V. R. Pratt, Fast Pattern Match in Strings, Stanford University CS-74-440 (1976).
E. M. Reingold, On the Optimality of Some Set Algorithms,J. of the ACM 19(4):649–659 (1972).
Author information
Authors and Affiliations
Additional information
This work was partially supported by the Office of Naval Research under Contract N00014-84-K-0502.
Rights and permissions
About this article
Cite this article
Atallah, M.J. Checking similarity of planar figures. International Journal of Computer and Information Sciences 13, 279–290 (1984). https://doi.org/10.1007/BF00977833
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF00977833