Abstract

The subject of research is the solving of the problem of finding a Hamiltonian cycle on a graph, which belongs to the NP complexity class. The purpose of the work is to develop an effective polynomial algorithm for its optimal solving. This work is a continuation of the author's previous work, where the method of deferred solutions is proposed, which uses a iterating over acceptable solutions scheme, which is explaining by the inability to formulate conditions for directly finding the optimal solution. For a graph of n vertices, the size of the iteration space is (n-1)!. For large values n, the time costs are unacceptably large and their reduction is required. During the operation of the deferred solutions method, until the generated solution of the problem becomes a Hamiltonian cycle, it has name – a partial solution. The scheme underlying the deferred solutions method provides: the rejection of the complete construction of all solutions, the simultaneous formation of a set of partial solutions, the discarding of unpromising solutions, the possibility of returning to deferred partial solutions if necessary, the exclusion of the loss of the optimal solution when discarding partial solutions. However, as shown, only when choosing the correct estimate of partial solutions. At first, the real length of the partial solution path was using as an estimate. For an incomplete graph of 20 vertices, the optimal solution found in 0.005 minutes, but on a complete graph of 20 vertices, the search time was commensurate with the search of all possible solutions to the problem. The article analyzes and shows that the real length of the path as an estimate is logically justified and guarantees finding the optimal solution. However, does not always guarantee the minimum time spent searching for it, since when searching through the space of acceptable solutions, a search in width scheme worked out, which entails the construction of almost all acceptable solutions. This explains the different time spent on finding the optimal solution for tests incomplete and complete graphs – the sets of acceptable solutions differ significantly. In this work, as an alternative, another estimate is proposing – the path length of the partial solution, measured in the arcs of the graph. As shown that the use of this estimate leads to a search of solutions in depth. This estimate reduces the time to find a solution, but does not guarantee an optimal result. For the successful application of the method, it is necessary to develop a new estimate of partial solutions that would combine the qualities of the estimates considered.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call