Genetic Algorithms with Heuristic - Knight's Tour Problem
نویسندگان
چکیده
Genetic algorithms are good search techniques for finding solutions to NP problems. However, their high degree of randomness sometimes fails to guide the search towards finding solutions within reasonable costs. The Knight’s tour problem is an example of where pure GAs fail (practically) to find solutions. Combining GAs with other approaches on the other hand can highly improve their efficiency. In this paper, we present a new approach for improving the performance and effectiveness of GAs by applying heuristic. In our method, while the population is evolving using GA operators, a heuristic is applied to evolve the population either to full solutions or to better partial solutions to be used in generating the next population. The performance of this approach is compared against standard depth-first search with backtracking, heuristic alone, repair alone and also with genetic algorithms with repair. We applied our method to the Knight’s tour problem using binary encoding. Results showed that our method generated more solutions compared to other approaches, and that solutions were found early in the search stages with less probability of failing to find a solution.
منابع مشابه
Ant Colonies Discover Knight's Tours
In this paper we introduce an Ant Colony Optimisation (ACO) algorithm to find solutions for the well-known Knight’s Tour problem. The algorithm utilizes the implicit parallelism of ACO’s to simultaneously search for tours starting from all positions on the chessboard. We compare the new algorithm to a recently reported genetic algorithm, and to a depth-first backtracking search using Warnsdorff...
متن کاملTwo new heuristic algorithms for Covering Tour Problem
Covering Tour Problem (CTP) is the generalized form of Traveling Salesman Problem (TSP), which has found different applications in the designing of distribution networks, disaster relief, and transportation routing. The purpose of this problem is to determine the Hamiltoniancyclewiththe lowest costusinga subset of all the nodes, such that the other nodes would be in a distance shorter than the ...
متن کاملHeuristic Strategies for the Knight Tour Problem
This paper presents three heuristic functions that aim to reduce the search cost for the knight tour problem. The first heuristic, h1a, is an interesting case of study that illustrates heuristic analysis, although it fails to obtain solutions. Heuristic h2 is an enhancement of the Warnsdorff method, discussed as heuristic h1b. All heuristics are used in conjunction with a greedy algorithm to de...
متن کاملA Brute Force Approach to Solving the Knights Tour Problem Using Prolog
The knight’s tour problem is an old problem. It was investigated by Euler as well as a number of other researchers in recent years. This work describes the author’s history with the problem, reviews the current work and the implementation. The work describes the algorithm, a depth first search with no bias or heuristic, and provides a discussion along with future work of this work. The work use...
متن کاملHow good is the Warnsdorff's knight's tour heuristic?
Warnsdorff's rule for a knight's tour is a heuristic, i.e., it's a rule that does not produce the desired result all the time. It is a classic example of a greedy method in that it is based on a series of locally optimal choices. This note describes an analysis that determines how good the heuristic is on an 8 X 8 chessboard. The order of appearance in a permutation of the eight possible moves ...
متن کامل