Heuristic Search & Local Search

Similar documents
A Design Language Based Approach

ORF 307: Lecture 14. Linear Programming: Chapter 14: Network Flows: Algorithms

colors AN INTRODUCTION TO USING COLORS FOR UNITY v1.1

CS229 Project Report Polyphonic Piano Transcription

Lecture 3: Nondeterministic Computation

CSE 101. Algorithm Design and Analysis Miles Jones Office 4208 CSE Building Lecture 9: Greedy

Deep Neural Networks Scanning for patterns (aka convolutional networks) Bhiksha Raj

Increasing Capacity of Cellular WiMAX Networks by Interference Coordination

Achieving Faster Time to Tapeout with In-Design, Signoff-Quality Metal Fill

Latch-Based Performance Optimization for FPGAs. Xiao Teng

OPERATIONS SEQUENCING IN A CABLE ASSEMBLY SHOP

Simulated Annealing for Target-Oriented Partial Scan

Comprehensive Citation Index for Research Networks

GBA 327: Module 7D AVP Transcript Title: The Monte Carlo Simulation Using Risk Solver. Title Slide

140 IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, VOL. 12, NO. 2, FEBRUARY 2004

LAB 1: Plotting a GM Plateau and Introduction to Statistical Distribution. A. Plotting a GM Plateau. This lab will have two sections, A and B.

Part I: Graph Coloring

DJ Darwin a genetic approach to creating beats

Introduction to Probability Exercises

ORF 307 Network Flows: Algorithms

BBM 413 Fundamentals of Image Processing Dec. 11, Erkut Erdem Dept. of Computer Engineering Hacettepe University. Segmentation Part 1

Chapter 5 Synchronous Sequential Logic

MS-E Crystal Flowers in Halls of Mirrors 30 Mar Algorithmic Art II. Tassu Takala. Dept. of CS

Hidden Markov Model based dance recognition

Route optimization using Hungarian method combined with Dijkstra's in home health care services

Neural Network for Music Instrument Identi cation

Import and quantification of a micro titer plate image

Math 8 Assignment Log. Finish Discussion on Course Outline. Activity Section 2.1 Congruent Figures Due Date: In-Class: Directions for Section 2.

Post-Routing Layer Assignment for Double Patterning

Mathematics Curriculum Document for Algebra 2

Processes for the Intersection

COSC3213W04 Exercise Set 2 - Solutions

Multiple Strategies to Analyze Monty Hall Problem. 4 Approaches to the Monty Hall Problem

Module 2 :: INSEL programming concepts

Achieve Accurate Color-Critical Performance With Affordable Monitors

Using Scan Side Channel to Detect IP Theft

Digital Logic. ECE 206, Fall 2001: Lab 1. Learning Objectives. The Logic Simulator

(Received September 30, 1997)

db math Training materials for wireless trainers

LCD and Plasma display technologies are promising solutions for large-format

Analysis and Clustering of Musical Compositions using Melody-based Features

Retiming Sequential Circuits for Low Power

An Improved Fuzzy Controlled Asynchronous Transfer Mode (ATM) Network

Automatic Piano Music Transcription

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science

Noise. CHEM 411L Instrumental Analysis Laboratory Revision 2.0

K ABC Mplus CFA Model. Syntax file (kabc-mplus.inp) Data file (kabc-mplus.dat)

Introduction to Natural Language Processing This week & next week: Classification Sentiment Lexicons

Homework 3 posted this week, due after Spring break Quiz #2 today Midterm project report due on Wednesday No office hour today

CS 498 Hot Topics in High Performance Computing. Networks and Fault Tolerance. 3. A Network-Centric View on HPC

Music. Associate in Science in Mathematics for Transfer (AS-T) Degree Major Code:

Flip-Flops A) Synchronization: Clocks and Latches B) Two Stage Latch C) Memory Requires Feedback D) Simple Flip-Flop Gate

Placement Rent Exponent Calculation Methods, Temporal Behaviour, and FPGA Architecture Evaluation. Joachim Pistorius and Mike Hutton

Melody Extraction from Generic Audio Clips Thaminda Edirisooriya, Hansohl Kim, Connie Zeng

Cost-Aware Live Migration of Services in the Cloud

Machine Learning of Expressive Microtiming in Brazilian and Reggae Drumming Matt Wright (Music) and Edgar Berdahl (EE), CS229, 16 December 2005

The Bias-Variance Tradeoff

CSC 373: Algorithm Design and Analysis Lecture 17

Logic Design II (17.342) Spring Lecture Outline

N12/5/MATSD/SP2/ENG/TZ0/XX. mathematical STUDIES. Wednesday 7 November 2012 (morning) 1 hour 30 minutes. instructions to candidates

Similarity Measurement of Biological Signals Using Dynamic Time Warping Algorithm

Setting up the app. Press the Setting button (gear symbol) on the upper screen to go setup app. Before you

Iterative Deletion Routing Algorithm

Supplementary Note. Supplementary Table 1. Coverage in patent families with a granted. all patent. Nature Biotechnology: doi: /nbt.

UNIVERSAL SPATIAL UP-SCALER WITH NONLINEAR EDGE ENHANCEMENT

MULTI-CYCLE AT SPEED TEST. A Thesis MALLIKA SHREE POKHAREL

1) New Paths to New Machine Learning Science. 2) How an Unruly Mob Almost Stole. Jeff Howbert University of Washington

Attacking of Stream Cipher Systems Using a Genetic Algorithm

N T I. Introduction. II. Proposed Adaptive CTI Algorithm. III. Experimental Results. IV. Conclusion. Seo Jeong-Hoon

LabView Exercises: Part II

Module 4: Video Sampling Rate Conversion Lecture 25: Scan rate doubling, Standards conversion. The Lecture Contains: Algorithm 1: Algorithm 2:

EE241 - Spring 2013 Advanced Digital Integrated Circuits. Announcements. Lecture 14: Statistical timing Latches

DIMACS Implementation Challenges 1 Network Flows and Matching, Clique, Coloring, and Satisability, Parallel Computing on Trees and

Interconnect Planning with Local Area Constrained Retiming

How can you determine the amount of cardboard used to make a cereal box? List at least two different methods.

MARK SCHEME for the November 2004 question paper 9702 PHYSICS

Algorithms, Lecture 3 on NP : Nondeterministic Polynomial Time

spiff manual version 1.0 oeksound spiff adaptive transient processor User Manual

Decision-Maker Preference Modeling in Interactive Multiobjective Optimization

Department of Computer Science, Cornell University. fkatej, hopkik, Contact Info: Abstract:

Chapter 27. Inferences for Regression. Remembering Regression. An Example: Body Fat and Waist Size. Remembering Regression (cont.)

Good afternoon! My name is Swetha Mettala Gilla you can call me Swetha.

STB Front Panel User s Guide

y POWER USER MUSIC PRODUCTION and PERFORMANCE With the MOTIF ES Mastering the Sample SLICE function

This past April, Math

Resampling Statistics. Conventional Statistics. Resampling Statistics

TDECQ update noise treatment and equalizer optimization (revision of king_3bs_01_0117) 14th February 2017 P802.3bs SMF ad hoc Jonathan King, Finisar

Mixed Models Lecture Notes By Dr. Hanford page 151 More Statistics& SAS Tutorial at Type 3 Tests of Fixed Effects

Hardware Implementation of Viterbi Decoder for Wireless Applications

Reconstruction of Ca 2+ dynamics from low frame rate Ca 2+ imaging data CS229 final project. Submitted by: Limor Bursztyn

Visual Encoding Design

Murdoch redux. Colorimetry as Linear Algebra. Math of additive mixing. Approaching color mathematically. RGB colors add as vectors

d. Could you represent the profit for n copies in other different ways?

Efficient Trace Signal Selection using Augmentation and ILP Techniques

An Effective Filtering Algorithm to Mitigate Transient Decaying DC Offset

Detection of Panoramic Takes in Soccer Videos Using Phase Correlation and Boosting

On the Characterization of Distributed Virtual Environment Systems

Predicting the immediate future with Recurrent Neural Networks: Pre-training and Applications

Instructions and answers for teachers

CS8803: Advanced Digital Design for Embedded Hardware

Transcription:

Heuristic Search & Local Search CS171 Week 3 Discussion July 7, 2016

Consider the following graph, with initial state S and goal G, and the heuristic function h. Fill in the form using greedy best-first search. Indicate the f value in parenthesis after the node label, e.g. A(8). Assume the algorithm does not re-visit each node. Note: Normally there shouldn t be paths pointing out from the goal node. You may choose to ignore it in this problem.

Consider the following graph, with initial state S and goal G, and the heuristic function h. Fill in the form using greedy best-first search. Indicate the f value in parenthesis after the node label, e.g. A(8). Assume the algorithm does not re-visit each node. S(8) C(3), B(7) S(8)

Greedy best-first search Recall: f(n) = h(n) S(8) C(3), B(7) S(8)

Greedy best-first search S(8) C(3), B(7) S C(3) B(7), H(100) S, C

Greedy best-first search S(8) C(3), B(7) S C(3) B(7), H(100) S, C B(7) H(100), D(1), E(4) S, C, B

Greedy best-first search S(8) C(3), B(7) S C(3) B(7), H(100) S, C B(7) H(100), D(1), E(4) S, C, B D(1) H(100), E(4), G(0), F(6) S, C, B, D

Greedy best-first search S(8) C(3), B(7) S C(3) B(7), H(100) S, C B(7) H(100), D(1), E(4) S, C, B D(1) H(100), E(4), G(0), F(6) S, C, B, D G(0)

A* search Recall: f(n) = g(n) + h(n) S(8) B(8)

A* search Recall: f(n) = g(n) + h(n) S(8) B(8), C(4) S

A* search Recall: f(n) = g(n) + h(n) S(8) B(8), C(4) S C(4) B(8), H(102) S, C

A* search Recall: f(n) = g(n) + h(n) S(8) B(8), C(4) S C(4) B(8), H(102) S, C B(8) H(102), D(11)

A* search Recall: f(n) = g(n) + h(n) S(8) B(8), C(4) S C(4) B(8), H(102) S, C B(8) H(102), D(11), E(6) S, C, B

A* search Recall: f(n) = g(n) + h(n) S(8) B(8), C(4) S C(4) B(8), H(102) S, C B(8) H(102), D(11), E(6) S, C, B E(6) H(102), D(11), F(9) S, C, B, E

A* search Recall: f(n) = g(n) + h(n) S(8) B(8), C(4) S C(4) B(8), H(102) S, C B(8) H(102), D(11), E(6) S, C, B E(6) H(102), D(11), F(9) S, C, B, E F(9) H(102), D(11) S, C, B, E, F

A* search Recall: f(n) = g(n) + h(n) S(8) B(8), C(4) S C(4) B(8), H(102) S, C B(8) H(102), D(11), E(6) S, C, B E(6) H(102), D(11), F(9) S, C, B, E F(9) H(102), D(11) S, C, B, E, F D(11) H(102), G(11) S, C, B, E, F, D

A* search Recall: f(n) = g(n) + h(n) S(8) B(8), C(4) S C(4) B(8), H(102) S, C B(8) H(102), D(11), E(6) S, C, B E(6) H(102), D(11), F(9) S, C, B, E F(9) H(102), D(11) S, C, B, E, F D(11) H(102), G(11) S, C, B, E, F, D G(11)

Is this heuristic admissible? Explain why or why not.

Is this heuristic admissible? Explain why or why not. Recall: An admissible heuristic is one that never overestimates the cost to reach the goal, which is: h(n) h*(n), for all n, where h*(n) is the true cost to reach the goal state from n.

Is this heuristic admissible? Explain why or why not. n h(n) h*(n) S 8 11 B 7 10 C 3 D 1 1 E 4 F 6 G 0 0 H 100 Yes, it is admissible.

Gradient Descent (Ascent): Review An iterative method to find the max/min* values *: Local max/min; sensitive to starting point Intuition: At each step, walk towards the steepest descent/ascent direction. Used widely in practice Steps: 1. Pick a starting point 2. Repeat a. Calculate the gradient of the function at current point b. Move a step towards the direction of the gradient to reduce cost function 3. Stop when is small enough

Local Search: Exercise Use gradient descent/ascent method to find an optimum, which point will be returned? D E G Starting at X to find a minimum returns Starting at X to find a maximum returns B X Y Z Starting at Y to find a minimum returns Starting at Z to find a maximum returns A C F

Local Search: Exercise Use gradient descent/ascent method to find an optimum, which point will be returned? Cost function D E G C Starting at X to find a minimum returns Starting at X to find a maximum returns D Starting at Y to find a minimum returns Y B X Y Z Starting at Z to find a maximum returns G In standard gradient descent method, the stopping condition is the gradient of the cost function being small. So if we start at Y, the gradient of the cost function = 0. It will just return Y. A C F You could design more clever methods to deal with the plateau.

Example: Gradient Descent in Linear Regression Recall: Linear Regression (See lecture note 30 June - Lecture 1) This example illustrates how gradient descent can be used in machine learning problems involving finding optimum values. In fact, gradient descent is a practical approach to solving many complex machine learning problems. It is ok if you are not familiar with the math.

Example: Gradient Descent in Linear Regression At each iteration, update the parameter, where is the step size.

Simulated Annealing: Illustration https://www.youtube.com/embed/kqyfaitqn7g