Presentation is loading. Please wait.

Presentation is loading. Please wait.

ASC2003 (July 15,2003)1 Uniformly Distributed Sampling: An Exact Algorithm for GA’s Initial Population in A Tree Graph H. S.

Similar presentations


Presentation on theme: "ASC2003 (July 15,2003)1 Uniformly Distributed Sampling: An Exact Algorithm for GA’s Initial Population in A Tree Graph H. S."— Presentation transcript:

1 ASC2003 (July 15,2003)1 h_s_shahhoseini@hotmail.com Uniformly Distributed Sampling: An Exact Algorithm for GA’s Initial Population in A Tree Graph H. S. Shahhoseini, PhD Assistant Professor at Iran University of Science & Technology Director of Talent Student Affairs of the University IEEE TFCC Coordinator in Middle East Region Countries IEEE TFCC Executive Committee Member email: h_s_shahhoseini@hotmail.com h_s_shahhoseini@iust.ac.ir http://h_s_shahhoseini.tripod.com/papers/ASC2003UDS.ppt

2 ASC2003 (July 15,2003)2 h_s_shahhoseini@hotmail.com Overview of Presentation  Task Graph Scheduling Problems and Issues  Uniform Initial Population  Previous Works  Uniformly Distributed Sampling (UDS)  How the Algorithm works  Future Works

3 ASC2003 (July 15,2003)3 h_s_shahhoseini@hotmail.com Task Graph Scheduling Task Scheduling Problem: Finding the best sequence of the task to the processors in a parallel system. Task Scheduling is an NP-Hard optimization problem which means the time of operation is a non-polynomial function of the size of the problem.

4 ASC2003 (July 15,2003)4 h_s_shahhoseini@hotmail.com Problems and Issues Two main solution:  Heuristic algorithms : Usually restricts the search space.  Search algorithms : Globally investigate the search space for finding the best solution. Search algorithms are very sensitive to the start point.

5 ASC2003 (July 15,2003)5 h_s_shahhoseini@hotmail.com Heuristic Usually heuristics are list-based algorithm.  Assigning a property to any node on basis of the weight of the graph’s links and nodes.  Constructing a list of nodes according their properties in descending or ascending manner.  Selecting the nodes from head of the list.  Assigning to the processor who can start their job earlier. Examples: HLFET (by t_level Property), PDEFT (by b_level Property) and MCP (by ALAP Property)

6 ASC2003 (July 15,2003)6 h_s_shahhoseini@hotmail.com The Structure of the Heuristic

7 ASC2003 (July 15,2003)7 h_s_shahhoseini@hotmail.com Search Algorithm  The space of valid permutations was searched for finding the best permutation.  Examples: Genetic Algorithm and Tabu Search.

8 ASC2003 (July 15,2003)8 h_s_shahhoseini@hotmail.com Genetic Algorithm  A group of the individuals are selected as initial population, named chromosome.  The population is regenerated from them by fitness, mutation functions.  The most fitted chromosomes are selected as a next generation by selection functions. The initial population affects on the speed of reaching the optimum schedule.

9 ASC2003 (July 15,2003)9 h_s_shahhoseini@hotmail.com Example of a graph Valid Permutation

10 ASC2003 (July 15,2003)10 h_s_shahhoseini@hotmail.com Previous Methods

11 ASC2003 (July 15,2003)11 h_s_shahhoseini@hotmail.com Example of a graph Valid Permutation  In previous algorithm b and c are similarly selected from set F as second node which is incorrect.  To have a uniformly distributed initial population, the selection probability must be non-uniform.  The selection probability must be according to remaining selection subspace size, N rss, which produced by selecting the previous node in the permutation.

12 ASC2003 (July 15,2003)12 h_s_shahhoseini@hotmail.com Uniformly Distributed Sampling To describe Uniformly Distributed Sampling, UDS:  Defining ordered-combination of permutation with variable lengths.  Proving a lemma for determining the number of ordered-combination of two permutation, R(m,n).  Defining the node’s Valid Permutation’s Attributes, VPA

13 ASC2003 (July 15,2003)13 h_s_shahhoseini@hotmail.com ordered-combination  Consider two arbitrary permutation A1 and A2 with lengths of L1 and L2.  The ordered combination of and is a new permutation with length of L1+L2 whose element consist of the elements of A1 and A2, with their order in A1 and A2.  There are many ordered combinations for two permutations 1234 and abc. For example 12a3b4c and a1b2c34 are two ordered combination of and.

14 ASC2003 (July 15,2003)14 h_s_shahhoseini@hotmail.com Lemma : Number of ordered-combination Equations (1) and (2) can be simply proved, so they are accepted and the last equation can be prove by inductive proof.

15 ASC2003 (July 15,2003)15 h_s_shahhoseini@hotmail.com Lemma : Number of ordered-combination Equation (3), can be extended in the same manner for more than two permutations as follows: where p, m, n are the lengths of three different permutation.

16 ASC2003 (July 15,2003)16 h_s_shahhoseini@hotmail.com Valid Permutation’s Attributes  Valid Permutation’s Attributes, or VPA is defined as an ordered pair for any node, which is shown by (l k, p k ). l k : is the number of valid permutations, which contain node k and its entire successor nodes. p k : is the length of these permutations.

17 ASC2003 (July 15,2003)17 h_s_shahhoseini@hotmail.com Computation of VPA for node k  In the Tree graph the hierarchical computing can be used for finding VPA of nodes in the graph.

18 ASC2003 (July 15,2003)18 h_s_shahhoseini@hotmail.com Computation of VPA  To assign VPA to the nodes, UDS starts from the exit nodes of the graph and assign the (1,1) to them.  Then it can recursively compute VPA for the parent nodes VPA.  The selection probability are proportional to remaining selection subspace size, N rss, which produced by selecting the previous node in the permutation.

19 ASC2003 (July 15,2003)19 h_s_shahhoseini@hotmail.com Selection probability  For node n j for selecting k-th element of permutation. So the selection probability of j-th node of set F, when the k-th element of permutation to be selected will be:

20 ASC2003 (July 15,2003)20 h_s_shahhoseini@hotmail.com UDS Summary

21 ASC2003 (July 15,2003)21 h_s_shahhoseini@hotmail.com Example For second node F ={b,c,d} and In the same manner:

22 ASC2003 (July 15,2003)22 h_s_shahhoseini@hotmail.com Conclusion  A sampling algorithm, UDS, was proposed for making uniformly selected initial population of GA in the domain for the task graph scheduling.  The validity of UDS is mathematically investigated.

23 ASC2003 (July 15,2003)23 h_s_shahhoseini@hotmail.com Future Works  showing how this initial selection reduces the run time of GA for finding the best schedule of the task graph in different applications.  Uniformly Distributed Sampling, UDS, is introduced for graph with Tree structure. Another area for future work is to extend this approach for the other topologies of the graph.

24 ASC2003 (July 15,2003)24 h_s_shahhoseini@hotmail.com Thank You.


Download ppt "ASC2003 (July 15,2003)1 Uniformly Distributed Sampling: An Exact Algorithm for GA’s Initial Population in A Tree Graph H. S."

Similar presentations


Ads by Google