COSC 4426 Topics in Computer Science II Discrete Optimization Good results with problems that are too big for people or computers to solve completely

Slides:



Advertisements
Similar presentations
Informed search algorithms
Advertisements

CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) Oct, 5, 2012.
Constraint Satisfaction Problems
Local Search Algorithms Chapter 4. Outline Hill-climbing search Simulated annealing search Local beam search Genetic algorithms Ant Colony Optimization.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
Neural and Evolutionary Computing - Lecture 4 1 Random Search Algorithms. Simulated Annealing Motivation Simple Random Search Algorithms Simulated Annealing.
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
Lecture 1: Introduction to the Course of Optimization 主講人 : 虞台文.
CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) February, 3, 2010.
Math 308 Discrete Mathematics Discrete Mathematics deals with “Separated” or discrete sets of objects (rather than continuous sets) Processes with a sequence.
1 Chapter 5 Advanced Search. 2 Chapter 5 Contents l Constraint satisfaction problems l Heuristic repair l The eight queens problem l Combinatorial optimization.
CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) February, 4, 2009.
Math443/543 Mathematical Modeling and Optimization
Imagine that I am in a good mood Imagine that I am going to give you some money ! In particular I am going to give you z dollars, after you tell me the.
MAE 552 – Heuristic Optimization Lecture 5 February 1, 2002.
Ch. 11: Optimization and Search Stephen Marsland, Machine Learning: An Algorithmic Perspective. CRC 2009 some slides from Stephen Marsland, some images.
Pawel Drozdowski – November Introduction GA basics Solving simple problem GA more advanced topics Solving complex problem Question and Answers.
Copyright R. Weber Search in Problem Solving Search in Problem Solving INFO 629 Dr. R. Weber.
Applications of Evolutionary Algorithms Michael J. Watts
Search Methods An Annotated Overview Edward Tsang.
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
GRASP: A Sampling Meta-Heuristic
Algorithms and their Applications CS2004 ( ) Dr Stasha Lauria 11.1 Applications, Introduction and Parameter Optimisation.
1 Chapter 5 Advanced Search. 2 Chapter 5 Contents l Constraint satisfaction problems l Heuristic repair l The eight queens problem l Combinatorial optimization.
Escaping Local Optima. Where are we? Optimization methods Complete solutions Partial solutions Exhaustive search Hill climbing Random restart General.
Object Oriented Programming Assignment Introduction Dr. Mike Spann
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Informed search algorithms Chapter 4. Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most.
CPSC 5307 Search and Discrete Optimization Good results with problems that are too big for people or computers to solve completely
Local Search Pat Riddle 2012 Semester 2 Patricia J Riddle Adapted from slides by Stuart Russell,
Hard problems in computer science Prof. Noah Snavely CS1114
Hard Problems Some problems are hard to solve.  No polynomial time algorithm is known.  E.g., NP-hard problems such as machine scheduling, bin packing,
Clase 3: Basic Concepts of Search. Problems: SAT, TSP. Tarea 1 Computación Evolutiva Gabriela Ochoa
Optimization Problems
Iterative Improvement Search Including Hill Climbing, Simulated Annealing, WALKsat and more....
Ramakrishna Lecture#2 CAD for VLSI Ramakrishna
Lecture 7 Jianjun Hu Department of Computer Science and Engineering University of South Carolina CSCE350 Algorithms and Data Structure.
Chapter 5. Advanced Search Fall 2011 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Chapter 3.5 and 3.6 Heuristic Search Continued. Review:Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
Genetic Algorithms and TSP Thomas Jefferson Computer Research Project by Karl Leswing.
CPSC 420 – Artificial Intelligence Texas A & M University Lecture 5 Lecturer: Laurie webster II, M.S.S.E., M.S.E.e., M.S.BME, Ph.D., P.E.
Exhaustive search Exhaustive search is simply a brute- force approach to combinatorial problems. It suggests generating each and every element of the problem.
Artificial Intelligence Chapter 11 Alternative Search Formulations and Applications.
Constraints Satisfaction Edmondo Trentin, DIISM. Constraint Satisfaction Problems: Local Search In many optimization problems, the path to the goal is.
Local search algorithms In many optimization problems, the path to the goal is irrelevant; the goal state itself is the solution State space = set of "complete"
1 Intro to AI Local Search. 2 Intro to AI Local search and optimization Local search: –use single current state & move to neighboring states Idea: –start.
Hard Problems Some problems are hard to solve.  No polynomial time algorithm is known.  E.g., NP-hard problems such as machine scheduling, bin packing,
Alternative Search Formulations and Applications
Optimization Problems
School of Computer Science & Engineering
Hard Problems Some problems are hard to solve.
SAT problem SAT – Boolean satisfiability problem
Hard Problems Introduction to NP
Local Search Algorithms
Principles of Computing – UFCFA Lecture-1
Computer Science cpsc322, Lecture 14
Biointelligence Lab School of Computer Sci. & Eng.
Optimization Problems
Heuristic Algorithms via VBA
Biointelligence Lab School of Computer Sci. & Eng.
Chapter 5. Advanced Search
Heuristic Algorithms via VBA
Heuristic Algorithms via VBA
Principles of Computing – UFCFA Week 1
Local Search Algorithms
CSC 380: Design and Analysis of Algorithms
Constraint Satisfaction Problems
Local Search Algorithms
Presentation transcript:

COSC 4426 Topics in Computer Science II Discrete Optimization Good results with problems that are too big for people or computers to solve completely

Difficult problems  hard to represent (what information, what data structures)  no known algorithms  no known efficient algorithms  this course: discreet variable problems

Examples  practical examples scheduling (transportation, timetables,…)  puzzles crosswords, Sudoku, n Queens  classic examples SAT: propositional satisfiability problem (independent parameters) CSP: constraint satisfaction problem (dependent parameters) TSP: travelling salesman problem (permutations)

SAT: propositional satisfiability problem P1P1 P2P2 P 1 ^P 2 FFF FTT TFF TTT n propositions, P 1, P 2, P 3, …, P n What combination of truth values makes a sentence true? Table has 2 n rows. n=50, 2 50 = 1,125,899,906,842,624 n=2; 2 2 = 4 rows

CSP: constraint satisfaction problem  example – map colouring n countries – 4 possible colours -constraints: adjacent countries different colours -4 n combinations n=13; 4 13 = 67,108,864 combinations; 25 constraints

TSP: traveling salesman (sic) problem  n cities: what is shortest path visiting all cities, C 1, C 2, C 3, …, C n once?  (n-1)! routes from home city on complete graph n = 16; (n-1)! = 1,307,674,368,000 C1C1 n = 5; (n-1)! = 24

Silly Example – one variable  mark in class based on hours attended number of hours, h, is between 0 and 36  find optimal attendance (best h) if 1.mark m ism = 3h mark m ism = 20h - h 2 3.mark m ism = (5h/9 – 10) 2 4.mark m ism = h 3 mod mark m ism = markarray[h]

m = 3h - 8

m = 3h – 8 m = 20h - h 2 m = (5h/9 – 10) 2 global optimum

m = h 3 mod 101 local optimum

m = h 3 mod 101 m = markarray[h]

Problem description 1.fitness function (optimization function, evaluation) – e.g., m = h 3 mod constraints (conditions) – e.g., 0 ≤ h ≤ 36 find global optimum of fitness function without violating constraints OR getting stuck at local optimum  small space: complete search  large space: ?????

Large problems  more possible values  more parameters, n = {n 1, n 2, n 3, …}  more constraints  more complex fitness functions - takes significant time to calculate m = f(n)  too big for exhaustive search

Searching without searching everywhere How to search intelligently/efficiently using information in the problem: -hill climbing -simulated annealing -genetic algorithms -constraint satisfaction -A* - …

Focusing search  assumption – some pattern to the distribution of the fitness function finding the height of land in a forest - can only see ‘local’ structure - easy to find a hilltop but are there other higher hills?

Fitness function distribution  convex – easy – start anywhere, make local decisions

Fitness function distribution  many local maxima make local decisions but don’t get trapped

Course outline  textbook – Michalewicz and Fogel (reasonable price, valuable book)  lectures, notes and ppt presentations  evaluation assignments project tests final exam