This paper provides a full theoretical and experimental analysis of a serial algorithm for the point-in-polygon test, which requires less running time than previous algorithms and can handle all degenerate cases. The serial algorithm can quickly determine whether a point is inside or outside a polygon and accurately determine the contours of input polygon. It describes all degenerate cases and simultaneously provides a corresponding solution to each degenerate case to ensure the stability and reliability. This also creates the prerequisites and basis for our novel boolean operations algorithm that inherits all the benefits of the serial algorithm. Using geometric probability and straight-line equation , it optimizes our two algorithms that avoid the division operation and do not need to compute any intersection points. Our algorithms are applicable to any polygon that may be self-intersecting or with holes nested to any level of depth. They do not have to sort the vertices clockwise or counterclockwise beforehand. Consequently, they process all edges one by one in any order for input polygons. This allows a parallel implementation of each algorithm to be made very easily. We also prove several theorems guaranteeing the correctness of algorithms. To speed up the operations, we assign each vector a number code and derive two iterative formulas using differential calculus. However, the experimental results as well as the theoretical proof show that our serial algorithm for the point-in-polygon test is optimal and the time complexities of all algorithms are linear. Our methods can be extended to three-dimensional space, in particular, they can be applied to 3D printing to improve its performance.
This paper presents a novel theory and method to calculate the canonical labelings of digraphs whose definition is entirely different from the traditional definition of Nauty. It indicates the mutual relationships that exist between the canonical labeling of a digraph and the canonical labeling of its complement graph. It systematically examines the link between computing the canonical labeling of a digraph and the k-neighborhood and k-mix-neighborhood subdigraphs. To facilitate the presentation, it introduces several concepts including mix diffusion outdegree sequence and entire mix diffusion outdegree sequences. For each node in a digraph G, it assigns an attribute m_NearestNode to enhance the accuracy of calculating canonical labeling. The four theorems proved here demonstrate how to determine the first nodes added into . Further, the other two theorems stated below deal with identifying the second nodes added into . When computing , if already contains the first i vertices , Diffusion Theorem provides a guideline on how to choose the subsequent node of . Besides, the Mix Diffusion Theorem shows that the selection of the th vertex of for computing is from the open mix-neighborhood subdigraph of the nodes set . It also offers two theorems to calculate the of the disconnected digraphs. The four algorithms implemented in it illustrate how to calculate of a digraph. Through software testing, the correctness of our algorithms is preliminarily verified. Our method can be utilized to mine the frequent subdigraph. We also guess that if there exists a vertex satisfying conditions for each , then for .
In this paper, we present basic notions and relevant results in the area of grid scheduling. The current approaches of GA have little weaknesses when it was used in grid scheduling. We introduce mathematical model of grid scheduling and give a detailed GA method by using the "pattern theory" and "building block hypothesis" technologies. This modified method can decrease the randomicity of the current GA. And we use the MGA method to study grid-scheduling problems and find a necessary and sufficient design method. At last, we analyze the laboratory result to show that the modified algorithm has better characteristics than the standard GA when it was used in grid task scheduling.
This paper puts forward an innovative theory and method to calculate the canonical labelings of graphs that are distinct to ’s. It shows the correlation between the canonical labeling of a graph and the canonical labeling of its complement graph. It regularly examines the link between computing the canonical labeling of a graph and the canonical labeling of its k- . It defines and . For each node of a graph G, it designs a characteristic to improve the precision for calculating canonical labeling. Two theorems established here display how to compute the first nodes of . Another theorem presents how to determine the second nodes of . When computing , if already holds the first i nodes , Diffusion and Nearest Node theorems provide skill on how to pick the succeeding node of . Further, it also establishes two theorems to determine the of disconnected graphs. Four algorithms implemented here demonstrate how to compute of a graph. From the results of the software experiment, the accuracy of our algorithms is preliminarily confirmed. Our method can be employed to mine the frequent subgraph. We also conjecture that if there is a node meeting conditions ⩽ for each , then for .