Phase Transitions and Structure in Combinatorial Problems. Carla P. Gomes Tad Hogg Toby Walsh Weixiong Zhang

Size: px
Start display at page:

Download "Phase Transitions and Structure in Combinatorial Problems. Carla P. Gomes Tad Hogg Toby Walsh Weixiong Zhang"

Transcription

1 Phase Transitions and Structure in Combinatorial Problems Carla P. Gomes Tad Hogg Toby Walsh Weixiong Zhang

2 a statistical regularity in search relates structure to behavior e.g., problem features => search cost analogous to physical phase transitions useful to improve search heuristics i.e., new problem solving strategies 2

3 combinatorial search e.g.: scheduling, circuit design, cryptography, theorem proving, games, matching models to data, genetics,... types decision (NP): rapid test of candidate solutions optimization behavior worst case (e.g., is P=NP?) typical performance of heuristics 3

4 10 variable 3-SAT example each clause gives a nogood inconsistent assignment for the 3 variables e.g., v 1 =true, v 4 =false, v 5 =false search method: depth-1st backtrack cost: steps to find a solution (if any) examine search tree as nogoods added i.e., a particular sequence of clauses, randomly generated 4

5 search tree examined states v 1 =true v 1 =false other consistent states 1st solution another solution 34 nogoods 5 many solutions little pruning low cost

6 search tree 55 nogoods one solution some pruning 6 high cost

7 search tree 110 nogoods no solutions much pruning 7 low cost

8 search cost cost underconstrained nogoods no solutions overconstrained 8

9 observations peak in cost vs. number of nogoods competition between decreasing number of solutions increasing search path pruning peak corresponds to loss of last solution peak location depends on choice of nogoods 9

10 generality example uses one search method one sequence of problem instances Why is this interesting? similar behavior for many search problems search techniques hence: simple parameter indicates likely cost 10

11 outline statistical approach to search local properties and global behavior problem ensembles phase transitions impact of structure summary 11

12 statistical approach to search How do many repeated local decisions combine to give global behavior? e.g., heuristic choice accuracy => search cost key issue: local properties => global behavior addressed by statistical mechanics 12

13 statistical approach identify problem ensemble identify structure parameters easy to measure (computationally efficient) describe an average, local property of problem relate parameters to global behavior e.g., search cost 13

14 problem ensembles class of problem instances probability for each instance why? focus on typical behaviors in class (averagecase) not single instance, not worst-case 14

15 parameterized ensembles problem size properties of constraints e.g., number, tightness can also specify global properties e.g., number of solutions 15

16 simple ensemble examples random k-sat: n variables, m clauses each clause picked independently allowing duplicates random graphs: n nodes, e edges each edge picked randomly but no duplicates 16

17 real problems constraints tend to be local and more clustered than random e.g., small worlds graphs harder to work with than easily generated random ensembles both analytically and empirically 17

18 nature of constraints physical interactions strength decreases with distance designed artifacts often nearly decomposable, hierarchical evolved systems e.g., ecology, economy, common law, social networks 18

19 local measures: global behavior local measure of problem structure number and tightness of constraints global behaviors probability for a solution search cost solution quality 19

20 outline statistical approach to search phase transitions decision problems optimization other complexity classes impact of structure summary 20

21 phase transitions abrupt changes in global property of typical instance in a problem ensemble characteristic of problem ensemble, not problem instance 21

22 phase transition phenomena physics: magnets, superconductors vs. temperature geology: fluid percolation vs. porosity of rocks biology epidemic spread vs. population density 22

23 phase transition: boiling small change in average energy per molecule (temperature) gives large change in overall state 23

24 commonality? key idea: abrupt change in overall system property when size is large why a useful general concept? mathematical commonality in spite of different details suggests analyses, e.g., finite-size scaling universality: insight from simple models with essential features 24

25 phase transitions in AI pruning in heuristic search associative memory models pattern matching 25

26 outline statistical approach to search phase transitions decision problems optimization other complexity classes impact of structure summary 26

27 some decision problems SAT random 3-SAT: clause/variables near 4.2 graph coloring random graph, 3-COL: edges/nodes near 2.2 number partitioning L integers, random in [0,..,2 L ] 27

28 observe regularity search cost varies greatly among problem instances of same size hard instances rare and concentrated hard instance 28

29 intuition few constraints: many solutions many constraints: no solutions bad choices pruned quickly intermediate number of constraints: few solutions bad choices pruned only after many steps EASY HARD 29

30 typical cost of search heuristics hard cases: near phase transitions fastest exponential growth of cost easy cases: underconstrained: many solutions overconstrained: rapid pruning large size behavior of many NP problem ensembles search methods (but not generate & test) typical cost small size underconstrained overconstrained 30 number of constraints

31 typical behavior of solubility for large problem ensembles fraction of soluble instances drops suddenly from near 1 to near 0 close to location of <S>=1 prob(soln) 1 0 few soluble problems but with very many solutions <S> exp. large # constraints 31 <S> =1 <S> exp. small

32 solubility transition and cost high costs associated with drop in solutions not the whole story: cost peak for problems with fixed number of solutions! 32

33 theory Why the association of high cost with transition, on average? simplified models of the behavior: exact: simple tree search trivial problem simple illustration of abrupt change approximate: graph coloring 33

34 tree search branching ratio b, depth d no solution e.g., prior choices are already inconsistent heuristic prunes with prob. p average branching ratio: z = b p expected cost for depth-1st backtrack 34

35 expected cost d=20 d=10 d=4 cost constant exponential z 35

36 expected cost average branching ratio: z = b p avg. cost from depth j: C j =1+z C j+1 avg. cost from root d z j = 1 zd +1 j =0 1 z smooth fn. of z for finite d has abrupt changes when d infinite z z < 1 d z = 1 z d+1 z 1 z > 1

37 hard graph coloring many consistent colorings for much of the graph few for the whole graph hence much backtracking 37

38 relate cost to structure color k of n nodes, with 3 colors 3 k possible colorings most with about equal use of each color random edge in subgraph with prob. edge in subgraph links same colors with (k/n) 2 prob. 1/3 38

39 partial colorings assuming independent constraints, expected number of partial colorings of k nodes is N = 3 k 1 1 k 3 k n 2 e 39

40 behavior few edges: monotonic increase, little backtrack more edges: hard to continue beyond maximum, much backtrack many edges: no solutions, pruning terminates search early 40

41 behavior: 100 nodes ln(# consistent colorings) e=75 e=200 e=300 # colored nodes edges prune large subgraphs more than small ones 41

42 independence assumption simplifies analysis gives qualitative behavior reasonable quantitative accuracy cf., mean-field physics theories 42

43 which ensemble? examples random graphs small-world graphs cf., physical systems all states consistent with (few) parameters are equally likely accuracy is an empirical question e.g., classical => quantum statistical mechanics 43

44 open questions math: prove thresholds in simple ensembles empirical: which ensembles are realistic? perhaps additional parameters required e.g., random graph vs. small worlds graph 44

45 Computational Complexity and Phase Transitions of Optimization Problems 45

46 Combinatorial Optimization: Example 1 The Traveling Salesman Problem (TSP) Given: a set of cities and inter-city distances Goal: a shortest tour visit each city once Asymmetric TSP (ATSP): distance(i,j) distance(j,i) Many real-world applications VLSI routing Scheduling A well-studied NP-hard problem TSP with distances 1 and 2 is still NP-hard! (Papadimitriou&Yannakakis 93) NP-hardness is a worst-case measure How does the average-case complexity behave? 46

47 Combinatorial Optimization: Example 2 Interleaving decision and execution: Decision making under limited information and restricted resources Collecting information with restricted computational resources Exploration by lookahead search Which path to take? decision Reasoning based on limited information Calculation Lookahead to collect information Executing the best decision Action This idea is the foundation of almost all game playing programs (Shannon 1950) 47

48 Combinatorial Optimization: Example 2 Lookahead search in sliding-tile puzzle: backup the minimal cost at a fixed depth f=g+h: g=depth of a node, h= Manhattan distance to the goal. In one step, g increases by one; h increases or decreases by one; and so f increases by 2 or remains the same. Anomaly of sliding-tile puzzles: For a given search depth, a large puzzle is easier to search; or for a given amount of computation, a large puzzle can be searched to a deeper level

49 Content Expected complexity of optimization search Abstract (statistical) tree model Complexity results Phase transitions of optimization search Relationship between phase transitions in decision and optimization problems Backbone phase transitions New search strategies by exploiting phase transitions 49

50 Abstract Model for Complexity Analysis Incremental random tree Node = states Edges = state transitions Branching factor b= # of children Tree depth d Edge costs (operator costs): i.id non-negative random variable (may take 0) Node costs (state quality): sum of edge costs from the root to the nodes Goal state 50

51 Complexity Analysis: A Quiz Given two random trees generated with the same edge cost distribution Finding the goal nodes (minimum-cost leaf nodes) using the same search algorithm (BFS, DFBnB, IDA*, ) Which tree is easier to search? Random tree 1: b=3, d=100 Random tree 1: b=2, d=100 51

52 Complexity Analysis: Anomaly random tree with edge costs uniformly chosen from {0,1,2,3,4} A tree with a larger branching factor is more difficult to search than one with a smaller branching factor!? 52

53 Complexity Analysis: Control Parameter Control parameter: b = the mean branching factor p = probability that an edge has cost 0 (edge costs can be discrete or continuous) bp = expected number of children having the same cost as the parent A local property determines a global behavior! C e1 e2 eb C+ e1 C+ e2 C+ eb 53

54 Complexity Analysis: The Main Results Optimal solution cost C* (as d ) bp<1 C*/d bp=1 C*/loglog d 1 bp>1 C* bounded by a constant Expected complexity (# of nodes generated as d ) algorithm bp<1 bp=1 bp>1 Best-first search Depth-first branch and bound ( d ) optimal ( d ) asymptotic optimal 2 ( d ) optimal ( d ) optimal 3 2 O( d ) O( d ) Node costs can be discrete or continuous 54

55 Complexity Analysis: History J. Pearl ( ) Analysis of A* (BFS) R. Karp & J. Pearl (1983) Complexity of BFS on incremental random binary tree with {0,1} edge costs C.J.H. McDiarmid (1990) Complexity of BFS on incremental random tree W. Zhang & R.E. Korf ( ) Complexity of linear-space search algorithms (DFBnB, IDA*, RBFS) on incremental random tree 55

56 Content Expected complexity of optimization search Phase transitions of optimization search Phase Transitions and Phase diagram Answers to anomaly Phase transitions in the TSP Relationship between phase transitions in decision and optimization problems Backbone phase transitions New search strategies by exploiting phase transitions 56

57 Phase Transition and Phase Diagram Control parameter bp = expected number of children having the same cost as the parent Complexity: exponential vs. polynomial (Zhang&Korf, 1995) 57

58 Search Anomaly of Sliding-tile Puzzle Revised Control parameter bp = expected # of same-cost children f=g+h g=depth of a node, which increases by one for each move h=manhattan distance, which increases or decreases by one for each move with probability ½ approximately (a tile moved toward or away from its goal position) Edge costs in the search tree take values 0 or 2; p=prob(cost zero) 1/2. b increases with puzzle size bp increases with puzzle size (Zhang&Korf, 1995) 58

59 Phase Transitions in the ATSP Question: Does the ATSP with distances from {1,2,,r} have the same average-case complexity as r increases? Anwser: No, due to phase transitions (Zhang&Korf, 1996) Assignment Problem (AP) is the cost function for the ATSP, which can be computed in O(n^3) time. 59

60 Content Expected complexity of optimization search Phase transitions of optimization search Relationship between phase transitions in decision and optimization problems Backbone phase transitions New search strategies by exploiting phase transitions 60

61 Phase Transitions Decision vs. Optimization Decision problem Finding an YES/NO answer Easy-hard-easy phase transitions Optimization problem Finding an optimal solution Easy-hardphase transitions 61

62 Phase Transitions Decision versus Optimization (A Closer Look) Different phase transition patterns Decision problem has easy-hard-easy transition pattern Optimization problem has easy-hard transition pattern Complexity discrepancy - Tighter constraints have different impact They make a decision problem easier They make an optimization problem more difficult Optimization is hard! (Zhang, 2001, see also Slaney&Walsh, 2001, later slides) 62

63 Decision vs. Optimization Quality/Complexity Tradeoff (Experiments) New, shifted phase transitions in MAX-3SAT (25 variables) (zhang, 2001) 63

64 Content Expected complexity of optimization search Phase transitions of optimization search Relationship between phase transitions in decision and optimization problems Backbone phase transitions New search strategies by exploiting phase transitions 64

65 Backbone: Behavior of Finding All Solutions Why finding an optimal solution is hard when a problem is overconstrained? (zhang, 2001) 65

66 Backbone: Behavior of Finding All Solutions Number of solutions of MAX-3SAT (25 variables): The rate that the number of solutions changes is different in overconstrained and underconstrained regions! 66

67 Backbone: Behavior of Finding All Solutions Number of clauses unsatisfied in and complexity of MAX-3SAT (25 variables): They all have different patterns in the overconstrained and underconstrained regions! 67

68 Backbone: Behavior of Finding All Solutions Backbone: The set of variables that have fixed values in all solutions There is a phase transition in backbone in MAX 3-SAT (25 variables) Backbone and satisfiability is roughly linearly correlated. 68

69 Content Expected complexity of optimization search Phase transitions of optimization search Relationship between phase transitions in decision and optimization problems Backbone phase transitions New search strategies by exploiting phase transitions Parametric transformations Structural transformations 69

70 Exploiting Phase Transitions What do we do with a difficult problem in the exponential region? 70

71 Exploiting Phase Transitions: Parametric Transformation Basic Idea Treat a difficult problem in the exponential region as if it is an easy one in the polynomial region (Zhang&Pemberton, 94, Pemberton&Zhang, 96) 71

72 Exploiting Phase Transitions: Parametric Transformation The Method Increasing the number of zero-cost edges in search space 72

73 Exploiting Phase Transitions: Parametric Transformation Improvement For a real-world problem, edge costs are not known in advance, but can be learned on the fly. If a solution found is not good enough, another transformation is applied with a smaller epsilon value iterative parametric transformation 73

74 Exploiting Phase Transitions: Parametric Transformation Application 74

75 Exploiting Phase Transitions: Structural Transformation Idea and Method Prune large cost edges in search space (Zhang, 1998, 2001) 75

76 Exploiting Phase Transitions: Structural Transformation Applications 76

77 Take Home Message (Summary) Finding optimal solution is hard than deciding solubility Phase transitions can be used to characterize complex problems and their behavior Understanding phase transitions can help to design and develop more efficient search algorithms 77

78 Beyond NP Other complexity classes Phase transitions in P, PSPACE, Structure Backbones, 2+p-SAT, small world topology, Heuristics Constrainedness knife-edge, minimize constrainedness,... 78

79 Before we begin A little history...

80 Where did this all start? At least as far back as 60s with Erdos & Renyi thresholds in random graphs Late 80s pioneering work by Karp, Purdom, Kirkpatrick, Huberman, Hogg Flood gates burst Cheeseman, Kanefsky & Taylor s IJCAI-91 paper In 91, I has just finished my PhD and was looking for some new research topics! 80

81 Other complexity classes Enough of the history, are phase transitions just in NP? Conjecture in Cheeseman et al paper that phase transitions distinguish P from NP.

82 Random 2-SAT 2-SAT is P linear time algorithm Random 2-SAT displays classic phase transition l/n < 1, almost surely SAT l/n > 1, almost surely UNSAT complexity peaks around l/n=1 82 x1 v x2, -x2 v x3, -x1 v x3,

83 Phase transitions in P 2-SAT l/n=1 Horn SAT transition not sharp Arc-consistency rapid transition in whether problem can be made AC peak in (median) checks 83

84 Phase transitions above NP PSpace QSAT (SAT of QBF) 84

85 Phase transitions above NP PSpace-complete QSAT (SAT of QBF) stochastic SAT modal SAT PP-complete polynomial-time probabilistic Turing machines counting problems #SAT(>= 2^n/2) [Bailey, Dalmau, Kolaitis IJCAI-2001] 85

86 Exact phase boundaries in NP Random 3-SAT is only known within bounds 3.26 < l/n < Recent result gives an exact NP phase boundary Are there any NP phase boundaries known exactly? 1-in-k SAT at l/n = 2/k(k-1) 2nd order transition (like 2- SAT and unlike 3-SAT) 1st order transitions not a characteristic of NP as has been conjectured 86

87 Structure Can we identify structure in (random) problems that makes problems hard? How do we model structural features found in real problems? How does such structure affect phase transition behaviour?

88 Backbone Variables which take fixed values in all solutions alias unit prime implicates Let fk be fraction of variables in backbone in random 3-SAT l/n < 4.3, fk vanishing (otherwise adding clause could make problem unsat) l/n > 4.3, fk > 0 discontinuity at phase boundary! 88

89 Backbone Search cost correlated with backbone size if fk non-zero, then can easily assign variable wrong value such mistakes costly if at top of search tree Backbones seen in other problems coloring, TSP, blocks world planning see [Slaney, Walsh IJCAI-2001] Can we make algorithms that identify and exploit the backbone structure of a problem? 89

90 2+p-SAT Morph between 2-SAT and 3- SAT fraction p of 3-clauses fraction (1-p) of 2-clauses 2-SAT is polynomial (linear) phase boundary at l/n =1 but no backbone discontinuity here! 2+p-SAT maps from P to NP p>0, 2+p-SAT is NP-complete 90

91 2+p-SAT phase transition 91

92 2+p-SAT phase transition l/n p 92

93 2+p-SAT phase transition Lower bound are the 2-clauses (on their own) UNSAT? n.b. 2-clauses are much more constraining than 3- clauses p <= 0.4 transition occurs at lower bound 3-clauses are not contributing! 93

94 2+p-SAT backbone fk becomes discontinuous for p>0.4 but NP-complete for p>0! 6HDUFKFRVWDJDLQVWQ search cost shifts from linear to exponential at p=0.4 similar behavior seen with local search algorithms 94

95 Structure How do we model structural features found in real problems? How does such structure affect phase transition behaviour?

96 The real world isn t random? Very true! Can we identify structural features common in real world problems? Consider graphs met in real world situations social networks electricity grids neural networks... 96

97 Real versus Random Real graphs tend to be sparse dense random graphs contains lots of (rare?) structure Real graphs tend to have short path lengths as do random graphs Real graphs tend to be clustered unlike sparse random graphs L, average path length C, clustering coefficient (fraction of neighbours connected to each other, cliqueness measure) mu, proximity ratio is C/L normalized by that of random graph of same size and density 97

98 Small world graphs Sparse, clustered, short path lengths Six degrees of separation Stanley Milgram s famous 1967 postal experiment recently revived by Watts & Strogatz shown applies to: actors database US electricity grid neural net of a worm... 98

99 An example 1994 exam timetable at Edinburgh University 59 nodes, 594 edges so relatively sparse but contains 10-clique less than 10^-10 chance in a random graph assuming same size and density clique totally dominated cost to solve problem 99

100 Small world graphs To construct an ensemble of small world graphs morph between regular graph (like ring lattice) and random graph prob p include edge from ring lattice, 1-p from random graph real problems often contain similar structure and stochastic components? 100

101 Small world graphs ring lattice is clustered but has long paths random edges provide shortcuts without destroying clustering 101

102 Small world graphs 102

103 Small world graphs 103

104 Colouring small world graphs 104

105 Small world graphs Other bad news disease spreads more rapidly in a small world Good news cooperation breaks out quicker in iterated Prisoner s dilemma 105

106 Other structural features It s not just small world graphs that have been studied Large degree graphs Barbasi et al s power-law model [Walsh, IJCAI 2001] Ultrametric graphs Hogg s tree based model Numbers following Benford s Law 1 is much more common than 9 as a leading digit! prob(leading digit=i) = log(1+1/i) such clustering, makes number partitioning much easier 106

107 Another structured problem Quasigroup completion problem (QCP) Can we complete a partial Latin square? " Regular structure found in real problems sports tournaments fibre optic routing See [Kautz et al, IJCAI 2001] 107

108 QCP phase transition 108

109 QCP phase transition 109

110 Heuristics What do we understand about problem hardness at the phase boundary? How can this help build better heuristics?

111 Looking inside search Constrainedness knife-edge problems are critically constrained between SAT and UNSAT Suggests branching heuristics also insight into branching mistakes 111

112 Inside SAT phase transition Random 3-SAT, l/n =4.3 Davis Putnam algorithm tree search through space of partial assignments unit propagation Clause to variable ratio l/n drops as we search => problems become less constrained Aside: can anyone explain simple scaling? 112 OQDJDLQVWGHSWKQ

113 Inside SAT phase transition But (average) clause length, k also drops => problems become more constrained Which factor, l/n or k wins? Look at kappa which includes both! Aside: why is there again such simple scaling? &ODXVHOHQJWKNDJDLQVWGHSWKQ 113

114 Constrainedness knife-edge NDSSDDJDLQVWGHSWKQ 114

115 Constrainedness knife-edge Seen in other problem domains number partitioning, Seen on real problems exam timetabling (alias graph colouring) Suggests branching heuristic get off the knife-edge as quickly as possible minimize or maximize-kappa heuristics must take into account branching rate, max-kappa often therefore not a good move! 115

116 Minimize constrainedness Many existing heuristics minimize-kappa or proxies for it For instance Karmarkar-Karp heuristic for number partitioning Brelaz heuristic for graph colouring Fail-first heuristic for constraint satisfaction Can be used to design new heuristics removing some of the black art 116

Where the hard problems are. Toby Walsh Cork Constraint Computation Centre

Where the hard problems are. Toby Walsh Cork Constraint Computation Centre Where the hard problems are Toby Walsh Cork Constraint Computation Centre http://4c.ucc.ie/~tw Where the hard problems are That s easy Passing your finals Finding a job Where the hard problems are That

More information

Phase Transitions of the Asymmetric Traveling Salesman*

Phase Transitions of the Asymmetric Traveling Salesman* Phase Transitions of the Asymmetric Traveling Salesman* Weixiong Zhang Department of Computer Science and Engineering Washington University in St. Louis St. Louis, MO 63130, USA Email: zhang@cse.wustl.edu

More information

The Scaling of Search Cost. Ian P. Gent and Ewan MacIntyre and Patrick Prosser and Toby Walsh.

The Scaling of Search Cost. Ian P. Gent and Ewan MacIntyre and Patrick Prosser and Toby Walsh. The Scaling of Search Cost Ian P. Gent and Ewan MacIntyre and Patrick Prosser and Toby Walsh Apes Research Group, Department of Computer Science, University of Strathclyde, Glasgow G XH, Scotland Email:

More information

Backbones in Optimization and Approximation

Backbones in Optimization and Approximation Backbones in Optimization and Approximation John Slaney Automated Reasoning Project Australian National University Canberra Australia jks@arp.anu.edu.au Abstract We study the impact of backbones in optimization

More information

Monte Carlo Methods; Combinatorial Search

Monte Carlo Methods; Combinatorial Search Monte Carlo Methods; Combinatorial Search Parallel and Distributed Computing Department of Computer Science and Engineering (DEI) Instituto Superior Técnico November 22, 2012 CPD (DEI / IST) Parallel and

More information

Applications of Statistical Mechanics to Combinatorial Search Problems. Tad Hogg

Applications of Statistical Mechanics to Combinatorial Search Problems. Tad Hogg Applications of Statistical Mechanics to Combinatorial Search Problems Tad Hogg Annual Reviews of Computational Physics vol. 2, pp. 357 406, World Scientific 1995 Abstract The statistical mechanics of

More information

Foundations of AI. 8. Satisfiability and Model Construction. Davis-Putnam, Phase Transitions, GSAT and GWSAT. Wolfram Burgard & Bernhard Nebel

Foundations of AI. 8. Satisfiability and Model Construction. Davis-Putnam, Phase Transitions, GSAT and GWSAT. Wolfram Burgard & Bernhard Nebel Foundations of AI 8. Satisfiability and Model Construction Davis-Putnam, Phase Transitions, GSAT and GWSAT Wolfram Burgard & Bernhard Nebel Contents Motivation Davis-Putnam Procedure Average complexity

More information

Combinatorial Search; Monte Carlo Methods

Combinatorial Search; Monte Carlo Methods Combinatorial Search; Monte Carlo Methods Parallel and Distributed Computing Department of Computer Science and Engineering (DEI) Instituto Superior Técnico May 02, 2016 CPD (DEI / IST) Parallel and Distributed

More information

M.E.J. Newman: Models of the Small World

M.E.J. Newman: Models of the Small World A Review Adaptive Informatics Research Centre Helsinki University of Technology November 7, 2007 Vocabulary N number of nodes of the graph l average distance between nodes D diameter of the graph d is

More information

Morphing: Combining Structure and Randomness

Morphing: Combining Structure and Randomness From: AAAI-99 Proceedings. Copyright 1999, AAAI (www.aaai.org). All rights reserved. Morphing: Combining Structure and Randomness Ian P. Gent Department of Computer Science University of Strathclyde Glasgow

More information

Boolean Functions (Formulas) and Propositional Logic

Boolean Functions (Formulas) and Propositional Logic EECS 219C: Computer-Aided Verification Boolean Satisfiability Solving Part I: Basics Sanjit A. Seshia EECS, UC Berkeley Boolean Functions (Formulas) and Propositional Logic Variables: x 1, x 2, x 3,, x

More information

- Modeling, Phase Transitions, Constraint and Complexity Analyses

- Modeling, Phase Transitions, Constraint and Complexity Analyses Flexible Methods for Multi-agent distributed resource Allocation by Exploiting Phase Transitions - Modeling, Phase Transitions, Constraint and Complexity Analyses Weixiong Zhang (PI) Washington University

More information

Phase Transitions and Backbones of the Asymmetric Traveling Salesman Problem

Phase Transitions and Backbones of the Asymmetric Traveling Salesman Problem Journal of Artificial Intelligence Research 2 (24) 47-497 Submitted /3; published 4/4 Phase Transitions and Backbones of the Asymmetric Traveling Salesman Problem Weixiong Zhang Department of Computer

More information

Some graph theory applications. communications networks

Some graph theory applications. communications networks Some graph theory applications to communications networks Keith Briggs Keith.Briggs@bt.com http://keithbriggs.info Computational Systems Biology Group, Sheffield - 2006 Nov 02 1100 graph problems Sheffield

More information

Crossword Puzzles as a Constraint Problem

Crossword Puzzles as a Constraint Problem Crossword Puzzles as a Constraint Problem Anbulagan and Adi Botea NICTA and Australian National University, Canberra, Australia {anbulagan,adi.botea}@nicta.com.au Abstract. We present new results in crossword

More information

Am Average-Case with Applications: Summary of

Am Average-Case with Applications: Summary of From: AAAI-92 Proceedings. Copyright 1992, AAAI (www.aaai.org). All rights reserved. Am Average-Case with Applications: Summary of Weixiong Zhang and Richard E. Korf * Computer Science Department University

More information

Andrew Davenport and Edward Tsang. fdaveat,edwardgessex.ac.uk. mostly soluble problems and regions of overconstrained, mostly insoluble problems as

Andrew Davenport and Edward Tsang. fdaveat,edwardgessex.ac.uk. mostly soluble problems and regions of overconstrained, mostly insoluble problems as An empirical investigation into the exceptionally hard problems Andrew Davenport and Edward Tsang Department of Computer Science, University of Essex, Colchester, Essex CO SQ, United Kingdom. fdaveat,edwardgessex.ac.uk

More information

The Scaling of Search Cost*

The Scaling of Search Cost* From: AAAI-97 Proceedings. Copyright 997, AAAI (www.aaai.org). All rights reserved. The Scaling of Search Cost* Ian P. Gent and Ewan Machtyre and Patrick Presser and Toby Walsh APES Research Group, Department

More information

Search in a Small World

Search in a Small World Search in a Small World Toby Walsh Department of omputer Science University of Strathclyde Glasgow G1 1X Scotl Abstract In a graph with a "small world" topology, nodes are highly clustered yet the path

More information

EECS 219C: Computer-Aided Verification Boolean Satisfiability Solving. Sanjit A. Seshia EECS, UC Berkeley

EECS 219C: Computer-Aided Verification Boolean Satisfiability Solving. Sanjit A. Seshia EECS, UC Berkeley EECS 219C: Computer-Aided Verification Boolean Satisfiability Solving Sanjit A. Seshia EECS, UC Berkeley Project Proposals Due Friday, February 13 on bcourses Will discuss project topics on Monday Instructions

More information

Example: Map coloring

Example: Map coloring Today s s lecture Local Search Lecture 7: Search - 6 Heuristic Repair CSP and 3-SAT Solving CSPs using Systematic Search. Victor Lesser CMPSCI 683 Fall 2004 The relationship between problem structure and

More information

Unit 8: Coping with NP-Completeness. Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems. Y.-W.

Unit 8: Coping with NP-Completeness. Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems. Y.-W. : Coping with NP-Completeness Course contents: Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems Reading: Chapter 34 Chapter 35.1, 35.2 Y.-W. Chang 1 Complexity

More information

CSE 417 Branch & Bound (pt 4) Branch & Bound

CSE 417 Branch & Bound (pt 4) Branch & Bound CSE 417 Branch & Bound (pt 4) Branch & Bound Reminders > HW8 due today > HW9 will be posted tomorrow start early program will be slow, so debugging will be slow... Review of previous lectures > Complexity

More information

Math 443/543 Graph Theory Notes 10: Small world phenomenon and decentralized search

Math 443/543 Graph Theory Notes 10: Small world phenomenon and decentralized search Math 443/543 Graph Theory Notes 0: Small world phenomenon and decentralized search David Glickenstein November 0, 008 Small world phenomenon The small world phenomenon is the principle that all people

More information

NP-Hardness. We start by defining types of problem, and then move on to defining the polynomial-time reductions.

NP-Hardness. We start by defining types of problem, and then move on to defining the polynomial-time reductions. CS 787: Advanced Algorithms NP-Hardness Instructor: Dieter van Melkebeek We review the concept of polynomial-time reductions, define various classes of problems including NP-complete, and show that 3-SAT

More information

Copyright 2000, Kevin Wayne 1

Copyright 2000, Kevin Wayne 1 Guessing Game: NP-Complete? 1. LONGEST-PATH: Given a graph G = (V, E), does there exists a simple path of length at least k edges? YES. SHORTEST-PATH: Given a graph G = (V, E), does there exists a simple

More information

Search and Optimization

Search and Optimization Search and Optimization Search, Optimization and Game-Playing The goal is to find one or more optimal or sub-optimal solutions in a given search space. We can either be interested in finding any one solution

More information

Heuristic (Informed) Search

Heuristic (Informed) Search Heuristic (Informed) Search (Where we try to choose smartly) R&N: Chap., Sect..1 3 1 Search Algorithm #2 SEARCH#2 1. INSERT(initial-node,Open-List) 2. Repeat: a. If empty(open-list) then return failure

More information

Introduction to Computer Science and Programming for Astronomers

Introduction to Computer Science and Programming for Astronomers Introduction to Computer Science and Programming for Astronomers Lecture 9. István Szapudi Institute for Astronomy University of Hawaii March 21, 2018 Outline Reminder 1 Reminder 2 3 Reminder We have demonstrated

More information

Loopy Belief Propagation

Loopy Belief Propagation Loopy Belief Propagation Research Exam Kristin Branson September 29, 2003 Loopy Belief Propagation p.1/73 Problem Formalization Reasoning about any real-world problem requires assumptions about the structure

More information

Constraint Satisfaction Problems

Constraint Satisfaction Problems Constraint Satisfaction Problems Tuomas Sandholm Carnegie Mellon University Computer Science Department [Read Chapter 6 of Russell & Norvig] Constraint satisfaction problems (CSPs) Standard search problem:

More information

Practice Final Exam 1

Practice Final Exam 1 Algorithm esign Techniques Practice Final xam Instructions. The exam is hours long and contains 6 questions. Write your answers clearly. You may quote any result/theorem seen in the lectures or in the

More information

EECS 219C: Formal Methods Boolean Satisfiability Solving. Sanjit A. Seshia EECS, UC Berkeley

EECS 219C: Formal Methods Boolean Satisfiability Solving. Sanjit A. Seshia EECS, UC Berkeley EECS 219C: Formal Methods Boolean Satisfiability Solving Sanjit A. Seshia EECS, UC Berkeley The Boolean Satisfiability Problem (SAT) Given: A Boolean formula F(x 1, x 2, x 3,, x n ) Can F evaluate to 1

More information

Critical Phenomena in Complex Networks

Critical Phenomena in Complex Networks Critical Phenomena in Complex Networks Term essay for Physics 563: Phase Transitions and the Renormalization Group University of Illinois at Urbana-Champaign Vikyath Deviprasad Rao 11 May 2012 Abstract

More information

Lesson 3. Prof. Enza Messina

Lesson 3. Prof. Enza Messina Lesson 3 Prof. Enza Messina Clustering techniques are generally classified into these classes: PARTITIONING ALGORITHMS Directly divides data points into some prespecified number of clusters without a hierarchical

More information

CS224W: Social and Information Network Analysis Jure Leskovec, Stanford University

CS224W: Social and Information Network Analysis Jure Leskovec, Stanford University CS224W: Social and Information Network Analysis Jure Leskovec, Stanford University http://cs224w.stanford.edu 10/4/2011 Jure Leskovec, Stanford CS224W: Social and Information Network Analysis, http://cs224w.stanford.edu

More information

A.I.: Informed Search Algorithms. Chapter III: Part Deux

A.I.: Informed Search Algorithms. Chapter III: Part Deux A.I.: Informed Search Algorithms Chapter III: Part Deux Best-first search Greedy best-first search A * search Heuristics Outline Overview Informed Search: uses problem-specific knowledge. General approach:

More information

Hardness of Approximation for the TSP. Michael Lampis LAMSADE Université Paris Dauphine

Hardness of Approximation for the TSP. Michael Lampis LAMSADE Université Paris Dauphine Hardness of Approximation for the TSP Michael Lampis LAMSADE Université Paris Dauphine Sep 2, 2015 Overview Hardness of Approximation What is it? How to do it? (Easy) Examples The PCP Theorem What is it?

More information

Informed search algorithms. (Based on slides by Oren Etzioni, Stuart Russell)

Informed search algorithms. (Based on slides by Oren Etzioni, Stuart Russell) Informed search algorithms (Based on slides by Oren Etzioni, Stuart Russell) The problem # Unique board configurations in search space 8-puzzle 9! = 362880 15-puzzle 16! = 20922789888000 10 13 24-puzzle

More information

Chronological Backtracking Conflict Directed Backjumping Dynamic Backtracking Branching Strategies Branching Heuristics Heavy Tail Behavior

Chronological Backtracking Conflict Directed Backjumping Dynamic Backtracking Branching Strategies Branching Heuristics Heavy Tail Behavior PART III: Search Outline Depth-first Search Chronological Backtracking Conflict Directed Backjumping Dynamic Backtracking Branching Strategies Branching Heuristics Heavy Tail Behavior Best-First Search

More information

Integrating Probabilistic Reasoning with Constraint Satisfaction

Integrating Probabilistic Reasoning with Constraint Satisfaction Integrating Probabilistic Reasoning with Constraint Satisfaction IJCAI Tutorial #7 Instructor: Eric I. Hsu July 17, 2011 http://www.cs.toronto.edu/~eihsu/tutorial7 Getting Started Discursive Remarks. Organizational

More information

3 SOLVING PROBLEMS BY SEARCHING

3 SOLVING PROBLEMS BY SEARCHING 48 3 SOLVING PROBLEMS BY SEARCHING A goal-based agent aims at solving problems by performing actions that lead to desirable states Let us first consider the uninformed situation in which the agent is not

More information

N-Queens problem. Administrative. Local Search

N-Queens problem. Administrative. Local Search Local Search CS151 David Kauchak Fall 2010 http://www.youtube.com/watch?v=4pcl6-mjrnk Some material borrowed from: Sara Owsley Sood and others Administrative N-Queens problem Assign 1 grading Assign 2

More information

0th iteration 1st iteration 2nd iteration

0th iteration 1st iteration 2nd iteration Depth-bounded Discrepancy Search Toby Walsh APES Group, Department of Computer Science University of Strathclyde, Glasgow G1 1XL. Scotland tw@cs.strath.ac.uk Abstract Many search trees are impractically

More information

Impact of Clustering on Epidemics in Random Networks

Impact of Clustering on Epidemics in Random Networks Impact of Clustering on Epidemics in Random Networks Joint work with Marc Lelarge INRIA-ENS 8 March 2012 Coupechoux - Lelarge (INRIA-ENS) Epidemics in Random Networks 8 March 2012 1 / 19 Outline 1 Introduction

More information

Constraint Satisfaction Problems

Constraint Satisfaction Problems Constraint Satisfaction Problems CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2013 Soleymani Course material: Artificial Intelligence: A Modern Approach, 3 rd Edition,

More information

Exact Algorithms Lecture 7: FPT Hardness and the ETH

Exact Algorithms Lecture 7: FPT Hardness and the ETH Exact Algorithms Lecture 7: FPT Hardness and the ETH February 12, 2016 Lecturer: Michael Lampis 1 Reminder: FPT algorithms Definition 1. A parameterized problem is a function from (χ, k) {0, 1} N to {0,

More information

Small-world networks

Small-world networks Small-world networks c A. J. Ganesh, University of Bristol, 2015 Popular folklore asserts that any two people in the world are linked through a chain of no more than six mutual acquaintances, as encapsulated

More information

Parameterized Complexity - an Overview

Parameterized Complexity - an Overview Parameterized Complexity - an Overview 1 / 30 Parameterized Complexity - an Overview Ue Flarup 1 flarup@imada.sdu.dk 1 Department of Mathematics and Computer Science University of Southern Denmark, Odense,

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Search Marc Toussaint University of Stuttgart Winter 2015/16 (slides based on Stuart Russell s AI course) Outline Problem formulation & examples Basic search algorithms 2/100 Example:

More information

Coloring Random Graphs

Coloring Random Graphs Coloring Random Graphs A Short and Biased Survey Lefteris M. Kirousis RA Computer Technology Institute and Department of Computer Engineering and Informatics, University of Patras 5th Athens Colloquium

More information

Constraint Satisfaction Problems

Constraint Satisfaction Problems Last update: February 25, 2010 Constraint Satisfaction Problems CMSC 421, Chapter 5 CMSC 421, Chapter 5 1 Outline CSP examples Backtracking search for CSPs Problem structure and problem decomposition Local

More information

Administrative. Local Search!

Administrative. Local Search! Administrative Local Search! CS311 David Kauchak Spring 2013 Assignment 2 due Tuesday before class Written problems 2 posted Class participation http://www.youtube.com/watch? v=irhfvdphfzq&list=uucdoqrpqlqkvctckzqa

More information

Computational problems. Lecture 2: Combinatorial search and optimisation problems. Computational problems. Examples. Example

Computational problems. Lecture 2: Combinatorial search and optimisation problems. Computational problems. Examples. Example Lecture 2: Combinatorial search and optimisation problems Different types of computational problems Examples of computational problems Relationships between problems Computational properties of different

More information

Solving Traveling Salesman Problem Using Parallel Genetic. Algorithm and Simulated Annealing

Solving Traveling Salesman Problem Using Parallel Genetic. Algorithm and Simulated Annealing Solving Traveling Salesman Problem Using Parallel Genetic Algorithm and Simulated Annealing Fan Yang May 18, 2010 Abstract The traveling salesman problem (TSP) is to find a tour of a given number of cities

More information

Monte Carlo Tree Search PAH 2015

Monte Carlo Tree Search PAH 2015 Monte Carlo Tree Search PAH 2015 MCTS animation and RAVE slides by Michèle Sebag and Romaric Gaudel Markov Decision Processes (MDPs) main formal model Π = S, A, D, T, R states finite set of states of the

More information

Today s s lecture. Lecture 3: Search - 2. Problem Solving by Search. Agent vs. Conventional AI View. Victor R. Lesser. CMPSCI 683 Fall 2004

Today s s lecture. Lecture 3: Search - 2. Problem Solving by Search. Agent vs. Conventional AI View. Victor R. Lesser. CMPSCI 683 Fall 2004 Today s s lecture Search and Agents Material at the end of last lecture Lecture 3: Search - 2 Victor R. Lesser CMPSCI 683 Fall 2004 Continuation of Simple Search The use of background knowledge to accelerate

More information

Satisfiability. Michail G. Lagoudakis. Department of Computer Science Duke University Durham, NC SATISFIABILITY

Satisfiability. Michail G. Lagoudakis. Department of Computer Science Duke University Durham, NC SATISFIABILITY Satisfiability Michail G. Lagoudakis Department of Computer Science Duke University Durham, NC 27708 COMPSCI 271 - Spring 2001 DUKE UNIVERSITY Page 1 Why SAT? Historical Reasons The first NP-COMPLETE problem

More information

Optimal tour along pubs in the UK

Optimal tour along pubs in the UK 1 From Facebook Optimal tour along 24727 pubs in the UK Road distance (by google maps) see also http://www.math.uwaterloo.ca/tsp/pubs/index.html (part of TSP homepage http://www.math.uwaterloo.ca/tsp/

More information

Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost

Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R

More information

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2. Problem Solving Agents. Problem Solving Agents: Assumptions

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2. Problem Solving Agents. Problem Solving Agents: Assumptions Class Overview COMP 3501 / COMP 4704-4 Lecture 2 Prof. JGH 318 Problem Solving Agents Problem Solving Agents: Assumptions Requires a goal Assume world is: Requires actions Observable What actions? Discrete

More information

Properties of Biological Networks

Properties of Biological Networks Properties of Biological Networks presented by: Ola Hamud June 12, 2013 Supervisor: Prof. Ron Pinter Based on: NETWORK BIOLOGY: UNDERSTANDING THE CELL S FUNCTIONAL ORGANIZATION By Albert-László Barabási

More information

AI Programming CS S-08 Local Search / Genetic Algorithms

AI Programming CS S-08 Local Search / Genetic Algorithms AI Programming CS662-2013S-08 Local Search / Genetic Algorithms David Galles Department of Computer Science University of San Francisco 08-0: Overview Local Search Hill-Climbing Search Simulated Annealing

More information

CSCI5070 Advanced Topics in Social Computing

CSCI5070 Advanced Topics in Social Computing CSCI5070 Advanced Topics in Social Computing Irwin King The Chinese University of Hong Kong king@cse.cuhk.edu.hk!! 2012 All Rights Reserved. Outline Graphs Origins Definition Spectral Properties Type of

More information

CS261: A Second Course in Algorithms Lecture #16: The Traveling Salesman Problem

CS261: A Second Course in Algorithms Lecture #16: The Traveling Salesman Problem CS61: A Second Course in Algorithms Lecture #16: The Traveling Salesman Problem Tim Roughgarden February 5, 016 1 The Traveling Salesman Problem (TSP) In this lecture we study a famous computational problem,

More information

ARTIFICIAL INTELLIGENCE (CSCU9YE ) LECTURE 5: EVOLUTIONARY ALGORITHMS

ARTIFICIAL INTELLIGENCE (CSCU9YE ) LECTURE 5: EVOLUTIONARY ALGORITHMS ARTIFICIAL INTELLIGENCE (CSCU9YE ) LECTURE 5: EVOLUTIONARY ALGORITHMS Gabriela Ochoa http://www.cs.stir.ac.uk/~goc/ OUTLINE Optimisation problems Optimisation & search Two Examples The knapsack problem

More information

Chapter 9 Graph Algorithms

Chapter 9 Graph Algorithms Introduction graph theory useful in practice represent many real-life problems can be if not careful with data structures Chapter 9 Graph s 2 Definitions Definitions an undirected graph is a finite set

More information

Chapter 3: Solving Problems by Searching

Chapter 3: Solving Problems by Searching Chapter 3: Solving Problems by Searching Prepared by: Dr. Ziad Kobti 1 Problem-Solving Agent Reflex agent -> base its actions on a direct mapping from states to actions. Cannot operate well in large environments

More information

Basic Search Algorithms

Basic Search Algorithms Basic Search Algorithms Tsan-sheng Hsu tshsu@iis.sinica.edu.tw http://www.iis.sinica.edu.tw/~tshsu 1 Abstract The complexities of various search algorithms are considered in terms of time, space, and cost

More information

Introduction to ANSYS DesignXplorer

Introduction to ANSYS DesignXplorer Lecture 4 14. 5 Release Introduction to ANSYS DesignXplorer 1 2013 ANSYS, Inc. September 27, 2013 s are functions of different nature where the output parameters are described in terms of the input parameters

More information

Informed Search A* Algorithm

Informed Search A* Algorithm Informed Search A* Algorithm CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2018 Soleymani Artificial Intelligence: A Modern Approach, Chapter 3 Most slides have

More information

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld ) Local Search and Optimization Chapter 4 Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld ) 1 2 Outline Local search techniques and optimization Hill-climbing

More information

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld ) Local Search and Optimization Chapter 4 Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld ) 1 2 Outline Local search techniques and optimization Hill-climbing

More information

Constraint Satisfaction Problems (CSPs) Introduction and Backtracking Search

Constraint Satisfaction Problems (CSPs) Introduction and Backtracking Search Constraint Satisfaction Problems (CSPs) Introduction and Backtracking Search This lecture topic (two lectures) Chapter 6.1 6.4, except 6.3.3 Next lecture topic (two lectures) Chapter 7.1 7.5 (Please read

More information

(Refer Slide Time: 1:27)

(Refer Slide Time: 1:27) Data Structures and Algorithms Dr. Naveen Garg Department of Computer Science and Engineering Indian Institute of Technology, Delhi Lecture 1 Introduction to Data Structures and Algorithms Welcome to data

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Information Systems and Machine Learning Lab (ISMLL) Tomáš Horváth 10 rd November, 2010 Informed Search and Exploration Example (again) Informed strategy we use a problem-specific

More information

Reference Sheet for CO142.2 Discrete Mathematics II

Reference Sheet for CO142.2 Discrete Mathematics II Reference Sheet for CO14. Discrete Mathematics II Spring 017 1 Graphs Defintions 1. Graph: set of N nodes and A arcs such that each a A is associated with an unordered pair of nodes.. Simple graph: no

More information

General Methods and Search Algorithms

General Methods and Search Algorithms DM811 HEURISTICS AND LOCAL SEARCH ALGORITHMS FOR COMBINATORIAL OPTIMZATION Lecture 3 General Methods and Search Algorithms Marco Chiarandini 2 Methods and Algorithms A Method is a general framework for

More information

Search: Advanced Topics and Conclusion

Search: Advanced Topics and Conclusion Search: Advanced Topics and Conclusion CPSC 322 Lecture 8 January 20, 2006 Textbook 2.6 Search: Advanced Topics and Conclusion CPSC 322 Lecture 8, Slide 1 Lecture Overview Recap Branch & Bound A Tricks

More information

Heuristic Search. CPSC 470/570 Artificial Intelligence Brian Scassellati

Heuristic Search. CPSC 470/570 Artificial Intelligence Brian Scassellati Heuristic Search CPSC 470/570 Artificial Intelligence Brian Scassellati Goal Formulation 200 Denver 300 200 200 Chicago 150 200 Boston 50 1200 210 75 320 255 Key West New York Well-defined function that

More information

The Algorithm Design Manual

The Algorithm Design Manual Steven S. Skiena The Algorithm Design Manual With 72 Figures Includes CD-ROM THE ELECTRONIC LIBRARY OF SCIENCE Contents Preface vii I TECHNIQUES 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 2 2.1 2.2 2.3

More information

A Document as a Small World. selecting the term which co-occurs in multiple clusters. domains, from earthquake sequences [6] to register

A Document as a Small World. selecting the term which co-occurs in multiple clusters. domains, from earthquake sequences [6] to register A Document as a Small World Yutaka Matsuo y Yukio Ohsawa z Mitsuru Ishizuka y y Graduate School of Engineering University oftokyo Tokyo 113-8656, Japan z Graduate School of Systems Management University

More information

Search: Advanced Topics and Conclusion

Search: Advanced Topics and Conclusion Search: Advanced Topics and Conclusion CPSC 322 Lecture 8 January 24, 2007 Textbook 2.6 Search: Advanced Topics and Conclusion CPSC 322 Lecture 8, Slide 1 Lecture Overview 1 Recap 2 Branch & Bound 3 A

More information

Chapter 9 Graph Algorithms

Chapter 9 Graph Algorithms Chapter 9 Graph Algorithms 2 Introduction graph theory useful in practice represent many real-life problems can be if not careful with data structures 3 Definitions an undirected graph G = (V, E) is a

More information

Fixed Parameter Algorithms

Fixed Parameter Algorithms Fixed Parameter Algorithms Dániel Marx Tel Aviv University, Israel Open lectures for PhD students in computer science January 9, 2010, Warsaw, Poland Fixed Parameter Algorithms p.1/41 Parameterized complexity

More information

CSE 473: Artificial Intelligence

CSE 473: Artificial Intelligence CSE 473: Artificial Intelligence Constraint Satisfaction Luke Zettlemoyer Multiple slides adapted from Dan Klein, Stuart Russell or Andrew Moore What is Search For? Models of the world: single agent, deterministic

More information

Department of Computer Applications. MCA 312: Design and Analysis of Algorithms. [Part I : Medium Answer Type Questions] UNIT I

Department of Computer Applications. MCA 312: Design and Analysis of Algorithms. [Part I : Medium Answer Type Questions] UNIT I MCA 312: Design and Analysis of Algorithms [Part I : Medium Answer Type Questions] UNIT I 1) What is an Algorithm? What is the need to study Algorithms? 2) Define: a) Time Efficiency b) Space Efficiency

More information

CS 188: Artificial Intelligence. Recap Search I

CS 188: Artificial Intelligence. Recap Search I CS 188: Artificial Intelligence Review of Search, CSPs, Games DISCLAIMER: It is insufficient to simply study these slides, they are merely meant as a quick refresher of the high-level ideas covered. You

More information

Informed search algorithms. Chapter 4

Informed search algorithms. Chapter 4 Informed search algorithms Chapter 4 Outline Best-first search Greedy best-first search A * search Heuristics Memory Bounded A* Search Best-first search Idea: use an evaluation function f(n) for each node

More information

Constructing a G(N, p) Network

Constructing a G(N, p) Network Random Graph Theory Dr. Natarajan Meghanathan Professor Department of Computer Science Jackson State University, Jackson, MS E-mail: natarajan.meghanathan@jsums.edu Introduction At first inspection, most

More information

A Hybrid Recursive Multi-Way Number Partitioning Algorithm

A Hybrid Recursive Multi-Way Number Partitioning Algorithm Proceedings of the Twenty-Second International Joint Conference on Artificial Intelligence A Hybrid Recursive Multi-Way Number Partitioning Algorithm Richard E. Korf Computer Science Department University

More information

Chapter 11 Search Algorithms for Discrete Optimization Problems

Chapter 11 Search Algorithms for Discrete Optimization Problems Chapter Search Algorithms for Discrete Optimization Problems (Selected slides) A. Grama, A. Gupta, G. Karypis, and V. Kumar To accompany the text Introduction to Parallel Computing, Addison Wesley, 2003.

More information

Satisfiability (SAT) Applications. Extensions/Related Problems. An Aside: Example Proof by Machine. Annual Competitions 12/3/2008

Satisfiability (SAT) Applications. Extensions/Related Problems. An Aside: Example Proof by Machine. Annual Competitions 12/3/2008 15 53:Algorithms in the Real World Satisfiability Solvers (Lectures 1 & 2) 1 Satisfiability (SAT) The original NP Complete Problem. Input: Variables V = {x 1, x 2,, x n }, Boolean Formula Φ (typically

More information

Examples of P vs NP: More Problems

Examples of P vs NP: More Problems Examples of P vs NP: More Problems COMP1600 / COMP6260 Dirk Pattinson Australian National University Semester 2, 2017 Catch Up / Drop in Lab When Fridays, 15.00-17.00 Where N335, CSIT Building (bldg 108)

More information

Constraint Satisfaction Problems. Chapter 6

Constraint Satisfaction Problems. Chapter 6 Constraint Satisfaction Problems Chapter 6 Office hours Office hours for Assignment 1 (ASB9810 in CSIL): Sep 29th(Fri) 12:00 to 13:30 Oct 3rd(Tue) 11:30 to 13:00 Late homework policy You get four late

More information

DIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 23 January, 2018

DIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 23 January, 2018 DIT411/TIN175, Artificial Intelligence Chapters 3 4: More search algorithms CHAPTERS 3 4: MORE SEARCH ALGORITHMS DIT411/TIN175, Artificial Intelligence Peter Ljunglöf 23 January, 2018 1 TABLE OF CONTENTS

More information

Seach algorithms The travelling salesman problem The Towers of Hanoi Playing games. Comp24412: Symbolic AI. Lecture 4: Search. Ian Pratt-Hartmann

Seach algorithms The travelling salesman problem The Towers of Hanoi Playing games. Comp24412: Symbolic AI. Lecture 4: Search. Ian Pratt-Hartmann Comp24412: Symbolic AI Lecture 4: Search Ian Pratt-Hartmann Room KB2.38: email: ipratt@cs.man.ac.uk 2016 17 Outline Seach algorithms The travelling salesman problem The Towers of Hanoi Playing games Typical

More information

CIS 192: Artificial Intelligence. Search and Constraint Satisfaction Alex Frias Nov. 30 th

CIS 192: Artificial Intelligence. Search and Constraint Satisfaction Alex Frias Nov. 30 th CIS 192: Artificial Intelligence Search and Constraint Satisfaction Alex Frias Nov. 30 th What is AI? Designing computer programs to complete tasks that are thought to require intelligence 4 categories

More information

Module 6 NP-Complete Problems and Heuristics

Module 6 NP-Complete Problems and Heuristics Module 6 NP-Complete Problems and Heuristics Dr. Natarajan Meghanathan Professor of Computer Science Jackson State University Jackson, MS 39217 E-mail: natarajan.meghanathan@jsums.edu P, NP-Problems Class

More information

1 Random Graph Models for Networks

1 Random Graph Models for Networks Lecture Notes: Social Networks: Models, Algorithms, and Applications Lecture : Jan 6, 0 Scribes: Geoffrey Fairchild and Jason Fries Random Graph Models for Networks. Graph Modeling A random graph is a

More information