Usage of of Genetic Algorithm for Lattice Drawing

Similar documents
GENETIC ALGORITHM with Hands-On exercise

ISSN: [Keswani* et al., 7(1): January, 2018] Impact Factor: 4.116

ARTIFICIAL INTELLIGENCE (CSCU9YE ) LECTURE 5: EVOLUTIONARY ALGORITHMS

A New Selection Operator - CSM in Genetic Algorithms for Solving the TSP

Path Planning Optimization Using Genetic Algorithm A Literature Review

Introduction to Genetic Algorithms. Based on Chapter 10 of Marsland Chapter 9 of Mitchell

Suppose you have a problem You don t know how to solve it What can you do? Can you use a computer to somehow find a solution for you?

A Genetic Algorithm for Graph Matching using Graph Node Characteristics 1 2

Time Complexity Analysis of the Genetic Algorithm Clustering Method

Introduction to Genetic Algorithms

Artificial Intelligence Application (Genetic Algorithm)

The Genetic Algorithm for finding the maxima of single-variable functions

Introduction to Evolutionary Computation

Genetic Algorithms for Vision and Pattern Recognition

Genetic Algorithm for Dynamic Capacitated Minimum Spanning Tree

Grid Scheduling Strategy using GA (GSSGA)

Topological Machining Fixture Layout Synthesis Using Genetic Algorithms

Genetic Algorithms Variations and Implementation Issues

Automata Construct with Genetic Algorithm

GENETIC ALGORITHM VERSUS PARTICLE SWARM OPTIMIZATION IN N-QUEEN PROBLEM

Solving the Travelling Salesman Problem in Parallel by Genetic Algorithm on Multicomputer Cluster

Genetic Algorithms. Kang Zheng Karl Schober

Network Routing Protocol using Genetic Algorithms

Computational Intelligence

Evolutionary Computation Part 2

Genetic Algorithm Performance with Different Selection Methods in Solving Multi-Objective Network Design Problem

CHAPTER 4 GENETIC ALGORITHM

Genetic Algorithm for Dynamic Capacitated Minimum Spanning Tree

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

Optimization of Benchmark Functions Using Genetic Algorithm

4/22/2014. Genetic Algorithms. Diwakar Yagyasen Department of Computer Science BBDNITM. Introduction

Introduction to Optimization

Introduction to Optimization

CHAPTER 6 REAL-VALUED GENETIC ALGORITHMS

AN IMPROVED ITERATIVE METHOD FOR SOLVING GENERAL SYSTEM OF EQUATIONS VIA GENETIC ALGORITHMS

Search Algorithms for Regression Test Suite Minimisation

AN EVOLUTIONARY APPROACH TO DISTANCE VECTOR ROUTING

Escaping Local Optima: Genetic Algorithm

March 19, Heuristics for Optimization. Outline. Problem formulation. Genetic algorithms

Job Shop Scheduling Problem (JSSP) Genetic Algorithms Critical Block and DG distance Neighbourhood Search

A Web-Based Evolutionary Algorithm Demonstration using the Traveling Salesman Problem

Evolutionary Algorithms. CS Evolutionary Algorithms 1

Multi-objective Optimization

Hybrid of Genetic Algorithm and Continuous Ant Colony Optimization for Optimum Solution

Optimization of Function by using a New MATLAB based Genetic Algorithm Procedure

CONCEPT FORMATION AND DECISION TREE INDUCTION USING THE GENETIC PROGRAMMING PARADIGM

Adaptive Crossover in Genetic Algorithms Using Statistics Mechanism

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

Using Genetic Algorithms in Integer Programming for Decision Support

CHAPTER 5 ENERGY MANAGEMENT USING FUZZY GENETIC APPROACH IN WSN

Genetic algorithms and finite element coupling for mechanical optimization

An Application of Genetic Algorithm for Auto-body Panel Die-design Case Library Based on Grid

A Real Coded Genetic Algorithm for Data Partitioning and Scheduling in Networks with Arbitrary Processor Release Time

Hybridization EVOLUTIONARY COMPUTING. Reasons for Hybridization - 1. Naming. Reasons for Hybridization - 3. Reasons for Hybridization - 2

DERIVATIVE-FREE OPTIMIZATION

Generation of Ultra Side lobe levels in Circular Array Antennas using Evolutionary Algorithms

Khushboo Arora, Samiksha Agarwal, Rohit Tanwar

Applying a Mutation-Based Genetic Algorithm to Processor Configuration Problems

[Premalatha, 4(5): May, 2015] ISSN: (I2OR), Publication Impact Factor: (ISRA), Journal Impact Factor: 2.114

Two-step Modified SOM for Parallel Calculation

Fuzzy Inspired Hybrid Genetic Approach to Optimize Travelling Salesman Problem

ANTICIPATORY VERSUS TRADITIONAL GENETIC ALGORITHM

International Journal of Scientific & Engineering Research Volume 8, Issue 10, October-2017 ISSN

The Binary Genetic Algorithm. Universidad de los Andes-CODENSA

A GENETIC ALGORITHM FOR CLUSTERING ON VERY LARGE DATA SETS

Design of a Route Guidance System with Shortest Driving Time Based on Genetic Algorithm

Solving ISP Problem by Using Genetic Algorithm

Graphical Approach to Solve the Transcendental Equations Salim Akhtar 1 Ms. Manisha Dawra 2

Function Approximation and Feature Selection Tool

Using Genetic Algorithm with Triple Crossover to Solve Travelling Salesman Problem

Genetic Algorithms For Vertex. Splitting in DAGs 1

Application of a Genetic Algorithm to a Scheduling Assignement Problem

Fault Detection in Control Systems via Evolutionary Algorithms

Genetic Algorithms. Chapter 3

A Genetic Algorithm for Minimum Tetrahedralization of a Convex Polyhedron

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

Genetic Algorithm for optimization using MATLAB

DETERMINING MAXIMUM/MINIMUM VALUES FOR TWO- DIMENTIONAL MATHMATICLE FUNCTIONS USING RANDOM CREOSSOVER TECHNIQUES

Genetic Programming. and its use for learning Concepts in Description Logics

AI Programming CS S-08 Local Search / Genetic Algorithms

MINIMAL EDGE-ORDERED SPANNING TREES USING A SELF-ADAPTING GENETIC ALGORITHM WITH MULTIPLE GENOMIC REPRESENTATIONS

MAXIMUM LIKELIHOOD ESTIMATION USING ACCELERATED GENETIC ALGORITHMS

Genetic-PSO Fuzzy Data Mining With Divide and Conquer Strategy

A Genetic Programming Approach for Distributed Queries

A Steady-State Genetic Algorithm for Traveling Salesman Problem with Pickup and Delivery

Segmentation of Noisy Binary Images Containing Circular and Elliptical Objects using Genetic Algorithms

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

GENERATIONAL MODEL GENETIC ALGORITHM FOR REAL WORLD SET PARTITIONING PROBLEMS

A THREAD BUILDING BLOCKS BASED PARALLEL GENETIC ALGORITHM

Revision of a Floating-Point Genetic Algorithm GENOCOP V for Nonlinear Programming Problems

HYBRID GENETIC ALGORITHM WITH GREAT DELUGE TO SOLVE CONSTRAINED OPTIMIZATION PROBLEMS

Heuristic Optimisation

A HYBRID APPROACH IN GENETIC ALGORITHM: COEVOLUTION OF THREE VECTOR SOLUTION ENCODING. A CASE-STUDY

Hierarchical Learning Algorithm for the Beta Basis Function Neural Network

Comparison Study of Multiple Traveling Salesmen Problem using Genetic Algorithm

Genetic Algorithm for Finding Shortest Path in a Network

Planning and Search. Genetic algorithms. Genetic algorithms 1

Energy-Aware Scheduling of Distributed Systems Using Cellular Automata

An Integrated Genetic Algorithm with Clone Operator

Introduction to Genetic Algorithms. Genetic Algorithms

Transcription:

Usage of of Genetic Algorithm for Lattice Drawing Sahail Owais, Petr Gajdoš, Václav Snášel Suhail Owais, Petr Gajdoš and Václav Snášel Department of Computer Science, VŠB Department - Technical ofuniversity Computerof Science, Ostrava, tř. VŠB 17. listopadu - Technical 15, 708 33 Ostrava-Poruba of Ostrava, tř. 17. listopadu Czech 15, 708 Republic 33 Ostrava-Poruba Suhail.Owais@vsb.cz Czech Republic Suhail.Owais@vsb.cz Petr.Gajdos@vsb.cz Vaclav.Snasel@vsb.cz Petr.Gajdos@vsb.cz Vaclav.Snasel@vsb.cz Abstract. Lattice diagrams, known as Hasse diagrams, have played an ever increasing role in lattice theory and fields that use lattices as a tool. Initially regarded with suspicion, they now play an important role in both pure lattice theory and in data representation. Using evolutionary algorithms-genetic algorithms for drawing a lattice diagram is the main goal of our research. It depends on stochastic methods on searching of concepts positions, with trying to draw it with less number of intersections. Keywords: FCA, Genetic Algorithm, Hasse Diagram 1 Graphic representation of concept lattice These Hasse diagrams are an important tool for researchers in lattice theory and ordered set theory and are now used to visualize data. This paper also shows a new approach how to draw a Hasse diagrams using genetic algorithm. In the following paragraphs we would like to mention known approaches of lattice drawing and main points which make a Hasse diagrams or random graphs more readable. After that we explain our approach and all important terms from the area of genetic algorithms. An ordered set P = (P, ) consists of a set P and a partial order relation on P. That is, the relation is reflexive (x x), transitive (x y and y z x z) and antisymmetric (x y and y x x = y). If P is finite there is a unique smallest relation, known as the cover or neighbour relation, whose transitive, reflexive closure is. (Graph theorists call this the transitive reduct of.) A Hasse diagram of P is a diagram of the acyclic graph (P, ) where the edges are straight line segments and, if a < b in P, then the vertical coordinate for a is less than the one for b. Because of this second condition arrows are omitted from the edges in the diagram. A lattice is an ordered set in which every pair of elements a and b has a least upper bound, a b, and a greatest lower bound, a b, and so also has a Hasse diagram. Radim Bělohlávek, Václav Snášel (Eds.): CLA 2005, pp. 82 91, ISBN 80 248 0863 3.

Usage of Genetic Algorithm for Lattice Drawing 83 1.1 Known approaches of lattice drawing By the 1970s diagrams had become an important tool in lattice theory. There exist some known methods how to draw the Hasse diagrams. The first one it called Hierarchical Layout Partially ordered sets, for the purposes of layout, are seen as hierarchies. An annotated bibliography by Battista et. [1] describes the approach as A hierarchical drawing of an acyclic diagram is an upwards polyline drawing where the vertices and bends are constrained to lie on a set of equally spaced horizontal lines. Sugiyamas algorithm is typical of a variety of algorithms proposed for the layout of such diagrams. There are three main steps of whole process. 1. Partition the vertices into layers. 2. Reduce the number of edge crossings by swapping the horizontal ordering of vertices. 3. Minimize the number of bends, where bends are dummy nodes inserted to ensure that lines travel only between adjacent layers. Next there are additive or non additive diagrams and the methods to draw Hasse diagrams which were introduced by Rudolf Willw [11]. But we can mention the main points of each drawing. These are the most important points to draw a readable graph: Avoid crossing of lines. Try to draw parallel lines. Identify known structures: cubes, rectangles... Layer the nodes: draw nodes on the same layer, if their concept s extents have the same size. Try to draw steep lines, avoid flat ones. 2 Evolutionary Algorithms Evolutionary algorithms are stochastic search methods that mimic the metaphor of natural biological evolution, which applies the principles of evolution found in nature to the problem of finding an optimal solution to a solver problem. An evolutionary algorithm is a generic term used to indicate any population-based optimization algorithm that uses mechanisms inspired by biological evolution, such as reproduction, mutation and recombination. Candidate solutions to the optimization problem play the role of individuals in a population, and the cost function determines the environment within which the solutions live (see figure

Evolutionary algorithms are stochastic search methods that mimic the metaphor of natural biological evolution, which applies the principles of evolution found in nature to 84 the Suhail problem Owais, of finding Petr an optimal Gajdoš, solution Václav to a solver Snášel problem. An evolutionary algorithm is a generic term used to indicate any population-based optimization algorithm that uses mechanisms inspired by biological evolution, such as reproduction, mutation and recombination. Candidate solutions to the optimization 1). Evolution problem play of the the role population of individuals then in a population, takes place and the after cost function the repeated determines the application of the above environment operators. within which Figure the solutions 1 shows "live" [1]. theevolution structure of the of population a simple then takes evolutionary algorithm place for after solving the repeated a problem. application of Genetic the above algorithm operators. Figure is the 1 shows most the structure popular type of of a simple evolutionary algorithm for solving a problem. Genetic algorithm is the most evolutionary popular type algorithms. of evolutionary algorithms. selection Problem Coding of solutions Objective function Evolutionary operators Evolutionary Search Solution mutation fitness assignment Recombination Fig-1: Problem Solution Using Evolutionary Algorithm. Fig. 1. Basic scheme of our solution. 2. Genetic Algorithms (GA) Genetic algorithms (GA) described by John Holland in 1960s and further developed by Holland and his students and colleagues at the University of Michigan in the 1960s and 1970s [2]. GA used Darwinian Evolution to extract nature optimization strategies that use them successfully and transform them for application in mathematical optimization theory to find the global optimum in defined phase space [3, 4, 5]. GA is used to extract approximate solutions for problems through a set of operations fitness function, selection, crossover, and mutation. Such operators are principles of evolutionary biology applied to computer science. GA search process 3 Genetic Algorithms (GA) Genetic algorithms (GA) described by John Holland in 1960s and further developed by Holland and his students and colleagues at the University of Michigan in the 1960s and 1970s. GA used Darwinian Evolution to extract nature optimization strategies that use them successfully and transform them for application in mathematical optimization theory to find the global optimum in defined phase space [4][5][6]. GA is used to extract approximate solutions for problems through a set of operations fitness function, selection, crossover, and mutation. Such operators are principles of evolutionary biology applied to computer science. GA search process depends on different mechanisms such as adaptive methods, stochastic search methods, and use probability for search. Using GA for solving most difficult problems that searches for accepted solution; where this solution may not be the best and the optimal one for the problem. GA are useful for solving real and difficult problems, adaptive and optimization problems, and for modeling the natural system that inspired design [9][2]. Some applications that can be solved by GA are: Scheduling Job, and Transportation Scheduling, Design Communication Network design, Control Gas pipeline control, Machine Learning Designing Neural Networks, Robotics Path planning, Combinatorial Optimization TSP, Graph Bisection, and Routing, Signal Processing Filter Design, Image Processing Pattern recognition, Business Evaluating credit risks, and in Medical Studying health risks for a population exposed to toxins [10].

Usage of Genetic Algorithm for Lattice Drawing 85 4 Genetic Algorithms Operators Typically, any genetic algorithm used for purpose of optimization consists of the following features: 1. Chromosome or individual representation. 2. Objective function fitness function. 3. Genetic operators (selection, crossover and mutation). Where applying GA done over a population of individuals or chromosomes shows that several operators are utilized. Presenting of GA process described in a flowchart shown in 2. 4.1 Chromosome Encoding Encoding by simple; representation of integer numbers by binary encoding. Representation for chromosome (suggested solution) will be in a string of symbols to simplify using of GA operators and to help in reproduction of optimal solution. Encoding may be in string of bits, or in arrays, or in lists, or in tree structure, and may be in other types. Some examples were shown in table 1. Encoding Type Example Binary Encoding 1101100100110110 Permutation Encoding 8 5 6 7 2 3 1 4 9 Value Encoding (back), (back), (right), (left) Table 1. Examples for encoding types 4.2 Objective Function The goal of GA is to find a solution to a complex optimization problem, which optimal or near-optimal. GA searches for better performing candidates, where performance can be measured in terms of objective fitness function. The objective is to choose the proportion of financial assets to hold in a portfolio such that risk is minimized given the constraint of achieving a specified level of return. Fitness function does as a metrics to measure scheduler performance for each chromosome in the problem. 4.3 Selection Operator Selection determines which solution candidates are allowed to participate in crossover and undergo possible mutation. Select two chromosomes with the highest quality values from the population using one of the selection methods. Some of these methods are: Elitism Selection, Roulette Wheel Selection, Tournament Selection, Rank Selection, and Stochastic Selection.

86 Suhail Owais, Petr Gajdoš, Václav Snášel 4.4 Crossover operator Promising candidates, as represented by relatively better performing solutions, are combined through a process of binary recombination referred to as crossover. This ensures that the search process is not random but rather that it is consciously directed into promising regions of the solution space. Crossover exchanges subparts of the selected chromosomes, where the position of the subparts selected randomly to produce offsprings. Some of crossover methods types are: Single Point Crossover, Two Points Crossover, Multipoint Crossover, Uniform Crossover, and Arithmetic Crossover. 4.5 Mutation operator New genetic material can be introduced into the population through mutation. This increases the diversity in the population. Mutation occurs by randomly selecting particular elements in a particular offsprings. GA process terminated by satisfies one of terminating conditions often include: Fixed number of generations reached. Budgeting: allocated computation time/money used up. An individual is found that satisfies minimum criteria. The highest ranking individual s fitness is reaching or has reached a plateau such that successive iterations are not producing better results anymore. Manual inspection. May require start-and-stop ability. Combinations of the above. 5 Genetic algorithm implementation In the this chapter we try to describe our approach to draw a Hasse diagram for a concept lattice using genetic algorithm. There are five levels and ten concepts (nodes) in the figure 3. In the first generation the population of a chromosomes were generated randomly. At the beginning the number of levels is computed according to an incremental algorithm made by Petko Valtchev. Then we compute the level position for each node, some nodes may appear in different levels, e.g. the concept number six could be moved one level up. Next vector (see table 2) consists of all edges in the Hasse diagram. The numbers represent the indexes of nodes (concepts). From 0 0 0 5 5 8 8 6 6 9 9 7 4 2 To 6 5 9 3 4 3 9 4 2 7 2 1 1 1 Table 2. Vector of diagram edges

Usage of Genetic Algorithm for Lattice Drawing 87 Start Generate Initial Population Encoding generated population Evaluate Fitness Functions R E G E N E R A T I O N Meets Optimization Criteria? Selection (select parents) Crossover (married parents) Yes Best individuals Stop Mutation (mutate offsprings) Fig-2: Flowchart for Genetic Algorithm Fig. 2. asdadadad Fig. 3. Hasse digram with marked levels. 5.1 Chromosome encoding Each chromosome was encoded as a vector which consists of x and y coordinates for all nodes in the graph. The coordinates will be generated randomly

88 Suhail Owais, Petr Gajdoš, Václav Snášel for node with respect to the levels of nodes. Table 3 shows an example for such chromosome. X-coord. 200 200 50 250 300 270 180 200 100 70 Y-coord. 50 400 300 200 300 100 200 300 100 200 Table 3. Chromosome encoding 6 Fitness function We are looking for more readable graph. The most important constrains we look for the minimal number of edges intersections. 6.1 Selection method The best two chromosomes will be selected depends on the minimal number of intersections and called parents. They will be used in the other operators crossover and mutation to produce two new offspring. 6.2 Crossover Three types of crossover will be implemented (single point, two points and multi points crossover) over selected parents. Following figures show examples for the three types. For the single point crossover (see figure 4) the one node position will be randomly chosen. It will divide the parents chromosomes into two parts. Then first offspring s chromosome consists of the first part from the first parent and second part from the second parent. The second offspring consists of the first part from the second parent and the second part from the first parent. Fig. 4. Single point crossover. For the two points crossover (see figure 5) two nodes positions will be randomly chosen. This will divide the parents chromosomes into three parts. Then

Usage of Genetic Algorithm for Lattice Drawing 89 first offspring s chromosome consists of the first and third parts from the first parent and second part from thesecond parent. The second offspring consists of the second part from the first parent and the first andthird parts from the second parent. Fig. 5. Two points crossover. For the multi points crossover (see figure 6) random number n of nodes will be chosen. Also we generate n number of nodes positions randomly to swap these nodes to produce two new offspring. 6.3 Mutation Fig. 6. Multi points crossover. The two new offspring will be mutated randomly to change some x coordinates depends on mutation value. For each node the random value will be selected and if this value is less then mutation value then new random number will be generated to define x coordinate of the node. Figure 7 shows an example. The x coordinate of the node number 4 was mutated from the value 250 to the 220 because the random number 0.1 for this node is less then the mutation value0.2. The Nodes numberzero and one will be not mutated, because they will be placed in the middle of the x axes (see figure 7). Some nodes may be mutated by change its level (y coordinate) depends on the position of parent concept and child concept. If there is a free level between selected concept and its parent concept, then it can be mutated. Correspondingly, if there is a free level between selected concept and its child concept. See figure 8.

90 Suhail Owais, Petr Gajdoš, Václav Snášel then fitness values will be computed for the new offspring. These offspring may be replaced by the worst chromosome in the population if its fitness values exceed the fitness value of the worst chromosome. Now the new population is ready for a new generation. Fig. 7. Mutation of x-coordinates of nodes. Fig. 8. Mutation of y-coordinate (level) of the node 6. Also we explained how to get a good placing of nodes (concepts) in a graph with a minimal number of intersections. In our approach the main sence of fitness function is to obtain this number. But the function could be modified and other criteria could be added. For example a minimal distance between nodes, a graph symmetry or minimal sum of lengths of graph edges. But this is the point of concrete implementation. 6.4 Termination process The process will be terminated if any of these cases: 1. there will be a chromosome with no intersection which means the best solution, 2. after processing limited number of generations, 3. if there is no improvement over the population in limited number of generations.

Usage of Genetic Algorithm for Lattice Drawing 91 7 Conclusion The genetic algorithms are used to solve hard problems, where the drawing of a nice and readable Hasse diagram is one of them. We introduced one possible way to draw it using genetic algorithm. Using different types of the crossover operators may produce god drawing results. Moving nodes from level to level by mutation operator may give us better results. In our future work we will try to create an application for lattice drawing based on our approach. The shape of the graph could be improved using other characteristics like distances between nodes on the same level. References 1. G. Battista, P. Eades, R. Tamassia, and I. Tollis. Algorithms for drawing graphs, an annotated bibiliography. Computational Geometry, Theory and Applications, 4:235 282, 1994. 2. H. Fang, P. Ross, and D. Corne. Genetic algorithms for timetabling and scheduling. http://www.asap.cs.nott.ac.uk/asap/ttg/resources.html, 1994. 3. B. Ganter and R. Wille. Formal Concept Analysis. Springer-Verlag Berlin Heidelberg, 1999. 4. D. E. Goldberg. Genetic Algorithms in Search, Optimization and Machine Learning. Addison-Wesley, 1989. 5. M. Melanie. An Introduction to Genetic Algorithms. A Bradford Book. MIT-Press, 1999. 6. M. Melanie and S. F. Genetic algorithms and artificial life. Santa Fe Institute, working Paper 93-11-072, 1994. 7. S. S. J. Owais. Timetabling of lectures in the information technology college at al al-bayt university using genetic algorithms. Master s thesis, Al al-bayt University, Jordan, 2003. in Arabic. 8. H. Pohlheim. Evolutionary algorithms: Overview, methods and operators. GEATbx version 3.5., 2004. http://www.geatbx.com/docu/index.html. 9. E. P. K. Tsang and T. Warwick. Applying genetic algorithms to constraints satisfaction optimization problems. In Proc. Of 9th European Conf. on AI. Aiello L.C., 1990. 10. R. L. Wainwright. Introduction to genetic algorithms theory and applications. The Seventh Oklahoma Symposium on Artificial Intelligence, November 1993. 11. R. Wille. Lattices in data analysis: How to draw them with a computer. Algorithms and Order, pages 33 58, 1989.