Title: Local Search Required reading: AIMA, Chapter 4 LWH: Chapters 6, 10, 13 and 14.

Similar documents
Title: Solving Problems by Searching AIMA: Chapter 3 (Sections 3.1, 3.2 and 3.3)

Title: Adverserial Search AIMA: Chapter 5 (Sections 5.1, 5.2 and 5.3)

Genetic Algorithms with Elitism-Based Immigrants for Changing Optimization Problems

Polydisciplinary Faculty of Larache Abdelmalek Essaadi University, MOROCCO 3 Department of Mathematics and Informatics

Introduction to Artificial Intelligence CSCE , Fall 2017 URL:

The HeLIx + inversion code Genetic algorithms. A. Lagg - Abisko Winter School 1

Chapter 4. Modeling the Effect of Mandatory District. Compactness on Partisan Gerrymanders

Can Mathematics Help End the Scourge of Political Gerrymandering?

Biogeography-Based Optimization Combined with Evolutionary Strategy and Immigration Refusal

Computational Political Economy

Chapter 8: Recursion

Designing police patrol districts on street network

Subreddit Recommendations within Reddit Communities

Political Parties and Electoral Landscapes

Tie Breaking in STV. 1 Introduction. 3 The special case of ties with the Meek algorithm. 2 Ties in practice

How to Change a Group s Collective Decision?

Estimating the Margin of Victory for Instant-Runoff Voting

Migrants Selection and Replacement in Distributed Evolutionary Algorithms for Dynamic Optimization

Comparison Sorts. EECS 2011 Prof. J. Elder - 1 -

Chapter 5. Is Automation the Answer? The Computational Complexity of Automated. Redistricting

Tengyu Ma Facebook AI Research. Based on joint work with Yuanzhi Li (Princeton) and Hongyang Zhang (Stanford)

A procedure to compute a probabilistic bound for the maximum tardiness using stochastic simulation

A Hybrid Immigrants Scheme for Genetic Algorithms in Dynamic Environments

Voting and Complexity

The Effectiveness of Receipt-Based Attacks on ThreeBallot

Robust Electric Power Infrastructures. Response and Recovery during Catastrophic Failures.

Nonexistence of Voting Rules That Are Usually Hard to Manipulate

Constraint satisfaction problems. Lirong Xia

A comparative analysis of subreddit recommenders for Reddit

Complexity of Manipulating Elections with Few Candidates

The axiomatic approach to population ethics

Estimating the Margin of Victory for an IRV Election Part 1 by David Cary November 6, 2010

The Effect of Electoral Geography on Competitive Elections and Partisan Gerrymandering

Cluster Analysis. (see also: Segmentation)

Recruiting Your Way to Victory: Varying Strategies in Insurgent/Counterinsurgent Warfare

Social Rankings in Human-Computer Committees

Police patrol districting method and simulation evaluation using agent-based model & GIS

Understanding and Solving Societal Problems with Modeling and Simulation

CS 5523: Operating Systems

RATIONAL CHOICE AND CULTURE

A kernel-oriented algorithm for transmission expansion planning

Voting Criteria April

EPI BRIEFING PAPER. Immigration and Wages Methodological advancements confirm modest gains for native workers. Executive summary

Analyzing proofs Introduction to problem solving. Wiki: Everyone log in okay? Decide on either using a blog or wiki-style journal?

Tilburg University. Can a brain drain be good for growth? Mountford, A.W. Publication date: Link to publication

Supporting Information Political Quid Pro Quo Agreements: An Experimental Study

Measuring a Gerrymander

Rumor Spreading and Voting

INTERNATIONAL ECONOMICS, FINANCE AND TRADE Vol. II - Strategic Interaction, Trade Policy, and National Welfare - Bharati Basu

IDENTIFYING FAULT-PRONE MODULES IN SOFTWARE FOR DIAGNOSIS AND TREATMENT USING EEPORTERS CLASSIFICATION TREE

From Meander Designs to a Routing Application Using a Shape Grammar to Cellular Automata Methodology

CHE 572: Modelling Process Dynamics

1 Electoral Competition under Certainty

THE BOROUGH OF GLEN RIDGE Essex County, New Jersey ORDINANCE NO AN ORDINANCE TO AMEND CHAPTER 9.14 NOISE CONTROL

Cloning in Elections 1

Wasserman & Faust, chapter 5

A New Paradigm for the Study of Corruption in Different Cultures

Dimension Reduction. Why and How

Event Based Sequential Program Development: Application to Constructing a Pointer Program

Mixed-Strategies for Linear Tabling in Prolog

Enriqueta Aragones Harvard University and Universitat Pompeu Fabra Andrew Postlewaite University of Pennsylvania. March 9, 2000

Paris International Model United Nations

STUDY GUIDE FOR TEST 2

UC-BERKELEY. Center on Institutions and Governance Working Paper No. 22. Interval Properties of Ideal Point Estimators

Social Science and History: How Predictable is Political Behavior?

Game Theory. Jiang, Bo ( 江波 )

Online Appendix: Trafficking Networks and the Mexican Drug War

Manipulation of elections by minimal coalitions

Economics 470 Some Notes on Simple Alternatives to Majority Rule

Sequential Voting with Externalities: Herding in Social Networks

Political Economics II Spring Lectures 4-5 Part II Partisan Politics and Political Agency. Torsten Persson, IIES

1 Voting In praise of democracy?

Experimental Computational Philosophy: shedding new lights on (old) philosophical debates

PLS 540 Environmental Policy and Management Mark T. Imperial. Topic: The Policy Process

In a recent article in the Journal of Politics, we

Political Districting for Elections to the German Bundestag: An Optimization-Based Multi-Stage Heuristic Respecting Administrative Boundaries

CS 4407 Algorithms Greedy Algorithms and Minimum Spanning Trees

MATH4999 Capstone Projects in Mathematics and Economics Topic 3 Voting methods and social choice theory

COSMOS + TAXIS. Studies in Emergent Order and Organization. Symposium on Gerald Gaus's The Tyranny of the Ideal

Voting System: elections

14.770: Introduction to Political Economy Lectures 8 and 9: Political Agency

Appendix to Non-Parametric Unfolding of Binary Choice Data Keith T. Poole Graduate School of Industrial Administration Carnegie-Mellon University

Collective Decisions, Error and Trust in Wireless Networks

Minimizing Justified Envy in School Choice: The Design of NewApril Orleans 13, 2018 One App1 Atila / 40

Strategic Reasoning in Interdependence: Logical and Game-theoretical Investigations Extended Abstract

Social welfare functions

HOTELLING-DOWNS MODEL OF ELECTORAL COMPETITION AND THE OPTION TO QUIT

Conventional Machine Learning for Social Choice

Many Social Choice Rules

Parliamentary Procedure: Lesson Three

1 Aggregating Preferences

THE COMPUTATIONAL COMPLEXITY OF AUTOMATED REDISTRICTING: IS AUTOMATION THE ANSWER?

4/29/2015. Conditions for Patentability. Conditions: Utility. Juicy Whip v. Orange Bang. Conditions: Subject Matter. Subject Matter: Abstract Ideas

Introduction to the declination function for gerrymanders

Uninformed search. Lirong Xia

Random Forests. Gradient Boosting. and. Bagging and Boosting

Case: 1:16-cv Document #: 586 Filed: 01/03/18 Page 1 of 10 PageID #:10007 FOR THE NORTHERN DISTRICT OF ILLINOIS EASTERN DIVISION

Preference Forms These tables may be useful for scratch work.

Math of Election APPORTIONMENT

VOTING SYSTEMS AND ARROW S THEOREM

Transcription:

B.Y. Choueiry 1 Instructor s notes #8 Title: Local Search Required reading: AIMA, Chapter 4 LWH: Chapters 6, 10, 13 and 14. Introduction to Artificial Intelligence CSCE 476-876, Fall 2017 URL: www.cse.unl.edu/ choueiry/f17-476-876 Berthe Y. Choueiry (Shu-we-ri) (402)472-5444

Outline Iterative improvement search: Hill-climbing Simulated annealing... B.Y. Choueiry 2 Instructor s notes #8

Types of Search (I) 1- Uninformed vs. informed 2- Systematic/constructive vs. iterative improvement xxx B.Y. Choueiry 3 Instructor s notes #8

B.Y. Choueiry 4 Instructor s notes #8 Iterative improvement (a.k.a. local search) Sometimes, the path to the goal is irrelevant only the state description (or its quality) is needed Iterative improvement search choose a single current state, sub-optimal gradually modify current state generally visiting neighbors until reaching a near-optimal state Example: complete-state formulation of N-queens

B.Y. Choueiry 5 Instructor s notes #8 Main advantages of local search techniques 1. Memory (usually a constant amount) 2. Find reasonable solutions in large spaces where we cannot possibly search the space exhaustively 3. Useful for optimization problems: best state given an objective function (quality of the goal)

B.Y. Choueiry 6 Instructor s notes #8 Intuition: state-scape landscape evaluation current state All states are layed up on the surface of a landscape A state s location determines its neighbors (where it can move) A state s elevation represents its quality (value of objective function) Move from one neighbor of the current state to another state until reaching the highest peak

B.Y. Choueiry 7 Instructor s notes #8 Two major classes 1. Hill climbing (a.k.a. gradient ascent/descent) try to make changes to improve quality of current state 2. Simulated Annealing (physics) things can temporarily get worse Others: tabu search, local beam search, genetic algorithms, etc. Optimality (soundness)? Completeness? Complexity: space? time? In practice, surprisingly good.. (eroding myth)

B.Y. Choueiry 8 Instructor s notes #8 Hill climbing Start from any state at random and loop: Examine all direct neighbors If a neighbor has higher value then move to it else exit evaluation Problems: current state objective function shoulder global maximum current state local maximum Local optima: (maxima or minima) search halts Plateau: flat local optimum or shoulder Ridge flat local maximum state space

B.Y. Choueiry 9 Instructor s notes #8 Plateaux Allow sideway moves objective function shoulder For shoulder, good solution global maximum current state local maximum flat local maximum state space For flat local optima, may result in an infinite loop Limit number of moves

Ridges Sequence of local optima that is difficult to navigate xxx B.Y. Choueiry 10 Instructor s notes #8

B.Y. Choueiry 11 Instructor s notes #8 Variants of Hill Climbing Stochastic hill climbing: random walk Choose to disobey the heuristic, sometimes Parameter: How often? First-choice hill climbing Choose first best neighbor examined Good solution when we have too many neighbors Random-restart hill climbing A series of hill-climbing searches from random initial states

B.Y. Choueiry 12 Instructor s notes #8 Random-restart hill-climbing When HC halts or no progress is made re-start from a different (randomly chosen) starting save best results found so far Repeat random restart - for a fixed number of iterations, or - until best results have not been improved for a certain number of iterations

B.Y. Choueiry 13 Instructor s notes #8 Simulated annealing (I) Basic idea: When stuck in a local maximum allow few steps towards less good neighbors to escape the local maximum Start from any state at random, start count down and loop until time is over: Pick up a neighbor at random Set E = value(neighbor) - value(current state) If E>0 (neighbor is better) then move to neighbor else E<0 move to it with probability < 1 E is negative Transition probability e E/T T: count-down time as time passes, less and less likely to make the move towards unattractive neighbors

B.Y. Choueiry 14 Instructor s notes #8 Simulated annealing (II) Analogy to physics: Gradually cooling a liquid until it freezes If temperature is lowered sufficiently slowly, material will attain lowest-energy configuration (perfect order) Count down Moves between states Global optimum Temperature Thermal noise Lowest-energy configuration

B.Y. Choueiry 15 Instructor s notes #8 How about decision problems? Optimization problems Decision problems Iterative improvement Iterative repair State value Number of constraints violated Sub-optimal state Inconsistent state Optimal state Consistent state

B.Y. Choueiry 16 Instructor s notes #8 Local beam search Keeps track of k states Mechanism: Begins with k states At each step, all successors of all k states generated Goal reached? Stop. Otherwise, selects k best successors, and repeat. Not exactly a k restarts: k runs are not independent Stochastic beam search increases diversity

B.Y. Choueiry 17 Instructor s notes #8 Genetic algorithms Basic concept: combines two (parent) states Mechanism: Starts with k random states (population) Encodes individuals in a compact representation (e.g., a string in an alphabet) Combines partial solutions to generate new solutions (next generation) + =

B.Y. Choueiry 18 Instructor s notes #8 Important components of a genetic algorithm 24748552 32752411 24415124 32543213 (a) Initial Population 24 23 20 11 31% 29% 26% 14% (b) Fitness Function 32752411 24748552 32752411 24415124 (c) Selection 32748552 24752411 32752124 24415411 (d) Crossover 32748152 24752411 32252124 24415417 (e) Mutation Fitness function ranks a state s quality, assigns probability for selection Selection randomly chooses pairs for combinations depending on fitness Crossover point randomly chosen for each individual, offsprings are generated Mutation randomly changes a state