A Novel Hybrid Flower Pollination Algorithm with Chaotic Harmony Search for Solving Sudoku Puzzles
Автор: Osama Abdel-Raouf, Ibrahim El-henawy, Mohamed Abdel-Baset
Журнал: International Journal of Modern Education and Computer Science (IJMECS) @ijmecs
Статья в выпуске: 3 vol.6, 2014 года.
Бесплатный доступ
Flower Pollination algorithm (FPA) is a new nature-inspired algorithm, based on the characteristics of flowering plants.In this paper, a new hybrid optimization method called improved Flower Pollination Algorithm with Chaotic Harmony Search (FPCHS) is proposed. The method combines the standard Flower Pollination algorithm (FPA) with the chaotic Harmony Search (HS) algorithm to improve the searching accuracy. The FPCHS algorithm is used to solve Sudoku puzzles. Numerical results show that the FPCHS is accurate and efficient in comparison with standard Harmony Search, (HS) algorithm.
Flower pollination algorithm, Harmony search, meta-heuristics, optimization, Sudoku, chaos, evolutionary algorithms
Короткий адрес: https://sciup.org/15014636
IDR: 15014636
Текст научной статьи A Novel Hybrid Flower Pollination Algorithm with Chaotic Harmony Search for Solving Sudoku Puzzles
Published Online March 2014 in MECS DOI: 10.5815/ijmecs.2014.03.05
min
Z = ZZ x4-45 'll x4-45| +Z i-1 j=1 j=1 i=1 k=1
Z X m ( l , m ) e B k
- 45
Where xi j is a cell at row i and column j , which has an integer value from 1 to 9; and Bk set of coordinates for block k . The first term in Equation 1 represents the penalty function for each horizontal row; the second term for each vertical column; and the third term for each block [2]. It should be noted that, although the sum of each row, each column, or each block equals 45, it does not guarantee that the numbers 1 through 9 are used exactly once. However, any violation of the uniqueness affects other row, column, or block which contains the wrong value jointly [2].
Harmony Search (HS) is an evolutionary algorithm, which mimics musicians’ behaviors, such as random play, memory-based play, and pitch-adjusted play when they perform. HS has proved to be a powerful tool for solving several optimization problems [22-32]. It does not need any mathematical calculations to obtain the optimal solutions. In recent years, HS was been applied to many optimization problems, demonstrating its efficiency compared to other heuristic algorithms and other Meta mathematical optimization techniques. Continuous development improvements to the algorithm and various applications to new types of problems (operations research, economy, computer science , civil engineering and electrical engineering), indicate that HS is a preferred choice. As a result of this, many studies have been proposed to increase its efficiency.
Sudoku puzzles in this research were formulated as an optimization problem with number-uniqueness penalties. In order to compare the performance of proposed algorithm and standard HS, proposed algorithm was applied to solving the Sudoku puzzles taken from Fig.1 (easy level) and Fig. 3 (hard level) of Geem [2] and it was found that the proposed algorithm in example1 takes time less than standard HS, it takes3 second after 76 function evaluations, but The standard HS takes 285 function evaluations, taking 9 seconds. In example 2 the proposed algorithm takes 6 second after 237 function evaluations with the penalty of 0 but standard harmony search entrapped in one of local optima with the penalty of 14 after 1,064 function evaluations.
This paper is organized as follows: after introduction, Literature review of Sudoku is shortly displayed. In section 3, the Flower Pollination Algorithm briefly introduced. In section 4, the harmony search is briefly introduced. In section 5, the proposed algorithm is described, while the results are discussed in section 6. Finally, conclusions and future work are presented in section 7.
-
II. Literature review of solution techniques for
Список литературы A Novel Hybrid Flower Pollination Algorithm with Chaotic Harmony Search for Solving Sudoku Puzzles
- Web http://www.math.cornell.edu/~mec/Summer2009 /Mahmood/Intro.html . Nov. 30, 2013.
- Z. W. Geem, "Harmony search algorithm for solving sudoku," in Knowledge-Based Intelligent Information and Engineering Systems, 2007, pp. 371-378.
- D. Eppstein, "Nonrepetitive paths and cycles in graphs with application to Sudoku," arXiv preprint cs/0507053, 2005.
- A. Caine and R. Cohen, "MITS: A mixed-initiative intelligent tutoring system for sudoku," in Advances in Artificial Intelligence, ed: Springer, 2006, pp. 550-561.
- M. Nicolau and C. Ryan, "Solving sudoku with the gAuGE system," in Genetic Programming, ed: Springer, 2006, pp. 213-224.
- Y. Takayuki and S. Takahiro, "Complexity and completeness of finding another solution and its application to puzzles," IEICE transactions on fundamentals of electronics, communications and computer sciences, vol. 86, pp. 1052-1060, 2003.
- A. Moraglio, J. Togelius, and S. Lucas, "Product geometric crossover for the sudoku puzzle," in Evolutionary Computation, 2006. CEC 2006. IEEE Congress on, 2006, pp. 470-476.
- A. Kaur and S. Goyal, "A Survey on the Applications of Bee Colony Optimization Techniques," International Journal on Computer Science and Engineering (IJCSE), vol. 3, pp. 3037-3046, 2011.
- J. A. Pacurib, G. M. M. Seno, and J. P. T. Yusiong, "Solving sudoku puzzles using improved artificial bee colony algorithm," in Innovative Computing, Information and Control (ICICIC), 2009 Fourth International Conference on, 2009, pp. 885-888.
- R. Lewis, "Metaheuristics can solve sudoku puzzles," Journal of heuristics, vol. 13, pp. 387-401, 2007.
- A. Moraglio and J. Togelius, "Geometric particle swarm optimization for the sudoku puzzle," in Proceedings of the 9th annual conference on Genetic and evolutionary computation, 2007, pp. 118-125.
- M. C. Machado and L. Chaimowicz, "Combining Metaheuristics and CSP Algorithms to Solve Sudoku," in Games and Digital Entertainment (SBGAMES), 2011 Brazilian Symposium on, 2011, pp. 124-131.
- X. Q. Deng and Y. Da Li, "A novel hybrid genetic algorithm for solving Sudoku puzzles," Optimization Letters, vol. 7, pp. 241-257, 2013.
- X-S. Yang," Flower pollination algorithm for global optimization", Unconventional Computation and Natural Computation, Lecture Notes in Computer Science, Vol. 7445, pp. 240-249,2012.
- H.-O. Peitgen, H. Jürgens, and D. Saupe, Chaos and fractals: new frontiers of science: Springer, 2004.
- B. Alatas, "Chaotic harmony search algorithms," Applied Mathematics and Computation, vol. 216, pp. 2687-2699, 2010.
- G. Heidari-Bateni and C. D. McGillem, "A chaotic direct-sequence spread-spectrum communication system," Communications, IEEE Transactions on, vol. 42, pp. 1524-1527, 1994.
- P. Gaspard, Chaos, scattering and statistical mechanics vol. 9: Cambridge University Press, 2005.
- C. Letellier, Chaos in nature vol. 81: World Scientific Publishing Company, 2013.
- P. Knight, "Deterministic Chaos: An Introduction," 1988.
- Web Sudoku. http://www.websudoku.com/ (Nov. 24, 2013)
- Z. Geem, J. Kim, and G. Loganathan, "Harmony search optimization: application to pipe network design," International journal of modelling & simulation, vol. 22, pp. 125-133, 2002.
- Z. W. Geem, C.-L. Tseng, and Y. Park, "Harmony search for generalized orienteering problem: best touring in China," in Advances in natural computation, ed: Springer, 2005, pp. 741-750.
- J. H. Kim, Z. W. Geem, and E. S. Kim, "Parametersestimationofthenonlinear muskingummodelusingHarmonysearch," JAWRA Journal of the American Water Resources Association, vol. 37, pp. 1131-1138, 2001.
- K. S. Lee and Z. W. Geem, "A new structural optimization method based on the harmony search algorithm," Computers & Structures, vol. 82, pp. 781-798, 2004.
- M. Mahdavi, M. Fesanghary, and E. Damangir, "An improved harmony search algorithm for solving optimization problems," Applied mathematics and computation, vol. 188, pp. 1567-1579, 2007.
- M. G. Omran and M. Mahdavi, "Global-best harmony search," Applied Mathematics and Computation, vol. 198, pp. 643-656, 2008.
- Q.-K. Pan, P. N. Suganthan, M. F. Tasgetiren, and J. J. Liang, "A self-adaptive global best harmony search algorithm for continuous optimization problems," Applied Mathematics and Computation, vol. 216, pp. 830-848, 2010.
- Q.-K. Pan, P. Suganthan, J. Liang, and M. F. Tasgetiren, "A local-best harmony search algorithm with dynamic subpopulations," Engineering Optimization, vol. 42, pp. 101-117, 2010.
- S. Das, A. Mukhopadhyay, A. Roy, A. Abraham, and B. K. Panigrahi, "Exploratory power of the harmony search algorithm: analysis and improvements for global numerical optimization," Systems, Man, and Cybernetics, Part B: Cybernetics, IEEE Transactions on, vol. 41, pp. 89-106, 2011.
- D. Zou, L. Gao, J. Wu, S. Li, and Y. Li, "A novel global harmony search algorithm for reliability problems," Computers & Industrial Engineering, vol. 58, pp. 307-316, 2010.
- Z. W. Geem, K. S. Lee, and Y. Park, "Application of harmony search to vehicle routing," American Journal of Applied Sciences, vol. 2, p. 1552, 2005.