SlideShare a Scribd company logo
1 of 3
Download to read offline
Seyed Mostafa Mansourfar, Fardin Esmaeeli Sangari, Mehrdad Nabahat / International Journal of
              Engineering Research and Applications (IJERA)ISSN: 2248-9622 www.ijera.com
                                  Vol. 2, Issue 4, June-July 2012, pp.655-657

        Genetic Algorithms Vs. Niching Methods On Clustering Undirected
                                Weighted Graph
        Seyed Mostafa Mansourfar*, Fardin Esmaeeli Sangari**, Mehrdad Nabahat***
           *
            Sama technical and vocational training school, Islamic Azad University, Mamaghan branch, Mamaghan, Iran
               **
                  Sama technical and vocational training school, Islamic Azad University, Urmia branch, Urmia, Iran
              ***
                  Sama technical and vocational training school, Islamic Azad University, Urmia branch, Urmia, Iran




ABSTRACT
In this paper, clustering undirected, weighed graphs will          population resulting in every individual being either identical
be under focus, whose decision problem is known to be              or extremely alike, the consequences of which is a population
NP-complete. Genetic algorithm and deterministic                   that does not contain sufficient genetic diversity to evolve
crowding technique of niching methods have been applied,           further.
and then we have compared performance of these two                 Simply increasing the population size may not be enough to
paradigms.                                                         avoid the problem, while any increase in population size will
                                                                   incur the twofold cost of both extra computation time and
Keywords: Clustering, Genetic algorithms, graphs,                  more generations to converge on an optimal solution [3].
Niching methods, NP-Complete                                       Niching methods have been developed to maintain the
                                                                   population diversity and permit the GA to investigate many
 I. Introduction                                                   peaks in parallel. On the other hand, they prevent the GA from
          Genetic algorithms (GAs) are generally used as an        being trapped in local optima of the search space [4].
optimization technique to search the global optimum of a           Deterministic Crowding (DC) is an implicit neighborhood
function. However, this is not the only possible use for GAs.      technique of niching methods that Mahfoud improved it by
Other fields of applications where robustness and global           introducing competition between parents and children of
optimization are needed could also benefit greatly from GAs        identical niche. “Fig.1” (replacement process of DC) [5].
[2]. However, GAs has been successful in many of human
competitive      problems    like     optimization    problems,    IV. Problem Definition
classification problems, time series analysis, etc.                Clustering graph problem studied in this paper is defined as
          In this paper we have applied Genetic Algorithm and
niching methods-a variety of genetic algorithms- to compare
which one acts better on the issue. Clustering tries to divide a
graph into k pieces, such that the pieces are of about the same
size or weight and there are few connections between the
pieces. An important application of graph partitioning is load
balancing for parallel computing [9].
          Complex problems such as clustering, however, often
involve a significant number of locally optimal solutions. In
such cases, traditional GAs cannot maintain controlled
competitions among the individual solutions and can cause the
population to converge prematurely. To improve the situation,
various methods including niching methods have been                    Figure 1. Replacement process in Deterministic Crowding Method
proposed [1].
                                                                   follow:
                                                                             Consider a graph G= (V, E), where V denotes the set
II. Related works
         In recent years clustering and partitioning problem       of n vertices and E the set of edges. For a (k, v) balanced
                                                                   partition problem, the objective is to partition G into k
have great importance; among the proposed algorithms there
                                                                   components of at most size v.(n/k), while minimizing the
are several evolutionary algorithms [9, 10, 11, and 12] that
                                                                   capacity of the edges between separate components. Also,
focused on the case.
                                                                   given G and an integer k > 1, partition V into k parts (subsets)
                                                                   V1, V2, ..., Vk such that the parts are disjoint and have equal
III. Niching Methods                                               size, and the number of edges with endpoints in different parts
        Main problem with Genetic Algorithm is premature
                                                                   is minimized such that
convergence, that is, a non-optimal genotype taking over a
                                                                    ∪ 𝑣 𝑖 = 𝑉 And 𝑣 𝑖 ∩ 𝑣𝑗 = ∅ For 𝑖 ≠ 𝑗.

                                                                                                                       655 | P a g e
Seyed Mostafa Mansourfar, Fardin Esmaeeli Sangari, Mehrdad Nabahat / International Journal of Engineering
                   Research and Applications (IJERA)ISSN: 2248-9622 www.ijera.com
                                Vol. 2, Issue 4, June-July 2012, pp.655-657
  𝑰𝑵 =                                                                     Test graphs
           𝑵 𝒌 (𝑵 𝒌 −𝟏)                                                  We have tested the algorithms on 2 undirected graphs
      𝒌(        𝟐
                 − 𝑨 𝒕𝒐𝒕𝒂𝒍 ) +
                                                                 from DIMACS instance [13] which vertices’ and edge’s
      𝒆𝒙𝒕𝒆𝒓𝒏𝒂𝒍 𝒊𝒏𝒕𝒆𝒓𝒄𝒐𝒏𝒏𝒆𝒄𝒕𝒊𝒐𝒏𝒔
                                                                 weights assigned with randomly integer numbers between 1
         o K: maximum number of sub graph
                                                                 and 5. Both graphs adjacency matrices can be accessed in [15].
         o 𝑁 𝑘 : Number of nodes of sub graphs
         o 𝐴 𝑡𝑜𝑡𝑎𝑙 : Internal interconnections
                                                                                                       Test results
                                                                    The following settings used for each of algorithms:
We need to minimize IN index.
                                                                     GA: Population size=200; number of generations=500;
                                                                        elitism=10; Crossover algorithm and rate= Two-point
V. Chromosome Representation
                                                                        crossover with 75%, Selection algorithm=Tournament
        Assignment representation is used in this algorithm.
                                                                        method.
Each chromosome, a string with length N, consists of
nonnegative integer numbers less than or equal to K [8]. K is        DC: Population size=200; number of generations=500;
the number of clusters in the chromosome.                               Crossover algorithm and rate= Two-point crossover
                                                                        with 100%, Selection algorithm=Tournament method.
                                                                        In addition, Hamming distance is used in replacement
VI. Breeding operation
                                                                        process.
           The breeding process is heart of the evolutionary     Experiments include comparing performance of DC and GA;
algorithms. The search process creates new and hopefully         all experiments have been repeated for 20 times.
fitter individuals.                                              “Table I” shows characteristic of each test graphs.
                          Selection operation                    “Fig.2” and “Fig.3” show obtained results of this experiment
         The most widely used selection mechanisms are the       with both DC and GA.
roulette-wheel selection and tournament selections [6].          “Table II” compares DC and GA from point of run time,
Roulette wheel selection could lead to high fitness individual   clearly DC method is more demanding and takes considerably
of population dominated the direction of population evolution    more time; of course reason is performing much more
and eventually occupied the population [7]; Unlike, the          crossover operator also carrying out distance operator on
Roulette wheel selection, the tournament selection strategy      chromosomes.
provides selective pressure by holding a tournament
competition among Nu individuals, that is more efficient and                                              Table I
leads to an optimal solution[3]. We use tournament selection                                     Test graph characteristics
that holds a competition between randomly selected portions            Graph                        vertices            edges              K
of population and returns the winner for mating pool.
Moreover elitism is also comes along with tournament               MYCIEL3                             11                 40                4
selection to improve the performance.                               ANNA                              138                986               10
              Crossover and mutation operation
         Crossover is the process of taking two parent
solutions and producing children from them. In our algorithm                            25
we have applied Two-point crossover which two crossover
points are chosen and the contents between these points are                             20
exchanged between two mated parents.
                                                                        fitness value




We have applied random mutation                                                         15
.
                                                                                        10
VII. Experimental results
         Implementation and test environment                                             5
Algorithms have been implemented in C# using Socket and
Net namespaces. The architecture of all experiments consist                              0
Intel Pentium 4 processors running in 2.2GHz with 512MB of                                         15%             30%              45%
RAM.                                                                                    GA        19.61           15.68         11.412
                                                                                        DC       10.546           8.5741            6.23
                                                                                             Figure 2. Fitness values for MYCIEL3




                                                                                                                                    656 | P a g e
Seyed Mostafa Mansourfar, Fardin Esmaeeli Sangari, Mehrdad Nabahat / International Journal of Engineering
                   Research and Applications (IJERA)ISSN: 2248-9622 www.ijera.com
                                Vol. 2, Issue 4, June-July 2012, pp.655-657
                                                                                     Optimization Problems," IEEE Transactions on Magnetics,
                    0                                                                vol. 36, no. 4, pp. 1027-1030 ,JULY, 2000.
                                                                              [5]    E.Perez, F.Hererra, C.Hernandez, “Finding multiple
                  -100                                                               solutions in job shop scheduling by niching genetic
                  -200                                                               algorithms,” Journal of intelligent manufacturing, vol. 14,
                                                                                     no. 3-4, pp. 323-339, June 2003
  fitness value




                  -300                                                        [6]    Petra Kudova, "Clustering Genetic Algorithm," dexa,
                  -400                                                               pp.138-142, 18th International Conference on Database
                                                                                     and Expert Systems Applications (DEXA 2007), 2007
                  -500                                                        [7]    Da-jiang jin, Ji-ye zhang, “A New Crossover Operator For
                  -600                                                               Improving Ability Of Global Searching,” Proceedings of
                                                                                     the Sixth International Conference on Machine Learning
                  -700                                                               and Cybernetics, Hong Kong, pp. 19-22, August 2007.
                             15%              30%               45%
                                                                              [8]    Kazem Pourhaji, Shahriar Lotfi, “An Evolutionary
                    DC     -391.98          -490.534           -512.18               Approach for Partitioning Weighted Module Dependency
                                                                                     Graphs,” 4th International Conference on Innovations in
                    GA      -32.65           -80.21            -150.37               Information Technology, 2007.
                          Figure 3. Fitness values for ANNA                   [9]    Harpal Maini , Kishan Mehrotra , Chilukuri Mohan ,
                                                                                     Sanjay Ranka, “Genetic algorithms for graph partitioning
                            Table II
    Comparing DC and PGA from Run Time View
                                                                                     and incremental graph partitioning,” Proceedings of the
                                                                                     1994 conference on Supercomputing, p.449-457,
                                     ANNA                     MYCIEL3
                                                                                     December 1994, Washington, D.C., United States
                   DC              35.78(s)                   0.92(s)         [10]   Sahar Shazely , Hoda Baraka , Ashraf Abdel-Wahab,
                  PGA               4.1(s)                    0.03(s)                “Solving Graph Partitioning Problem Using Genetic
                                                                                     Algorithms,” Proceedings of the 1998 Midwest
                                                                                     Symposium on Systems and Circuits, p.302, August 09-12,
                                                                                     1998
                                                                              [11]   A. Cincotti, V. Cutello, M. Pavone, "Graph partitioning using
VIII.                Conclusions                                                     genetic algorithms with ODPX," Proceedings of the 2002
In this paper we have reviewed a popular NP-complete                                 Congress on Evolutionary Computation, vol. 1, pp.402-406.
problem, clustering on undirected, weighted graphs. We have                   [12]   Siming Lin, Xueqi Cheng, BC-GA: A Graph Partitioning
used two practical heuristic algorithms, Deterministic                               Algorithm for Parallel Simulation of Internet Applications ,
                                                                                     16th Euromicro Conference on Parallel, Distributed and
Crowding of niching methods and Genetic Algorithm. As the
                                                                                     Network-Based Processing, pp. 358-365, Feb 2008.
results show DC method acts better than genetic algorithm; it                 [13]   http://mat.gsia.cmu.edu/COLOR/instances.html
is due to mechanisms of breeding this algorithm uses and                      [14]   http://en.wikipedia.org/wiki/Graph_partitioning
survives better solutions for rest of operation.                              [15]   http://sites.google.com/site/gppdataset/
Focusing on run time, DC method is more demanding than
GA, which clearly is the only weak point of this method.

REFERENCES
[1]                Weiguo Sheng, Xiaohui Liu, Mike Fairhurst, "A Niching
                   Memetic Algorithm for Simultaneous Clustering and
                   Feature Selection," IEEE Transactions on Knowledge and
                   Data Engineering, vol. 20, no. 7, pp. 868-879, Jan. 2008
[2]                Settea, Boullart, “Genetic programming: principles and
                   applications”, Engineering Applications of Artificial
                   Intelligence 14 (2001) pp.727–736
[3]                S.N.Sivanandam, S.N.Deepa, Introduction to Genetic
                   Algorithms, Springer Berlin Heidelberg New York, 2008,
                   pp.10-20.
[4]                B. Sareni, L. Krähenbühl, and A. Nicolas, “Efficient
                   Genetic Algorithms for Solving Hard Constrained




                                                                                                                                 657 | P a g e

More Related Content

What's hot

Winner Determination in Combinatorial Reverse Auctions
Winner Determination in Combinatorial Reverse AuctionsWinner Determination in Combinatorial Reverse Auctions
Winner Determination in Combinatorial Reverse AuctionsShubhashis Shil
 
The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...
The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...
The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...IRJET Journal
 
Phenomenological Decomposition Heuristics for Process Design Synthesis of Oil...
Phenomenological Decomposition Heuristics for Process Design Synthesis of Oil...Phenomenological Decomposition Heuristics for Process Design Synthesis of Oil...
Phenomenological Decomposition Heuristics for Process Design Synthesis of Oil...Alkis Vazacopoulos
 
n-Parties Contract Based Transportation Problem and Its Solution
n-Parties Contract Based Transportation Problem and Its Solutionn-Parties Contract Based Transportation Problem and Its Solution
n-Parties Contract Based Transportation Problem and Its SolutionIJERA Editor
 
Gentle Introduction to Dirichlet Processes
Gentle Introduction to Dirichlet ProcessesGentle Introduction to Dirichlet Processes
Gentle Introduction to Dirichlet ProcessesYap Wooi Hen
 
Linkage Learning for Pittsburgh LCS: Making Problems Tractable
Linkage Learning for Pittsburgh LCS: Making Problems TractableLinkage Learning for Pittsburgh LCS: Making Problems Tractable
Linkage Learning for Pittsburgh LCS: Making Problems TractableXavier Llorà
 
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...BRNSS Publication Hub
 
A Thresholding Method to Estimate Quantities of Each Class
A Thresholding Method to Estimate Quantities of Each ClassA Thresholding Method to Estimate Quantities of Each Class
A Thresholding Method to Estimate Quantities of Each ClassWaqas Tariq
 
225.doc
225.doc225.doc
225.docbutest
 
Solving Scheduling Problems as the Puzzle Games Using Constraint Programming
Solving Scheduling Problems as the Puzzle Games Using Constraint ProgrammingSolving Scheduling Problems as the Puzzle Games Using Constraint Programming
Solving Scheduling Problems as the Puzzle Games Using Constraint Programmingijpla
 
Application cases of MMG library in the Kratos Multiphysics (AKA Kratos) fram...
Application cases of MMG library in the Kratos Multiphysics (AKA Kratos) fram...Application cases of MMG library in the Kratos Multiphysics (AKA Kratos) fram...
Application cases of MMG library in the Kratos Multiphysics (AKA Kratos) fram...Vicente Mataix Ferrándiz
 
Linear programming
Linear programmingLinear programming
Linear programmingTarun Gehlot
 
ANALYTICAL FORMULATIONS FOR THE LEVEL BASED WEIGHTED AVERAGE VALUE OF DISCRET...
ANALYTICAL FORMULATIONS FOR THE LEVEL BASED WEIGHTED AVERAGE VALUE OF DISCRET...ANALYTICAL FORMULATIONS FOR THE LEVEL BASED WEIGHTED AVERAGE VALUE OF DISCRET...
ANALYTICAL FORMULATIONS FOR THE LEVEL BASED WEIGHTED AVERAGE VALUE OF DISCRET...ijsc
 
Hierarchical Deterministic Quadrature Methods for Option Pricing under the Ro...
Hierarchical Deterministic Quadrature Methods for Option Pricing under the Ro...Hierarchical Deterministic Quadrature Methods for Option Pricing under the Ro...
Hierarchical Deterministic Quadrature Methods for Option Pricing under the Ro...Chiheb Ben Hammouda
 

What's hot (18)

Winner Determination in Combinatorial Reverse Auctions
Winner Determination in Combinatorial Reverse AuctionsWinner Determination in Combinatorial Reverse Auctions
Winner Determination in Combinatorial Reverse Auctions
 
The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...
The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...
The Evaluation of Topsis and Fuzzy-Topsis Method for Decision Making System i...
 
Phenomenological Decomposition Heuristics for Process Design Synthesis of Oil...
Phenomenological Decomposition Heuristics for Process Design Synthesis of Oil...Phenomenological Decomposition Heuristics for Process Design Synthesis of Oil...
Phenomenological Decomposition Heuristics for Process Design Synthesis of Oil...
 
Dmqb
DmqbDmqb
Dmqb
 
n-Parties Contract Based Transportation Problem and Its Solution
n-Parties Contract Based Transportation Problem and Its Solutionn-Parties Contract Based Transportation Problem and Its Solution
n-Parties Contract Based Transportation Problem and Its Solution
 
Gentle Introduction to Dirichlet Processes
Gentle Introduction to Dirichlet ProcessesGentle Introduction to Dirichlet Processes
Gentle Introduction to Dirichlet Processes
 
Linkage Learning for Pittsburgh LCS: Making Problems Tractable
Linkage Learning for Pittsburgh LCS: Making Problems TractableLinkage Learning for Pittsburgh LCS: Making Problems Tractable
Linkage Learning for Pittsburgh LCS: Making Problems Tractable
 
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...
New Method for Finding an Optimal Solution of Generalized Fuzzy Transportatio...
 
A Thresholding Method to Estimate Quantities of Each Class
A Thresholding Method to Estimate Quantities of Each ClassA Thresholding Method to Estimate Quantities of Each Class
A Thresholding Method to Estimate Quantities of Each Class
 
225.doc
225.doc225.doc
225.doc
 
Solving Scheduling Problems as the Puzzle Games Using Constraint Programming
Solving Scheduling Problems as the Puzzle Games Using Constraint ProgrammingSolving Scheduling Problems as the Puzzle Games Using Constraint Programming
Solving Scheduling Problems as the Puzzle Games Using Constraint Programming
 
10120130405007
1012013040500710120130405007
10120130405007
 
Application cases of MMG library in the Kratos Multiphysics (AKA Kratos) fram...
Application cases of MMG library in the Kratos Multiphysics (AKA Kratos) fram...Application cases of MMG library in the Kratos Multiphysics (AKA Kratos) fram...
Application cases of MMG library in the Kratos Multiphysics (AKA Kratos) fram...
 
Linear programming
Linear programmingLinear programming
Linear programming
 
ANALYTICAL FORMULATIONS FOR THE LEVEL BASED WEIGHTED AVERAGE VALUE OF DISCRET...
ANALYTICAL FORMULATIONS FOR THE LEVEL BASED WEIGHTED AVERAGE VALUE OF DISCRET...ANALYTICAL FORMULATIONS FOR THE LEVEL BASED WEIGHTED AVERAGE VALUE OF DISCRET...
ANALYTICAL FORMULATIONS FOR THE LEVEL BASED WEIGHTED AVERAGE VALUE OF DISCRET...
 
Me gate-15-paper-01
Me gate-15-paper-01 Me gate-15-paper-01
Me gate-15-paper-01
 
Me gate-15 paper-03 new2
Me gate-15 paper-03 new2Me gate-15 paper-03 new2
Me gate-15 paper-03 new2
 
Hierarchical Deterministic Quadrature Methods for Option Pricing under the Ro...
Hierarchical Deterministic Quadrature Methods for Option Pricing under the Ro...Hierarchical Deterministic Quadrature Methods for Option Pricing under the Ro...
Hierarchical Deterministic Quadrature Methods for Option Pricing under the Ro...
 

Viewers also liked (20)

T26123129
T26123129T26123129
T26123129
 
El24868872
El24868872El24868872
El24868872
 
Ce24539543
Ce24539543Ce24539543
Ce24539543
 
Do24738741
Do24738741Do24738741
Do24738741
 
Dg24698702
Dg24698702Dg24698702
Dg24698702
 
Ea24804807
Ea24804807Ea24804807
Ea24804807
 
Ds24756760
Ds24756760Ds24756760
Ds24756760
 
Cp24600603
Cp24600603Cp24600603
Cp24600603
 
Ch24556560
Ch24556560Ch24556560
Ch24556560
 
Eg24842846
Eg24842846Eg24842846
Eg24842846
 
Dy24788797
Dy24788797Dy24788797
Dy24788797
 
O26087092
O26087092O26087092
O26087092
 
R26104116
R26104116R26104116
R26104116
 
J26048056
J26048056J26048056
J26048056
 
Hg3113981406
Hg3113981406Hg3113981406
Hg3113981406
 
Df31729732
Df31729732Df31729732
Df31729732
 
Trabajo final pautas para la presentacion
Trabajo final pautas para la presentacionTrabajo final pautas para la presentacion
Trabajo final pautas para la presentacion
 
Responsables territoriales pais (f)
Responsables territoriales pais (f)Responsables territoriales pais (f)
Responsables territoriales pais (f)
 
Andres, sergi, joey y eric ice age ii
Andres, sergi, joey y eric ice age iiAndres, sergi, joey y eric ice age ii
Andres, sergi, joey y eric ice age ii
 
Mapa conceptual
Mapa conceptualMapa conceptual
Mapa conceptual
 

Similar to Cz24655657

Medical diagnosis classification
Medical diagnosis classificationMedical diagnosis classification
Medical diagnosis classificationcsandit
 
MEDICAL DIAGNOSIS CLASSIFICATION USING MIGRATION BASED DIFFERENTIAL EVOLUTION...
MEDICAL DIAGNOSIS CLASSIFICATION USING MIGRATION BASED DIFFERENTIAL EVOLUTION...MEDICAL DIAGNOSIS CLASSIFICATION USING MIGRATION BASED DIFFERENTIAL EVOLUTION...
MEDICAL DIAGNOSIS CLASSIFICATION USING MIGRATION BASED DIFFERENTIAL EVOLUTION...cscpconf
 
Evolutionary Testing Approach for Solving Path- Oriented Multivariate Problems
Evolutionary Testing Approach for Solving Path- Oriented Multivariate ProblemsEvolutionary Testing Approach for Solving Path- Oriented Multivariate Problems
Evolutionary Testing Approach for Solving Path- Oriented Multivariate ProblemsIDES Editor
 
Combinational circuit designer using 2D Genetic Algorithm
Combinational circuit designer using 2D Genetic AlgorithmCombinational circuit designer using 2D Genetic Algorithm
Combinational circuit designer using 2D Genetic AlgorithmVivek Maheshwari
 
UNDERSTANDING NEGATIVE SAMPLING IN KNOWLEDGE GRAPH EMBEDDING
UNDERSTANDING NEGATIVE SAMPLING IN KNOWLEDGE GRAPH EMBEDDINGUNDERSTANDING NEGATIVE SAMPLING IN KNOWLEDGE GRAPH EMBEDDING
UNDERSTANDING NEGATIVE SAMPLING IN KNOWLEDGE GRAPH EMBEDDINGijaia
 
ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
 ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO... ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...cscpconf
 
Enhanced Genetic Algorithm with K-Means for the Clustering Problem
Enhanced Genetic Algorithm with K-Means for the Clustering ProblemEnhanced Genetic Algorithm with K-Means for the Clustering Problem
Enhanced Genetic Algorithm with K-Means for the Clustering ProblemAnders Viken
 
Fault-Tolerance Aware Multi Objective Scheduling Algorithm for Task Schedulin...
Fault-Tolerance Aware Multi Objective Scheduling Algorithm for Task Schedulin...Fault-Tolerance Aware Multi Objective Scheduling Algorithm for Task Schedulin...
Fault-Tolerance Aware Multi Objective Scheduling Algorithm for Task Schedulin...csandit
 
M ESH S IMPLIFICATION V IA A V OLUME C OST M EASURE
M ESH S IMPLIFICATION V IA A V OLUME C OST M EASUREM ESH S IMPLIFICATION V IA A V OLUME C OST M EASURE
M ESH S IMPLIFICATION V IA A V OLUME C OST M EASUREijcga
 
An optimal design of current conveyors using a hybrid-based metaheuristic alg...
An optimal design of current conveyors using a hybrid-based metaheuristic alg...An optimal design of current conveyors using a hybrid-based metaheuristic alg...
An optimal design of current conveyors using a hybrid-based metaheuristic alg...IJECEIAES
 
Parallel and distributed genetic algorithm with multiple objectives to impro...
Parallel and distributed genetic algorithm  with multiple objectives to impro...Parallel and distributed genetic algorithm  with multiple objectives to impro...
Parallel and distributed genetic algorithm with multiple objectives to impro...khalil IBRAHIM
 
Cost Optimization of Multistoried RC Framed Structure Using Hybrid Genetic Al...
Cost Optimization of Multistoried RC Framed Structure Using Hybrid Genetic Al...Cost Optimization of Multistoried RC Framed Structure Using Hybrid Genetic Al...
Cost Optimization of Multistoried RC Framed Structure Using Hybrid Genetic Al...IRJET Journal
 
A Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test FunctionsA Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test FunctionsIJMERJOURNAL
 
Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...
Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...
Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...paperpublications3
 
Analyzing the impact of genetic parameters on gene grouping genetic algorithm...
Analyzing the impact of genetic parameters on gene grouping genetic algorithm...Analyzing the impact of genetic parameters on gene grouping genetic algorithm...
Analyzing the impact of genetic parameters on gene grouping genetic algorithm...Alexander Decker
 

Similar to Cz24655657 (20)

Medical diagnosis classification
Medical diagnosis classificationMedical diagnosis classification
Medical diagnosis classification
 
MEDICAL DIAGNOSIS CLASSIFICATION USING MIGRATION BASED DIFFERENTIAL EVOLUTION...
MEDICAL DIAGNOSIS CLASSIFICATION USING MIGRATION BASED DIFFERENTIAL EVOLUTION...MEDICAL DIAGNOSIS CLASSIFICATION USING MIGRATION BASED DIFFERENTIAL EVOLUTION...
MEDICAL DIAGNOSIS CLASSIFICATION USING MIGRATION BASED DIFFERENTIAL EVOLUTION...
 
Evolutionary Testing Approach for Solving Path- Oriented Multivariate Problems
Evolutionary Testing Approach for Solving Path- Oriented Multivariate ProblemsEvolutionary Testing Approach for Solving Path- Oriented Multivariate Problems
Evolutionary Testing Approach for Solving Path- Oriented Multivariate Problems
 
Combinational circuit designer using 2D Genetic Algorithm
Combinational circuit designer using 2D Genetic AlgorithmCombinational circuit designer using 2D Genetic Algorithm
Combinational circuit designer using 2D Genetic Algorithm
 
UNDERSTANDING NEGATIVE SAMPLING IN KNOWLEDGE GRAPH EMBEDDING
UNDERSTANDING NEGATIVE SAMPLING IN KNOWLEDGE GRAPH EMBEDDINGUNDERSTANDING NEGATIVE SAMPLING IN KNOWLEDGE GRAPH EMBEDDING
UNDERSTANDING NEGATIVE SAMPLING IN KNOWLEDGE GRAPH EMBEDDING
 
ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
 ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO... ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
ENHANCED BREAST CANCER RECOGNITION BASED ON ROTATION FOREST FEATURE SELECTIO...
 
Enhanced Genetic Algorithm with K-Means for the Clustering Problem
Enhanced Genetic Algorithm with K-Means for the Clustering ProblemEnhanced Genetic Algorithm with K-Means for the Clustering Problem
Enhanced Genetic Algorithm with K-Means for the Clustering Problem
 
A046010107
A046010107A046010107
A046010107
 
Fault-Tolerance Aware Multi Objective Scheduling Algorithm for Task Schedulin...
Fault-Tolerance Aware Multi Objective Scheduling Algorithm for Task Schedulin...Fault-Tolerance Aware Multi Objective Scheduling Algorithm for Task Schedulin...
Fault-Tolerance Aware Multi Objective Scheduling Algorithm for Task Schedulin...
 
F0422052058
F0422052058F0422052058
F0422052058
 
M ESH S IMPLIFICATION V IA A V OLUME C OST M EASURE
M ESH S IMPLIFICATION V IA A V OLUME C OST M EASUREM ESH S IMPLIFICATION V IA A V OLUME C OST M EASURE
M ESH S IMPLIFICATION V IA A V OLUME C OST M EASURE
 
An optimal design of current conveyors using a hybrid-based metaheuristic alg...
An optimal design of current conveyors using a hybrid-based metaheuristic alg...An optimal design of current conveyors using a hybrid-based metaheuristic alg...
An optimal design of current conveyors using a hybrid-based metaheuristic alg...
 
Parallel and distributed genetic algorithm with multiple objectives to impro...
Parallel and distributed genetic algorithm  with multiple objectives to impro...Parallel and distributed genetic algorithm  with multiple objectives to impro...
Parallel and distributed genetic algorithm with multiple objectives to impro...
 
Cost Optimization of Multistoried RC Framed Structure Using Hybrid Genetic Al...
Cost Optimization of Multistoried RC Framed Structure Using Hybrid Genetic Al...Cost Optimization of Multistoried RC Framed Structure Using Hybrid Genetic Al...
Cost Optimization of Multistoried RC Framed Structure Using Hybrid Genetic Al...
 
A Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test FunctionsA Genetic Algorithm on Optimization Test Functions
A Genetic Algorithm on Optimization Test Functions
 
Hc3413121317
Hc3413121317Hc3413121317
Hc3413121317
 
Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...
Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...
Performance Analysis of Genetic Algorithm as a Stochastic Optimization Tool i...
 
10.1.1.34.7361
10.1.1.34.736110.1.1.34.7361
10.1.1.34.7361
 
1809.05680.pdf
1809.05680.pdf1809.05680.pdf
1809.05680.pdf
 
Analyzing the impact of genetic parameters on gene grouping genetic algorithm...
Analyzing the impact of genetic parameters on gene grouping genetic algorithm...Analyzing the impact of genetic parameters on gene grouping genetic algorithm...
Analyzing the impact of genetic parameters on gene grouping genetic algorithm...
 

Cz24655657

  • 1. Seyed Mostafa Mansourfar, Fardin Esmaeeli Sangari, Mehrdad Nabahat / International Journal of Engineering Research and Applications (IJERA)ISSN: 2248-9622 www.ijera.com Vol. 2, Issue 4, June-July 2012, pp.655-657 Genetic Algorithms Vs. Niching Methods On Clustering Undirected Weighted Graph Seyed Mostafa Mansourfar*, Fardin Esmaeeli Sangari**, Mehrdad Nabahat*** * Sama technical and vocational training school, Islamic Azad University, Mamaghan branch, Mamaghan, Iran ** Sama technical and vocational training school, Islamic Azad University, Urmia branch, Urmia, Iran *** Sama technical and vocational training school, Islamic Azad University, Urmia branch, Urmia, Iran ABSTRACT In this paper, clustering undirected, weighed graphs will population resulting in every individual being either identical be under focus, whose decision problem is known to be or extremely alike, the consequences of which is a population NP-complete. Genetic algorithm and deterministic that does not contain sufficient genetic diversity to evolve crowding technique of niching methods have been applied, further. and then we have compared performance of these two Simply increasing the population size may not be enough to paradigms. avoid the problem, while any increase in population size will incur the twofold cost of both extra computation time and Keywords: Clustering, Genetic algorithms, graphs, more generations to converge on an optimal solution [3]. Niching methods, NP-Complete Niching methods have been developed to maintain the population diversity and permit the GA to investigate many I. Introduction peaks in parallel. On the other hand, they prevent the GA from Genetic algorithms (GAs) are generally used as an being trapped in local optima of the search space [4]. optimization technique to search the global optimum of a Deterministic Crowding (DC) is an implicit neighborhood function. However, this is not the only possible use for GAs. technique of niching methods that Mahfoud improved it by Other fields of applications where robustness and global introducing competition between parents and children of optimization are needed could also benefit greatly from GAs identical niche. “Fig.1” (replacement process of DC) [5]. [2]. However, GAs has been successful in many of human competitive problems like optimization problems, IV. Problem Definition classification problems, time series analysis, etc. Clustering graph problem studied in this paper is defined as In this paper we have applied Genetic Algorithm and niching methods-a variety of genetic algorithms- to compare which one acts better on the issue. Clustering tries to divide a graph into k pieces, such that the pieces are of about the same size or weight and there are few connections between the pieces. An important application of graph partitioning is load balancing for parallel computing [9]. Complex problems such as clustering, however, often involve a significant number of locally optimal solutions. In such cases, traditional GAs cannot maintain controlled competitions among the individual solutions and can cause the population to converge prematurely. To improve the situation, various methods including niching methods have been Figure 1. Replacement process in Deterministic Crowding Method proposed [1]. follow: Consider a graph G= (V, E), where V denotes the set II. Related works In recent years clustering and partitioning problem of n vertices and E the set of edges. For a (k, v) balanced partition problem, the objective is to partition G into k have great importance; among the proposed algorithms there components of at most size v.(n/k), while minimizing the are several evolutionary algorithms [9, 10, 11, and 12] that capacity of the edges between separate components. Also, focused on the case. given G and an integer k > 1, partition V into k parts (subsets) V1, V2, ..., Vk such that the parts are disjoint and have equal III. Niching Methods size, and the number of edges with endpoints in different parts Main problem with Genetic Algorithm is premature is minimized such that convergence, that is, a non-optimal genotype taking over a  ∪ 𝑣 𝑖 = 𝑉 And 𝑣 𝑖 ∩ 𝑣𝑗 = ∅ For 𝑖 ≠ 𝑗. 655 | P a g e
  • 2. Seyed Mostafa Mansourfar, Fardin Esmaeeli Sangari, Mehrdad Nabahat / International Journal of Engineering Research and Applications (IJERA)ISSN: 2248-9622 www.ijera.com Vol. 2, Issue 4, June-July 2012, pp.655-657  𝑰𝑵 = Test graphs 𝑵 𝒌 (𝑵 𝒌 −𝟏) We have tested the algorithms on 2 undirected graphs 𝒌( 𝟐 − 𝑨 𝒕𝒐𝒕𝒂𝒍 ) + from DIMACS instance [13] which vertices’ and edge’s 𝒆𝒙𝒕𝒆𝒓𝒏𝒂𝒍 𝒊𝒏𝒕𝒆𝒓𝒄𝒐𝒏𝒏𝒆𝒄𝒕𝒊𝒐𝒏𝒔 weights assigned with randomly integer numbers between 1 o K: maximum number of sub graph and 5. Both graphs adjacency matrices can be accessed in [15]. o 𝑁 𝑘 : Number of nodes of sub graphs o 𝐴 𝑡𝑜𝑡𝑎𝑙 : Internal interconnections Test results The following settings used for each of algorithms: We need to minimize IN index.  GA: Population size=200; number of generations=500; elitism=10; Crossover algorithm and rate= Two-point V. Chromosome Representation crossover with 75%, Selection algorithm=Tournament Assignment representation is used in this algorithm. method. Each chromosome, a string with length N, consists of nonnegative integer numbers less than or equal to K [8]. K is  DC: Population size=200; number of generations=500; the number of clusters in the chromosome. Crossover algorithm and rate= Two-point crossover with 100%, Selection algorithm=Tournament method. In addition, Hamming distance is used in replacement VI. Breeding operation process. The breeding process is heart of the evolutionary Experiments include comparing performance of DC and GA; algorithms. The search process creates new and hopefully all experiments have been repeated for 20 times. fitter individuals. “Table I” shows characteristic of each test graphs. Selection operation “Fig.2” and “Fig.3” show obtained results of this experiment The most widely used selection mechanisms are the with both DC and GA. roulette-wheel selection and tournament selections [6]. “Table II” compares DC and GA from point of run time, Roulette wheel selection could lead to high fitness individual clearly DC method is more demanding and takes considerably of population dominated the direction of population evolution more time; of course reason is performing much more and eventually occupied the population [7]; Unlike, the crossover operator also carrying out distance operator on Roulette wheel selection, the tournament selection strategy chromosomes. provides selective pressure by holding a tournament competition among Nu individuals, that is more efficient and Table I leads to an optimal solution[3]. We use tournament selection Test graph characteristics that holds a competition between randomly selected portions Graph vertices edges K of population and returns the winner for mating pool. Moreover elitism is also comes along with tournament MYCIEL3 11 40 4 selection to improve the performance. ANNA 138 986 10 Crossover and mutation operation Crossover is the process of taking two parent solutions and producing children from them. In our algorithm 25 we have applied Two-point crossover which two crossover points are chosen and the contents between these points are 20 exchanged between two mated parents. fitness value We have applied random mutation 15 . 10 VII. Experimental results Implementation and test environment 5 Algorithms have been implemented in C# using Socket and Net namespaces. The architecture of all experiments consist 0 Intel Pentium 4 processors running in 2.2GHz with 512MB of 15% 30% 45% RAM. GA 19.61 15.68 11.412 DC 10.546 8.5741 6.23 Figure 2. Fitness values for MYCIEL3 656 | P a g e
  • 3. Seyed Mostafa Mansourfar, Fardin Esmaeeli Sangari, Mehrdad Nabahat / International Journal of Engineering Research and Applications (IJERA)ISSN: 2248-9622 www.ijera.com Vol. 2, Issue 4, June-July 2012, pp.655-657 Optimization Problems," IEEE Transactions on Magnetics, 0 vol. 36, no. 4, pp. 1027-1030 ,JULY, 2000. [5] E.Perez, F.Hererra, C.Hernandez, “Finding multiple -100 solutions in job shop scheduling by niching genetic -200 algorithms,” Journal of intelligent manufacturing, vol. 14, no. 3-4, pp. 323-339, June 2003 fitness value -300 [6] Petra Kudova, "Clustering Genetic Algorithm," dexa, -400 pp.138-142, 18th International Conference on Database and Expert Systems Applications (DEXA 2007), 2007 -500 [7] Da-jiang jin, Ji-ye zhang, “A New Crossover Operator For -600 Improving Ability Of Global Searching,” Proceedings of the Sixth International Conference on Machine Learning -700 and Cybernetics, Hong Kong, pp. 19-22, August 2007. 15% 30% 45% [8] Kazem Pourhaji, Shahriar Lotfi, “An Evolutionary DC -391.98 -490.534 -512.18 Approach for Partitioning Weighted Module Dependency Graphs,” 4th International Conference on Innovations in GA -32.65 -80.21 -150.37 Information Technology, 2007. Figure 3. Fitness values for ANNA [9] Harpal Maini , Kishan Mehrotra , Chilukuri Mohan , Sanjay Ranka, “Genetic algorithms for graph partitioning Table II Comparing DC and PGA from Run Time View and incremental graph partitioning,” Proceedings of the 1994 conference on Supercomputing, p.449-457, ANNA MYCIEL3 December 1994, Washington, D.C., United States DC 35.78(s) 0.92(s) [10] Sahar Shazely , Hoda Baraka , Ashraf Abdel-Wahab, PGA 4.1(s) 0.03(s) “Solving Graph Partitioning Problem Using Genetic Algorithms,” Proceedings of the 1998 Midwest Symposium on Systems and Circuits, p.302, August 09-12, 1998 [11] A. Cincotti, V. Cutello, M. Pavone, "Graph partitioning using VIII. Conclusions genetic algorithms with ODPX," Proceedings of the 2002 In this paper we have reviewed a popular NP-complete Congress on Evolutionary Computation, vol. 1, pp.402-406. problem, clustering on undirected, weighted graphs. We have [12] Siming Lin, Xueqi Cheng, BC-GA: A Graph Partitioning used two practical heuristic algorithms, Deterministic Algorithm for Parallel Simulation of Internet Applications , 16th Euromicro Conference on Parallel, Distributed and Crowding of niching methods and Genetic Algorithm. As the Network-Based Processing, pp. 358-365, Feb 2008. results show DC method acts better than genetic algorithm; it [13] http://mat.gsia.cmu.edu/COLOR/instances.html is due to mechanisms of breeding this algorithm uses and [14] http://en.wikipedia.org/wiki/Graph_partitioning survives better solutions for rest of operation. [15] http://sites.google.com/site/gppdataset/ Focusing on run time, DC method is more demanding than GA, which clearly is the only weak point of this method. REFERENCES [1] Weiguo Sheng, Xiaohui Liu, Mike Fairhurst, "A Niching Memetic Algorithm for Simultaneous Clustering and Feature Selection," IEEE Transactions on Knowledge and Data Engineering, vol. 20, no. 7, pp. 868-879, Jan. 2008 [2] Settea, Boullart, “Genetic programming: principles and applications”, Engineering Applications of Artificial Intelligence 14 (2001) pp.727–736 [3] S.N.Sivanandam, S.N.Deepa, Introduction to Genetic Algorithms, Springer Berlin Heidelberg New York, 2008, pp.10-20. [4] B. Sareni, L. Krähenbühl, and A. Nicolas, “Efficient Genetic Algorithms for Solving Hard Constrained 657 | P a g e