1 An Evolutionary Algorithm for Query Optimization in Database Kayvan Asghari, Ali Safari Mamaghani Mohammad Reza Meybodi International Joint Conferences.

Slides:



Advertisements
Similar presentations
Algorithm Design Techniques
Advertisements

CS6800 Advanced Theory of Computation
1 An Adaptive GA for Multi Objective Flexible Manufacturing Systems A. Younes, H. Ghenniwa, S. Areibi uoguelph.ca.
Using Parallel Genetic Algorithm in a Predictive Job Scheduling
Exact and heuristics algorithms
Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm
Iterative Improvement Algorithms
Introduction to Evolutionary Computation  Genetic algorithms are inspired by the biological processes of reproduction and natural selection. Natural selection.
EAs for Combinatorial Optimization Problems BLG 602E.
Artificial Intelligence Genetic Algorithms and Applications of Genetic Algorithms in Compilers Prasad A. Kulkarni.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
7/2/2015Intelligent Systems and Soft Computing1 Lecture 9 Evolutionary Computation: Genetic algorithms Introduction, or can evolution be intelligent? Introduction,
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Genetic Algorithm.
Genetic Algorithms and Ant Colony Optimisation
Evolutionary Intelligence
1 Paper Review for ENGG6140 Memetic Algorithms By: Jin Zeng Shaun Wang School of Engineering University of Guelph Mar. 18, 2002.
Slides are based on Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems.
A Comparison of Nature Inspired Intelligent Optimization Methods in Aerial Spray Deposition Management Lei Wu Master’s Thesis Artificial Intelligence Center.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Optimization in Engineering Design Georgia Institute of Technology Systems Realization Laboratory Mixed Integer Problems Most optimization algorithms deal.
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Genetic Algorithms Michael J. Watts
An Iterative Heuristic for State Justification in Sequential Automatic Test Pattern Generation Aiman H. El-MalehSadiq M. SaitSyed Z. Shazli Department.
Genetic algorithms Charles Darwin "A man who dares to waste an hour of life has not discovered the value of life"
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Optimization Problems - Optimization: In the real world, there are many problems (e.g. Traveling Salesman Problem, Playing Chess ) that have numerous possible.
Optimal resource assignment to maximize multistate network reliability for a computer network Yi-Kuei Lin, Cheng-Ta Yeh Advisor : Professor Frank Y. S.
Genetic Algorithms Genetic Algorithms – What are they? And how they are inspired from evolution. Operators and Definitions in Genetic Algorithms paradigm.
1 “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations of things, solutions.
FINAL EXAM SCHEDULER (FES) Department of Computer Engineering Faculty of Engineering & Architecture Yeditepe University By Ersan ERSOY (Engineering Project)
Genetic Algorithms Siddhartha K. Shakya School of Computing. The Robert Gordon University Aberdeen, UK
Derivative Free Optimization G.Anuradha. Contents Genetic Algorithm Simulated Annealing Random search method Downhill simplex method.
A Hybrid Genetic Algorithm for the Periodic Vehicle Routing Problem with Time Windows Michel Toulouse 1,2 Teodor Gabriel Crainic 2 Phuong Nguyen 2 1 Oklahoma.
Artificial Intelligence Chapter 4. Machine Evolution.
Exact and heuristics algorithms
Introduction to Genetic Algorithms. Genetic Algorithms We’ve covered enough material that we can write programs that use genetic algorithms! –More advanced.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
Improving the Genetic Algorithm Performance in Aerial Spray Deposition Management University of Georgia L. Wu, W.D. Potter, K. Rasheed USDA Forest Service.
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
Mining Evolutionary Model MEM Rida E. Moustafa And Edward J. Wegman George Mason University Phone:
Waqas Haider Bangyal 1. Evolutionary computing algorithms are very common and used by many researchers in their research to solve the optimization problems.
Introduction Metaheuristics: increasingly popular in research and industry mimic natural metaphors to solve complex optimization problems efficient and.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Agenda  INTRODUCTION  GENETIC ALGORITHMS  GENETIC ALGORITHMS FOR EXPLORING QUERY SPACE  SYSTEM ARCHITECTURE  THE EFFECT OF DIFFERENT MUTATION RATES.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Overview Last two weeks we looked at evolutionary algorithms.
1 Comparative Study of two Genetic Algorithms Based Task Allocation Models in Distributed Computing System Oğuzhan TAŞ 2005.
Genetic Algorithms. Solution Search in Problem Space.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
Hirophysics.com The Genetic Algorithm vs. Simulated Annealing Charles Barnes PHY 327.
 Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems n Introduction.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Using GA’s to Solve Problems
Genetic Algorithms.
Evolutionary Algorithms Jim Whitehead
Bulgarian Academy of Sciences
Artificial Intelligence (CS 370D)
Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
Aiman H. El-Maleh Sadiq M. Sait Syed Z. Shazli
EE368 Soft Computing Genetic Algorithms.
Beyond Classical Search
Presentation transcript:

1 An Evolutionary Algorithm for Query Optimization in Database Kayvan Asghari, Ali Safari Mamaghani Mohammad Reza Meybodi International Joint Conferences on Computer, Information, and Systems Sciences, and Engineering CISSE 2007

2 Introduction Optimizing the database queries is one of hard research problems   If the number of relations is more than five or six relations, exhaustive search techniques will bear high cost regarding the memory and time.   Examples of queries with large number of relations can be found in: Deductive database management systems Expert systems Engineering database management systems (CAD/CAM) Decision Support Systems Data mining Scientific database management systems   Whatever the reason, database management systems need the use of query optimizing techniques with low cost in order to counteract with such complicated queries.

3 Searching Algorithms for Suitable Join Order   Exact algorithms that search all of state space and sometimes they reduce this space by heuristic methods: Dynamic programming method which at first introduced by Selinger et al. for optimizing the join ordering in System-R. Minimum selectivity algorithm KBZ algorithm AB algorithm But Exhaustive search techniques like dynamic programming is suitable for queries with a few relation and we have to use random and evolutionary methods   Random algorithms have been introduced for showing the inability of exact algorithms versus large queries. Iterative improvement Simulated annealing Two-phase optimization Toured simulated annealing Random sampling Evolutionary algorithms

4   Genetic algorithm has been done by Bennet et al.   Some other works have been done by Steinbrunn et al. that they have used different coding methods and genetic operators   genetic programming which is introduced by Stillger et al.   CGO genetic optimizer has also been introduced by Mulero et al. In our paper a hybrid evolutionary algorithm has been proposed that uses two methods of genetic algorithm and learning automata synchronically for searching the states space of problem.

5 The Definition of Problem   DBMS selects the best query execution plan (qep) from among execution plans, in a way that query execution bears the low cost, especially the cost of input/output operations and time of processing.   If we show the all of allocated execution plans for responding to the query with S set, each member qep that belongs to S set has cost(qep) The purpose of each optimization algorithm is finding a member like qep 0 which belongs to S set, so that:   Processing and Optimizing the join operators in query are difficult   Join operator considers two relations as input and combines their tuples one by one on the basis of a definite criterion and produce a new relation as output.   The join operator has associative and commutative features thus the number of execution plans for responding to a query increases exponentially when the number of joins among relations increases.

6 Learning automata   Learning automata approach for learning involves determination of an optimal action from a set of allowable actions.   It selects an action from its finite set of actions.

7 Proposed Hybrid Algorithm for Solving Join Ordering Problem   Combining genetic algorithms and learning automata   Generation, penalty and reward are some of features of hybrid algorithm.   In proposed algorithm, unlike classical genetic algorithm, binary coding or natural permutation representations aren't used for chromosomes.   Each chromosome is represented by learning automata of object migration kind   Each of genes in chromosome is attributed to one of automata actions, and is placed in a definite depth of that action.

8 Learning automata of object migration kind   In these automata, is set of allowed actions of automata.   Is set of states and N is memory depth for automata.   Now consider the following query: (A∞C) and (B∞C) and (C∞D) and (D∞E)   An example of a query graph : E B A P1P1 P4P4 P3P3 P2P2 C D E

9 Learning automata of object migration kind Display of joins permutation (p3, p2, p1, p4) by learning automata based on Tsetlin automata connections

10 Fitness function   The purpose of searching the optimized order of query joins is finding permutation of join operators, so that total cost of query execution is minimized in this permutation.   One important point in computing fitness function is the number of references to the disc so we can define the fitness function of F for an execution plan like qep as follows:

11 Operators of Hybrid genetic algorithm   Selection operator: The selection used for this algorithm is roulette wheel.   Crossover Operator: In this operator, two parent chromosomes are selected and two genes i and j are selected randomly in one of the two parent chromosomes.   Mutation operator: For executing this operator, we can use different method which are suitable for work with permutations. For example in swap mutation, two actions (genes) from one automata (chromosome) are selected randomly and replaced with each other.

12 Crossover Operator

13 Mutation operator

14 Penalty and Reward Operator   In each chromosome, evaluating the fitness rate of a gene which is selected randomly, penalty or reward is given to that gene.   As a result of giving penalty or reward, the depth of gene changes.   For example, in automata like Tsetlin connections, if p 2 join be in states set {6,7,8,9,10}, and the cost for p 2 join in the second action will be less than average join costs of chromosome, reward will be given to this join and it's Certainty will be increased and moves toward the internal states of that action.

15 An Example of Reward Operator

16 The manner of giving penalty to the join that is in a state except boundary state

17 The manner of giving penalty to the join that is in a boundary state The manner of giving penalty to the join that is in a boundary state

18 Experiment Results Comparison of averaged cost obtained from hybrid algorism and learning automata based on Tsetline and genetic algorithm Comparison of averaged cost obtained from hybrid algorithm and learning automata based on Krinsky and genetic algorithm

19 Experiment Results Comparison of averaged cost obtained from hybrid algorithm and learning automata based on Krylov and genetic algorithm Comparison of averaged cost obtained from hybrid algorithm and learning automata based on Oomen and genetic algorithm

20 Experiment Results Comparison of averaged cost obtained from hybrid algorithms based on different Automata Comparison of averaged cost obtained from hybrid algorithms based on different Automata depth