CPSC 433 Artificial Intelligence Or-Tree Modeling Example CPSC 433 T01 & T02 Andrew Kuipers.

Slides:



Advertisements
Similar presentations
1 Column Generation. 2 Outline trim loss problem different formulations column generation the trim loss problem master problem and subproblem in column.
Advertisements

Deadlock 2.
Priority Queues Two kinds of priority queues: Min priority queue. Max priority queue.
Nested if-else Statements.  Should be indented to make the logic clear.  Nested statement executed only when the branch it is in is executed. For example,
Set Based Search Modeling Examples II
ALGORITHMS AND FLOWCHARTS
Marking Schema question1: 40 marks question2: 40 marks question3: 20 marks total: 100 marks.
Line Balancing Problem A B C 4.1mins D 1.7mins E 2.7 mins F 3.3 mins G 2.6 mins 2.2 mins 3.4 mins.
Tutorial 2 Project Management Activity Charts (PERT Charts)
Lecture 10: Integer Programming & Branch-and-Bound
CSC 423 ARTIFICIAL INTELLIGENCE
Slide 1 Heuristic Search: BestFS and A * Jim Little UBC CS 322 – Search 5 September 19, 2014 Textbook § 3.6.
CPSC 322 Introduction to Artificial Intelligence October 6, 2004.
CPSC 433 Artificial Intelligence And-Tree Search Modeling Example – Model Elimination CPSC 433 T01 & T02 Andrew Kuipers.
Hardness Results for Problems P: Class of “easy to solve” problems Absolute hardness results Relative hardness results –Reduction technique.
Branch and Bound Searching Strategies
1 Module 2: Fundamental Concepts Problems Programs –Programming languages.
Computer Science 6/13/2015CPSC 433: Other Search Models and Processes 1 CPSC Artificial Intelligence Winter 2006 Search Paradigms: Search Summary.
Lecture 2: Fundamental Concepts
The Theory of NP-Completeness
Data Mining with Decision Trees Lutz Hamel Dept. of Computer Science and Statistics University of Rhode Island.
UNC Chapel Hill Lin/Manocha/Foskey Optimization Problems In which a set of choices must be made in order to arrive at an optimal (min/max) solution, subject.
1 Branch and Bound Searching Strategies 2 Branch-and-bound strategy 2 mechanisms: A mechanism to generate branches A mechanism to generate a bound so.
On the Task Assignment Problem : Two New Efficient Heuristic Algorithms.
Let A = {1,2,3,4} and B = {a,b,c}. Define the relation f from A to B by f = {(1,b), (2,a), (3,c), (4,b)}. Is f a function? (1) Yes (2) No.
Hardness Results for Problems
NetworkModel-1 Network Optimization Models. NetworkModel-2 Network Terminology A network consists of a set of nodes and arcs. The arcs may have some flow.
Definitions A SEQUENCE is a list of numbers in a particular order. Each number in a sequence is called a TERM.
Complexity Classes Kang Yu 1. NP NP : nondeterministic polynomial time NP-complete : 1.In NP (can be verified in polynomial time) 2.Every problem in NP.
Lecture 5 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 21- Forward Probabilities and Robotic Action Sequences.
Artificial Intelligence Lecture 9. Outline Search in State Space State Space Graphs Decision Trees Backtracking in Decision Trees.
Decision Trees & the Iterative Dichotomiser 3 (ID3) Algorithm David Ramos CS 157B, Section 1 May 4, 2006.
P, NP, and Exponential Problems Should have had all this in CS 252 – Quick review Many problems have an exponential number of possibilities and we can.
Dynamic Programming 21 August 2004 Presented by Eddy Chan Written by Ng Tung.
CS 8833 Algorithms Algorithms Dynamic Programming.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
CPSC 433 Artificial Intelligence Search Modeling Practice Problems M. Reza Zakerinasab Please include [CPSC433] in the subject line.
Chapter Algorithms 3.2 The Growth of Functions 3.3 Complexity of Algorithms 3.4 The Integers and Division 3.5 Primes and Greatest Common Divisors.
Algorithms & FlowchartsLecture 10. Algorithm’s CONCEPT.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
Search CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Dvir Shabtay Moshe Kaspi The Department of IE&M Ben-Gurion University of the Negev, Israel.
Branch-and-Cut Valid inequality: an inequality satisfied by all feasible solutions Cut: a valid inequality that is not part of the current formulation.
Goal-based Problem Solving Goal formation Based upon the current situation and performance measures. Result is moving into a desirable state (goal state).
Clase 3: Basic Concepts of Search. Problems: SAT, TSP. Tarea 1 Computación Evolutiva Gabriela Ochoa
Rectangular Coordinate System
Rounding scheme if r * j  1 then r j := 1  When the number of processors assigned in the continuous solution is between 0 and 1 for each task, the speed.
CPSC 322, Lecture 8Slide 1 Heuristic Search: BestFS and A * Computer Science cpsc322, Lecture 8 (Textbook Chpt 3.6) Sept, 21, 2010.
Optimization Problems In which a set of choices must be made in order to arrive at an optimal (min/max) solution, subject to some constraints. (There may.
Vasilis Syrgkanis Cornell University
CPSC 433 Artificial Intelligence Set Based Search Modeling Examples Andrew Kuipers Please include [CPSC433] in the subject line.
ARTIFICIAL INTELLIGENCE (CS 461D) Princess Nora University Faculty of Computer & Information Systems.
Prabhas Chongstitvatana 1 Backtracking Eight queens problem 1 try all possible C 64 8 = 4,426,165,368 2 never put more than one queen on a given row, vector.
Branch and Bound Searching Strategies
Particle Filter for Robot Localization Vuk Malbasa.
Digitaalsüsteemide verifitseerimise kursus1 Exercises Binary decision diagrams ROBDD generation. Shannon expansion Finding an optimal ordering Dynamic.
Example 2 You are traveling by a canoe down a river and there are n trading posts along the way. Before starting your journey, you are given for each 1
Artificial Intelligence Solving problems by searching.
The Acceptance Problem for TMs
In-Class Activity… Decision Trees.
An Iterative FFT We rewrite the loop to calculate nkyk[1] once
Assignment Problem, Dynamic Programming
CS005 Introduction to Programming
Or-Tree Modeling Example
Haskell Tips You can turn any function that takes two inputs into an infix operator: mod 7 3 is the same as 7 `mod` 3 takeWhile returns all initial.
Uncovered failures in MSS
Calculate 81 ÷ 3 = 27 3 x 3 x 3 3 x 3 x 3 x 3 ÷ 3 = This could be written as
Optimal Binary Search Tree. 1.Preface  OBST is one special kind of advanced tree.  It focus on how to reduce the cost of the search of the BST.  It.
Algorithms Tutorial 27th Sept, 2019.
Presentation transcript:

CPSC 433 Artificial Intelligence Or-Tree Modeling Example CPSC 433 T01 & T02 Andrew Kuipers

CPSC 433 Artificial Intelligence Problem Description Let T be a set of tasks, and W a set of workers Let e:T  W  [0,1] be a function mapping tasks and workers onto efficiency ratings For a given sequence of tasks S =  t 1, …, t n , assign tasks to workers such that : –the overall time to complete the sequence is minimized, and –no worker is assigned to a task for which he has an efficiency rating of 0

CPSC 433 Artificial Intelligence Or-Tree Model Defining a Problem Instance pr =  S =  t 1, …, t n , A =  (w i,  t’ 1i, …, t’ mi  ) | w i  W, t’ ij  T   S : the sequence of tasks to complete (not yet assigned) A : an assignment of workers to sequences of tasks W: the set of workers T : the set of tasks

CPSC 433 Artificial Intelligence Or-Tree Model Evaluating Solutions f(pr) = max( {  i=1..mj ( e(t ij, w j ) -1 ) | (w j,  t 1j, …, t mj   A } ) For each worker, calculate the time to complete its assigned tasks Time taken by worker is 1 / efficiency for a particular task Workers work in parallel The total time is the max of the times taken by each worker

CPSC 433 Artificial Intelligence Or-Tree Model When is a branch Solvable / Unsolvable? Erw ,wt ((pr, ?), (pr, no))   (w i,  t 1i, …, t mi  )  A,  j  {1…m i } | e(t ji, w i ) = 0 ie: if a worker is assigned a task for which it has 0 efficiency Erw ,wt ((pr, ?), (pr, yes))   Erw ,wt ((pr, ?), (pr, no)) and |S| = 0 * where pr =  S, A  ie: is not unsolvable, and no tasks left to assign

CPSC 433 Artificial Intelligence Or-Tree Model Branching Definition Altern(pr 0, pr 1, …, pr n )  pr 0 =  s 0 : S, A  pr i =  S, Assign(A, w i, s 0 )   w i  W Assign the first task in S to each worker on a different branch Assign(A, w, s) = A’ s.t : if (w,  t 1, …, t n  )  A then (w,  t 1, …, t n, s  )  A’ else (w,  s  )  A’

CPSC 433 Artificial Intelligence Or-Tree Model pr =  S =  t 1, …, t n , A =  (w i,  t’ 1i, …, t’ mi  ) | w i  W, t’ ij  T   f(pr) = max( {  i=1..mj ( e(t ij, w j ) -1 ) | (w j,  t 1j, …, t mj   A } ) Erw ,wt ((pr, ?), (pr, no))   (w i,  t 1i, …, t mi  )  A,  j  {1…m i } | e(t ji, w i ) = 0 Erw ,wt ((pr, ?), (pr, yes))   Erw ,wt ((pr, ?), (pr, no)) and |S| = 0 * where pr =  S, A  Altern(pr 0, pr 1, …, pr n )  pr 0 =  s 0 : S, A  pr i =  S, Assign(A, w i, s 0 )   w i  W Assign(A, w, s) = A’ s.t : if (w,  t 1, …, t n  )  A then (w,  t 1, …, t n, s  )  A’ else (w,  s  )  A’

CPSC 433 Artificial Intelligence Example Problems W = { A, B, C } T = { p, q, r } e : S =  p, p, q, r, p, q  W = { A, B, C } T = { p, q, r } e: S =  q, r, q, p, r, q, p  ABC p10.20 q r00.51 ABC p0.200 q r