Particle Swarm Optimization For N-Queens Problem

Similar documents
GENETIC ALGORITHM VERSUS PARTICLE SWARM OPTIMIZATION IN N-QUEEN PROBLEM

Handling Multi Objectives of with Multi Objective Dynamic Particle Swarm Optimization

Mobile Robot Path Planning in Static Environments using Particle Swarm Optimization

PARTICLE SWARM OPTIMIZATION (PSO)

Argha Roy* Dept. of CSE Netaji Subhash Engg. College West Bengal, India.

Modified Particle Swarm Optimization

Research Article Path Planning Using a Hybrid Evolutionary Algorithm Based on Tree Structure Encoding

Reconfiguration Optimization for Loss Reduction in Distribution Networks using Hybrid PSO algorithm and Fuzzy logic

SIMULTANEOUS COMPUTATION OF MODEL ORDER AND PARAMETER ESTIMATION FOR ARX MODEL BASED ON MULTI- SWARM PARTICLE SWARM OPTIMIZATION

Three-Dimensional Off-Line Path Planning for Unmanned Aerial Vehicle Using Modified Particle Swarm Optimization

A Comparative Study of the Application of Swarm Intelligence in Kruppa-Based Camera Auto- Calibration

Particle Swarm Optimization

Cell-to-switch assignment in. cellular networks. barebones particle swarm optimization

LECTURE 16: SWARM INTELLIGENCE 2 / PARTICLE SWARM OPTIMIZATION 2

Traffic Signal Control Based On Fuzzy Artificial Neural Networks With Particle Swarm Optimization

Meta- Heuristic based Optimization Algorithms: A Comparative Study of Genetic Algorithm and Particle Swarm Optimization

A *69>H>N6 #DJGC6A DG C<>C::G>C<,8>:C8:H /DA 'D 2:6G, ()-"&"3 -"(' ( +-" " " % '.+ % ' -0(+$,

OPTIMUM CAPACITY ALLOCATION OF DISTRIBUTED GENERATION UNITS USING PARALLEL PSO USING MESSAGE PASSING INTERFACE

A NEW APPROACH TO SOLVE ECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATION

Simplifying Handwritten Characters Recognition Using a Particle Swarm Optimization Approach

IMPROVING THE PARTICLE SWARM OPTIMIZATION ALGORITHM USING THE SIMPLEX METHOD AT LATE STAGE

Particle Swarm Optimization

ARMA MODEL SELECTION USING PARTICLE SWARM OPTIMIZATION AND AIC CRITERIA. Mark S. Voss a b. and Xin Feng.

Week 9 Computational Intelligence: Particle Swarm Optimization

Tracking Changing Extrema with Particle Swarm Optimizer

A Particle Swarm Optimization Algorithm for Solving Flexible Job-Shop Scheduling Problem

Particle Swarm Optimization Approach for Scheduling of Flexible Job Shops

Inertia Weight. v i = ωv i +φ 1 R(0,1)(p i x i )+φ 2 R(0,1)(p g x i ) The new velocity update equation:

Particle Swarm Optimization Based Approach for Location Area Planning in Cellular Networks

GRID SCHEDULING USING ENHANCED PSO ALGORITHM

CHAPTER 6 HYBRID AI BASED IMAGE CLASSIFICATION TECHNIQUES

International Conference on Modeling and SimulationCoimbatore, August 2007

CHAPTER 6 ORTHOGONAL PARTICLE SWARM OPTIMIZATION

A MULTI-SWARM PARTICLE SWARM OPTIMIZATION WITH LOCAL SEARCH ON MULTI-ROBOT SEARCH SYSTEM

A Multiobjective Memetic Algorithm Based on Particle Swarm Optimization

Designing of Optimized Combinational Circuits Using Particle Swarm Optimization Algorithm

Index Terms PSO, parallel computing, clustering, multiprocessor.

Chapter 14 Global Search Algorithms

Particle Swarm Optimization applied to Pattern Recognition

A Native Approach to Cell to Switch Assignment Using Firefly Algorithm

Small World Network Based Dynamic Topology for Particle Swarm Optimization

Feature weighting using particle swarm optimization for learning vector quantization classifier

Parallel Neural Network Training with OpenCL

A Modified PSO Technique for the Coordination Problem in Presence of DG

Optimal Power Flow Using Particle Swarm Optimization

An Improved Blind Watermarking Scheme in Wavelet Domain

Variable Neighborhood Search Based Algorithm for University Course Timetabling Problem

An improved PID neural network controller for long time delay systems using particle swarm optimization algorithm

OPTIMIZED TASK ALLOCATION IN SENSOR NETWORKS

Particle swarm optimization for mobile network design

The Pennsylvania State University. The Graduate School. Department of Electrical Engineering COMPARISON OF CAT SWARM OPTIMIZATION WITH PARTICLE SWARM

Optimization of Makespan and Mean Flow Time for Job Shop Scheduling Problem FT06 Using ACO

A Novel Particle Swarm Optimization-based Algorithm for the Optimal Centralized Wireless Access Network

Tabu search and genetic algorithms: a comparative study between pure and hybrid agents in an A-teams approach

Non-Homogeneous Swarms vs. MDP s A Comparison of Path Finding Under Uncertainty

PARTICLE SWARM OPTIMIZATION (PSO) [1] is an

II. Biogeography-Based Optimization

THREE PHASE FAULT DIAGNOSIS BASED ON RBF NEURAL NETWORK OPTIMIZED BY PSO ALGORITHM

Improving local and regional earthquake locations using an advance inversion Technique: Particle swarm optimization

A particle swarm optimization algorithm for the continuous absolute p-center location problem with Euclidean distance

PARALLEL PARTICLE SWARM OPTIMIZATION IN DATA CLUSTERING

Convolutional Code Optimization for Various Constraint Lengths using PSO

Hybrid Particle Swarm and Neural Network Approach for Streamflow Forecasting

Discrete Particle Swarm Optimization for Solving a Single to Multiple Destinations in Evacuation Planning

Comparison of Some Evolutionary Algorithms for Approximate Solutions of Optimal Control Problems

International Journal of Digital Application & Contemporary research Website: (Volume 1, Issue 7, February 2013)

Implementation and Comparison between PSO and BAT Algorithms for Path Planning with Unknown Environment

ANANT COLONY SYSTEMFOR ROUTING IN PCB HOLES DRILLING PROCESS

Improving Tree-Based Classification Rules Using a Particle Swarm Optimization

Effectual Multiprocessor Scheduling Based on Stochastic Optimization Technique

FITTING PIECEWISE LINEAR FUNCTIONS USING PARTICLE SWARM OPTIMIZATION

A RANDOM SYNCHRONOUS-ASYNCHRONOUS PARTICLE SWARM OPTIMIZATION ALGORITHM WITH A NEW ITERATION STRATEGY

Speculative Evaluation in Particle Swarm Optimization

Kyrre Glette INF3490 Evolvable Hardware Cartesian Genetic Programming

The movement of the dimmer firefly i towards the brighter firefly j in terms of the dimmer one s updated location is determined by the following equat

Step Size Optimization of LMS Algorithm Using Particle Swarm Optimization Algorithm in System Identification

PARTICLES SWARM OPTIMIZATION FOR THE CRYPTANALYSIS OF TRANSPOSITION CIPHER

PROBLEM FORMULATION AND RESEARCH METHODOLOGY

Hybrid Particle Swarm-Based-Simulated Annealing Optimization Techniques

International Journal of Current Research and Modern Education (IJCRME) ISSN (Online): & Impact Factor: Special Issue, NCFTCCPS -

A CSP Search Algorithm with Reduced Branching Factor

Improving Results and Performance of Collaborative Filtering-based Recommender Systems using Cuckoo Optimization Algorithm

INTEGRATION OF INVENTORY CONTROL AND SCHEDULING USING BINARY PARTICLE SWARM OPTIMIZATION ALGORITHM

Fast Efficient Clustering Algorithm for Balanced Data

Discrete Particle Swarm Optimization for TSP based on Neighborhood

Applying Particle Swarm Optimization for Solving Team Orienteering Problem with Time Windows

Function Approximation and Feature Selection Tool

CHAPTER 6 MODIFIED FUZZY TECHNIQUES BASED IMAGE SEGMENTATION

QUANTUM BASED PSO TECHNIQUE FOR IMAGE SEGMENTATION

EE 553 Term Project Report Particle Swarm Optimization (PSO) and PSO with Cross-over

International Journal of Modern Engineering and Research Technology

[Kaur, 5(8): August 2018] ISSN DOI /zenodo Impact Factor

Enhanced Artificial Bees Colony Algorithm for Robot Path Planning

Swarm Intelligence Particle Swarm Optimization. Erick Luerken 13.Feb.2006 CS 790R, University of Nevada, Reno

What is Search For? CSE 473: Artificial Intelligence. Example: N-Queens. Example: N-Queens. Example: Map-Coloring 4/7/17

The Modified IWO Algorithm for Optimization of Numerical Functions

High-speed Interconnect Simulation Using Particle Swarm Optimization

GA is the most popular population based heuristic algorithm since it was developed by Holland in 1975 [1]. This algorithm runs faster and requires les

Robust Descriptive Statistics Based PSO Algorithm for Image Segmentation

Feeder Reconfiguration Using Binary Coding Particle Swarm Optimization

Transcription:

Journal of Advanced Computer Science and Technology, 1 (2) (2012) 57-63 Science Publishing Corporation www.sciencepubco.com/index.php/jacst Particle Swarm Optimization For N-Queens Problem Aftab Ahmed, Attique Shah, Kamran Ali Sani and Abdul Hussain Shah Bukhari Department of Computer Science, BUITEMS, Quetta aftab.ahmed@buitms.edu.pk Department of Information Technology, BUITEMS, Quetta attique.shah@buitms.edu.pk Department of Computer Science, BUITEMS, Quetta kamran.ali@butims.edu.pk Benazir Bhutto Shaheed University, Lyari, Karachi ahsbukhari@yahoo.com Abstract The N-Queen is one of the prominent toy problems for performance assessment in the domain of Computational Intelligence. The problem greatly helps to examine the diverse aspects of solving techniques, counting the potential of obtaining feasible solution and computing time & space complexity. The well-defined set of constraints sketches out all the versions of problem. The Queen has various attacking options over the chessboard. In point of fact, it can walk off across the column, row and both diagonals. The feasible solution of N-Queens highly demands the non-attacking placements over the chessboard. This research inspects the effectiveness of Particle Swarm Optimization in order to produce optimal solution of the problem. In PSO, a particle contains a structured set of N-Queens placements. Current position of the particle is well directed by the pbest and gbest parameters, each new generation obtains more converged set of particles. The partial but improved outcome promotes and furnishes to succeeding generation while the substandard may be discarded. The investigational results make known the dynamic features of PSO and eventually validate the effectiveness of research direction. Keywords: N-Queens problem, PSO, Constraints. 1 Introduction The N-Queens is a famous performance evaluator and test problem in the field of intelligent computation to measure the capabilities of solving methods in terms of

2 Aftab A., Attique S., Kamran A. and A.H.S. Bukhari various computing aspects. The technique is particularly effective for Constraints Satisfaction Problems (CSP). The CSP is formulated by set of quantifier (q 1, q 2 q n ), their finite domains such as (d 1, d 2 d n ) and the third component is a group of constraints for example (c 1, c 2 c n ). The key objective of CSP and such identical techniques of computing optimization is to acquire the best available outcome on the cost of reasonable time and resources. The inclination remains behind solving this toy problem is to surface out the merits and demerits of computational methods for matching real world problems. This article examines the efficiency of Particle Swarm Optimization in order to achieve feasible results for N-Queens problem. Particle Swarm Optimization belongs to group of computational intelligence. It imitates the characteristics of birds swarm, looking for best possible food sources. The movement of a single particle is preceded inclination of its last position, its calculated knowledge, and the swarm s collective intelligence. So the entire swarm is converged by information sharing approach. First of all the idea of basic PSO is coined by Kennedy and Eberhart [1] which is illustrated as following. + (1.1) (1.2) Where x stand for an individual (particle), i places for the identity of the individual, k demonstrate iteration, and v is the particle's velocity. points the best position of the particle ever visited (Individual experience and Intelligence), and stands for the feasible position of any particle in the swarm ever visited (Collective experience and intelligence). corresponds to weight of inertia which influence the velocity, effects over individual (particle) and entire swarm's knowledge respectively. are two random constants expedite the process and helps to avoid trapping into local maximum. 2 Related Work A plenty number of solving technique are implemented over the N-Queen problem. Aftab [2] investigated the two distinguished heuristics algorithms to resolve the N-Queens problem. The work instills the improved version of Backtracking Recursive and Modified Min-Conflicts. The experimental results revealed dynamic features of implemented techniques. Crawford [3] applied Genetic Algorithm with various patterns to resolve the issue. He concluded his research work with optimized outcome obtained. Constraints Logic Programming (CLP) is very suitable option to solve the N-Queens problem. The CLP is defined as a straightforward statement of the constraints serves as part of the program.

PSO for N-Queens Problem 3 This makes the program easy to modify, which is crucial in real-world problems. A constraint is a logical relation among variables where each variable represents its domain values. In general, a constraint is kind of filtering that refines status of state among a range of available options. A wide range of problems are addressed by CLP approach. A university timetabling problem is successfully solved by CLP algorithms[4]. Their research approach was consisted of two distinguishable phases. First one used to remove all hard constraints and second phase was responsible to tackle and minimize soft constraints. Backtracking algorithm and Min-conflict Algorithm were implemented to acquire the said task. Russell [5] stated that a 8-Queens problem is good benchmark problem for evaluating CSP with 64 squires and maximum eight queens placement availability. The key criterion is as no queen supposed to attack on any other queen. There may have plenty of solution patterns can be comprised with diverse deployment of queens. The problem somewhat imitates the hard constraints satisfaction of scheduling problem[6], but in queens problem no ultimate feasible solution is acceptable. A CSP approach assigns values from relevant domains according to prescribed constraints; the notion is very identical as scheduling problem. Zhang [7] distinguishes; there are two approaches to solving CSP. One is using the search algorithms and the other is using the consistency technique. Constraints logic programming deals with plenty of problem including famous NP-hard set of problems. CSP combined different techniques to produce optimal solutions which would be acceptable on some certain measures. 3 Problem Description In the chess game Queen is very powerful piece that can approach with multidirectional aspects of horizontal, vertical and diagonal in order that a handful corners remain protected for opponent pieces. Fig 1 Queen Attacking Search Space The conventional N-Queen encompasses the assignments of fixed number of Queens over n n chessboard in a way no queen access to other. In brief, same

4 Aftab A., Attique S., Kamran A. and A.H.S. Bukhari row (horizontally), column (vertically) or diagonal (Crossways) should not be common between two Queens. Figure No. 1 reveal the search-space of the problem. A certain number of Queen Problems can have a wide range of solutions for instance a chessboard of 8x8 provides 92 sets of different solutions. 3.1 Particle Swarm Optimization Particle Swarm Optimization (PSO) is natural imitation of birds-swarm and population (group of particles) based solution for various optimization problems. The idea was firstly coined by Eberhart and J. Kennedy [1] the metaphor is inspired from individual and cooperative behavior of bird swarm, fish schooling and dust particles swirl. The generally such cooperative social movement takes place for food searching and exhibits as big entity for showing off vigorous look to opponents. The basic resemblance is adapted from the leaning of bird (individual) to arrive at leading position of the swarm. The inclination of each particle is to arrive collision-free closeness with neighbors, every particle tries to improve its current placement with reference to its previous best ever position. Figure 2 briefly exhibits the PSO methodology. Particle-X Figure 2 PSO mechanism over N-Queens problem Algorithm No. 1 demonstrates the typical Particle Swarm Optimization (PSO). First step initializes each practical with random placement over the search space, such assignments of particles over state-space greatly supports PSO not to be trapped into local-maximum dilemma and it expedites the conversion rate as well. The other parameters include population size, communication topology, inertia weight and influence rate of cognitive and social coefficient. Generally, parameters for performance measures varies cast to case, however they can be tuned up with several attempts of slight changes. Every individual (particle) in generation is representing partial solution of N-Queens. Towards the end of each

PSO for N-Queens Problem 5 genome the PBEST and GBEST particles come to surface due to fitness level and provide direction for rest of particles to an optimal solution. 1. Initialization: a. Generate First Swarm by random position X i b. Initialize the velocity V i with smallest random number 2. Evaluate Function: Calculate the fitness Level of Particles 3. Loop Until (Termination Criteria) 4. For i range (1,PopulationSize) k+1 k a. V i V i + i (Pbest i - X k i ) + i (Gbest i - X k i ) k+1 k k+1 b. X i X i + V i 5. Revaluate Function: a. If f(x k k i ) < f(pbest i ) than X i Pbest i x stand b. for If f(pbest position i ) < of f(gbest particle i ) in than search Pbest space i Gbest i 6. End x (k+1) Loop is sum of expression W represents weight of inertia usually contain value between 0.4 to 1.4 V ik is the velocity of practical C 1 is constant, used to expedite individual movement, 1.5 to 2 is recommended value. C2 is recognized as second constant which can have value between 2 to 2.5, this speeds up the swarm influence (Collective movement) PBest is best ever recorded position of individual in swarm GBest is best ever recorded position of group which influence each particle to swarm heart. 4 Main Results Algorithm 1: Standard Particle Swarm Optimization The computational approach is implemented over reasonable size of chessboard and the quality results revealed the positive impact and capability of adapted technique. The script was written on Intel Core(TM) i3 CPU, M 350 @ 2.27 GHz, 2.0 GB RAM. The Python language version 2.6 was chosen to compile the program coding. Table 1 specifically shows the adapted parameters of PSO that were found suitable for this case study. The dataset initialization deliberately scatters up the particles over entire search-space.

6 Aftab A., Attique S., Kamran A. and A.H.S. Bukhari Table 1 PSO parameters Parameter Value 1 topology Ring topology 2 Neighborhood size 20 3 Max Evaluations 1000 4 Number of elites 0 5 Population Size 10 6 evaluator Binary 7 Termination Criteria Converging of Population Table 2 is providing precise details of outcome on each 10 th generation. The partially satisfied outcome is showing off the obvious direction to quality improvement. At the end of each generation the tentative outcome moves to succeeding generation. Each step makes some finer changes over chessboard layout. Table 2 Outcome of 20x20 chessboard using GA Generations Fitness f(x) Time 10 52.00 0:00:00 100 45.00 0:00:06 200 39.00 0:00:12 300 33.00 0:00:18 400 31.00 0:00:24 500 22.00 0:00:31 600 18.00 0:00:39 700 11.00 0:01:04 800 09.00 0:01:22 900 05.00 0:01:41 1000 0.00 0:02:02 Table 2 demonstrate the PSO generated outcome, it can be observed the results converged to zero conflict in reasonable number of populations (iterations) and time. 5 Conclusion The research paper examined the Particle Swarm Optimization (PSO) approach that set up the stunning results at the end, and also provided evidence to be very capable of producing feasible/optimal solutions over N-Queens Problem. The key objective of the study is to reveal the effectiveness and efficiency of PSO so it can be projected to other identical real-world problems such university timetabling etc.

PSO for N-Queens Problem 7 Acknowledgements We would like to convey our gratitude to the competent authority of BUITEMS for providing the financial means, great research environment and computational and infrastructural facilities. References [1] J. Kennedy and R. C. Eberhart, "Particle swarm optimization," in Proceedings of the IEEE International Conference on Neural Networks, 1995, pp. 1942-1948. [2] Aftab Ahmed, et al., "Constraint Logic Programing For Solving N-Queens Problem," in Second International Conference on Computer & Emerging Technologies (ICCET 2012), Shah Abdul Latif University, 2012, pp. 15-19. [3] K. D. Crawford, "Solving the N-Queens Problem Using Genetic Algorithms," in ACM/SIGAPP Symposium on Applied Computing, 1992, pp. 039-1047. [4] Aftab Ahmed, et al., "Solving University Scheduling Problem Using Hybrid Approach," Mehran University Research Journal of Engineering & Technology vol. 30, pp. 613-624, October 2011. [5] S. Russell and P. Norvig, Artificial Intelligence A Modern Approach Prentice Hall, 2003. [6] Aftab Ahmed, et al., "Hyper-GA for Solving Benchmark Scheduling Problems," Australian Journal of Basic and Applied Sciences, vol. 5, pp. 1657-1667, June 2011. [7] Lixi Zhang and S. Lau, "Constructing university timetable using constraint satisfaction programming approach," in International Conference on Computational Intelligence for Modelling, Control and Automation and International Conference on Intelligent Agents, Web Technologies and Internet Commerce, 2005, pp. 55-60.