Spanning simple path inside a simple polygon

被引:0
|
作者
Sepahvand, Abdolah [1 ]
Razzazi, Mohammadreza [1 ]
机构
[1] Amirkabir Univ Technol, Dept Comp Engn, Tehran 100190, Iran
来源
JOURNAL OF SUPERCOMPUTING | 2023年 / 79卷 / 03期
关键词
Hamiltonian path; NP-complete; Orthogonal spiral polygon; Simple Path; COMPUTING SIMPLE PATHS; ALGORITHM;
D O I
10.1007/s11227-022-04765-0
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Given a set S of n colored points of m colors inside a simple polygon P, each point within the polygon has a specific color that is not necessarily unique, i.e., they may exhibit the same color. The study aims to find a simple path that traverses at least one point of each color using a set of S points contained within a simple polygon P. Two results are presented in this study. First, we demonstrate that finding such simple paths inside a simple polygon is an NP - complete problem. Moreover, we provide a polynomial-time algorithm that computes the simple path when P is an orthogonal spiral simple polygon, and our objective is to locate a simple Hamiltonian path L using all points of S inside P. Our algorithm has a time complexity of 0(r + rn(4)), where r is the number of reflex vertices in P and n is the number of points in S.
引用
收藏
页码:2740 / 2766
页数:27
相关论文
共 50 条