March 2005ants can colour graphs, andym1 ants can colour graphs (or so I’m told)

Slides:



Advertisements
Similar presentations
Algorithm Design Methods Spring 2007 CSE, POSTECH.
Advertisements

Theory of Computing Lecture 18 MAS 714 Hartmut Klauck.
Approximation, Chance and Networks Lecture Notes BISS 2005, Bertinoro March Alessandro Panconesi University La Sapienza of Rome.
1 Reinforced Tabu Search (RTS) for Graph Colouring Daniel Porumbel PhD student (joint work with Jin Kao Hao and Pascale Kuntz) Laboratoire d’Informatique.
Wavelength Assignment in Optical Network Design Team 6: Lisa Zhang (Mentor) Brendan Farrell, Yi Huang, Mark Iwen, Ting Wang, Jintong Zheng Progress Report.
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Ant colony algorithm Ant colony algorithm mimics the behavior of insect colonies completing their activities Ant colony looking for food Solving a problem.
Section 1.7: Coloring Graphs
Majority and Minority games. Let G be a graph with all degrees odd. Each vertex is initially randomly assigned a colour (black or white), and at each.
CS774. Markov Random Field : Theory and Application Lecture 17 Kyomin Jung KAIST Nov
Algorithm Strategies Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Planning under Uncertainty
Last time: terminology reminder w Simple graph Vertex = node Edge Degree Weight Neighbours Complete Dual Bipartite Planar Cycle Tree Path Circuit Components.
02/01/11CMPUT 671 Lecture 11 CMPUT 671 Hard Problems Winter 2002 Joseph Culberson Home Page.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Recent Development on Elimination Ordering Group 1.
Implicit Hitting Set Problems Richard M. Karp Harvard University August 29, 2011.
Ant Colonies As Logistic Processes Optimizers
[1][1][1][1] Lecture 2-3: Coping with NP-Hardness of Optimization Problems in Practice May 26 + June 1, Introduction to Algorithmic Wireless.
Ant Colony Optimization Optimisation Methods. Overview.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
Ch 13 – Backtracking + Branch-and-Bound
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 25 Instructor: Paul Beame.
Finding a maximum independent set in a sparse random graph Uriel Feige and Eran Ofek.
ECE669 L10: Graph Applications March 2, 2004 ECE 669 Parallel Computer Architecture Lecture 10 Graph Applications.
Ant Colony Optimization: an introduction
SWORDS 2004 Ant Colony Optimisation Dr Jonathan Thompson, School of Mathematics, Cardiff University.
1.1 Chapter 1: Introduction What is the course all about? Problems, instances and algorithms Running time v.s. computational complexity General description.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
Approximation Algorithms for NP-hard Combinatorial Problems Magnús M. Halldórsson Reykjavik University
APPROXIMATION ALGORITHMS VERTEX COVER – MAX CUT PROBLEMS
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Swarm Intelligence 虞台文.
Introduction to Job Shop Scheduling Problem Qianjun Xu Oct. 30, 2001.
BackTracking CS335. N-Queens The object is to place queens on a chess board in such as way as no queen can capture another one in a single move –Recall.
Approximation Algorithms
Object Oriented Programming Assignment Introduction Dr. Mike Spann
Local Search: walksat, ant colonies, and genetic algorithms.
ANALYSIS AND IMPLEMENTATION OF GRAPH COLORING ALGORITHMS FOR REGISTER ALLOCATION By, Sumeeth K. C Vasanth K.
Ant colony algorithm Ant colony algorithm mimics the behavior of insect colonies completing their activities Ant colony looking for food Solving a problem.
1 Short Term Scheduling. 2  Planning horizon is short  Multiple unique jobs (tasks) with varying processing times and due dates  Multiple unique jobs.
Graph Colouring L09: Oct 10. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including the famous.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
Optimizing Pheromone Modification for Dynamic Ant Algorithms Ryan Ward TJHSST Computer Systems Lab 2006/2007 Testing To test the relative effectiveness.
Optimization Problems
CSE 589 Part V One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important. Bertrand Russell.
SPANNING TREES Lecture 21 CS2110 – Fall Nate Foster is out of town. NO 3-4pm office hours today!
CS6045: Advanced Algorithms NP Completeness. NP-Completeness Some problems are intractable: as they grow large, we are unable to solve them in reasonable.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
CS 721 Project Implementation of Hypergraph Edge Covering Algorithms By David Leung ( )
INTELLIGENT TEST SCHEDULING TE-MPE Technical Meeting Michael Galetzka.
Visual Recognition Tutorial1 Markov models Hidden Markov models Forward/Backward algorithm Viterbi algorithm Baum-Welch estimation algorithm Hidden.
111 Fast Spectrum Allocation in Coordinated Dynamic Spectrum Access Based Cellular Networks Anand Prabhu Subramanian, Himanshu Gupta, Samir R. Das State.
Theory of Computational Complexity Yusuke FURUKAWA Iwama Ito lab M1.
Optimization Problems
The Theory of NP-Completeness
BackTracking CS255.
Algorithm Design Methods
metaheuristic methods and their applications
Optimization Problems
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
Ant Colony Optimization
traveling salesman problem
Ants and the TSP.
Algorithm Design Methods
The Theory of NP-Completeness
Algorithm Design Methods
Presentation transcript:

march 2005ants can colour graphs, andym1 ants can colour graphs (or so I’m told)

march 2005ants can colour graphs, andym2 Graph (vertex) colouring the problem –assign a colour to every vertex in a graph such that no adjacent vertices have the same colour more formally… –given: a graph G={V,E} –find: a map c:V  S such that c(v)  c(w) where v and w are adjacent vertices

march 2005ants can colour graphs, andym3 Graph (vertex) colouring cont. S is the set of available colours –want to minimize the size of S –if G has a set S of size q, this is called a q- colouring of G n is the number of vertices in G easy to find a q-colouring of G –just pick q = n

march 2005ants can colour graphs, andym4 GC example

march 2005ants can colour graphs, andym5 GC example

march 2005ants can colour graphs, andym6 GC example

march 2005ants can colour graphs, andym7 GC example

march 2005ants can colour graphs, andym8 GC note notice that the smallest q-colouring is equal to the size of the largest clique of G –this has nothing to do with anything that will follow –it’s just an interesting observation and a lower bound on the size of q

march 2005ants can colour graphs, andym9 Why colour graphs? good question (glad you asked…) it’s useful for –assignment type problems frequency assignment to radio stations register allocation in compilers –scheduling timetabling for exams

march 2005ants can colour graphs, andym10 So what’s the problem? graph colouring is NP-hard –can prove this by reduction to 3-SAT not going to do it now though –intuitively, max_clique is NP-hard max_clique defines the lower bound for minimum q-colouring therefore GC seems it should be NP

march 2005ants can colour graphs, andym11 GC exact solution 1)Exhaustive search enumerate all possible combinations guaranteed to find smallest q not guaranteed to complete in your lifetime

march 2005ants can colour graphs, andym12 GC heuristics graph colouring is a much loved, well- worn problem many heuristics have been applied neural nets maximum independent set simulated annealing TABU search evolutionary simulated annealing

march 2005ants can colour graphs, andym13 GC heuristics cont. 1)simple greedy algorithm for each vertex v colour v’s neighbours with any colour not already on their neighbours this is fast produces solutions bounded by MAX_degree(G) + 1 quality of solution depends on vertex visit order pick highest degree vertices first can be easily improved by backtracking

march 2005ants can colour graphs, andym14 GC heuristics cont. 2)Degree of Saturation (DSAT) same as greedy except… initial v is arbitrary (random or some rule) subsequent v has maximum coloured neighbourhood. if more than one max, decide arbitrarily still fast better than greedy

march 2005ants can colour graphs, andym15 GC heuristic cont. 3)Recursive Largest First (RLF) while there are still vertices to colour choose a colour i make a list U of uncoloured vertices while U isn’t empty find v with most uncoloured neighbours and colour it i remove v and all its neighbours from U still fast also better than greedy

march 2005ants can colour graphs, andym16 GC ant heuristic ANTCOL ant colony colouring –proposed in “Ants can colour graphs” D. Costa; A.Hertz 1997

march 2005ants can colour graphs, andym17 ANTCOL overview given a graph G with n vertices each individual ant wanders the graph –applies a colour to each vertex as it goes –uses a standard incremental heuristic –vertex choice based on a probabilistic combination of pheromone trail and heuristic

march 2005ants can colour graphs, andym18 ANTCOL pheromone after colouring the graph –pheromone collects in an nxn matrix M –values in M represent the quality of solutions found when 2 vertices have the same colour –or, more formally… given: vertices v r,v s M rs is proportional to q when c(v r ) = c(v s )

march 2005ants can colour graphs, andym19 M is updated as follows –M rs = .M rs +  1/q a –where  = rate of evaporation num_ants  a  1 s a = solution found by ant a S rs = all solutions where c(v r ) = c(vs) ANTCOL pheromone s a  S rs

march 2005ants can colour graphs, andym20 ANTCOL transition Costa and Hertz define a generic transition rule, similar to TSP and VC, for all assignment problems essentially the probability of giving a vertex a colour is –prob = trail_factor .heuristic_preference   and  give weights to the trail and heuristic probabilities respectively sum of all (trail_factor .heuristic_preference  ) so far ________

march 2005ants can colour graphs, andym21 ANTCOL transition given a partial solution s[k-1] the trail factor calculation is provided by |V c | M xv  xVcxVc 1if V c is empty otherwise ____  2 (s[k - 1], v, c) :=

march 2005ants can colour graphs, andym22 ANTCOL heuristics chose 2 simple heuristics for ANTCOL RLF –optimal configuration random initial vertex heuristic preference is degree(v) DSATUR –optimal configuration heuristic preference is dsat(v) always choose lowest colour for v

march 2005ants can colour graphs, andym23 ANTCOL trials chose –   {1,2},  = 4,  =0.5, iterations = 50 –by trial and error ran against random graphs, generated with a statistical proportion of connected vertices –p = {0.4, 0.5, 0.6}

march 2005ants can colour graphs, andym24 ANTCOL results

march 2005ants can colour graphs, andym25 ANTCOL results overall, over 50 iterations of ANTCOL –ANT_RLF better than ANT_DSATUR –both better than RLF and DSATUR but slower –ANTCOL produced better results than the heuristics compared against… … but it took a really long time to execute… … and there are still algorithms out there that work better than it

march 2005ants can colour graphs, andym26 ANTCOL results In particular, –# ants is important < n, is unsatisfactory for small (n = 100) graphs, ANT_DSATUR worked better with 100 ants –(sometimes less is more)

march 2005ants can colour graphs, andym27 ANTCOL under scrutiny ANTCOL algorithm doesn’t scale well –up to 2000x slower than other heuristics for 10% reduction in q –use of ANTCOL would depend on time- accuracy trade-off –authors suggest ANTCOL would perform better on MIMD hardware other heuristics would probably also receive a performance boost on such hardware

march 2005ants can colour graphs, andym28 ANTCOL under scrutiny “How good can ants color graphs?” –Vesel and Zerovnik seem to have taken offence at Hertz and Costa’s results –argue that comparison between ANTCOL and DSAT/RLF invalid –ANTCOL performs 50 X nants iterations of DSAT/RLF as subroutines (vs. 50 iterations of DSAT/RLF alone) –therefore comparison should be against 50 x nants iterations of DSAT/RLF

march 2005ants can colour graphs, andym29 ANTCOL under scrutiny test re-run by Vesel, Zerovnik used 50 x nants iterations –concluded that ANT_RLF beats repeated_RLF –repeated_RLF beats ANT_DSAT –Petford-Welsh algorithm beats all incremental multi-pass colour assignment algorithm… I think hard to find a good description

march 2005ants can colour graphs, andym30 Can ants colour graphs? “ACODYGRA: An agent algorithm for coloring dynamic graphs” –Preuveneers and Berbers –dynamic graph ant algorithm –concluded that agents just aren’t as good as other algorithms for graph colouring so the answer is… yes! –but generally not as well as other things do

fin.

march 2005ants can colour graphs, andym32 References Ants can colour graphs –D. Costa; A. Hertz –The Journal of the Operational Research Society, Vol. 48, No. 3 (Mar., 1997) Graph Theory –Reinhard Diestel –Springer-Verlag, New York, 2000 ACODYGRA: An agent algorithm for coloring dynamic graphs –D. Preuveneers; Yolande Berbers –K.U. Leuven

march 2005ants can colour graphs, andym33 References cont. Graph coloring algorithms –Walter Klotz –Mathematik-Bericht 5 (2002), 1-9, TU Clausthal A multi-agents approach for a graph colouring problem –B. Mermet; G. Simon; M.Flouret –2002 An evolutionary annealing approach to graph colouring –D. A. Fotakis; S. D. Likothanassis; S.K. Stefanakos