ITEC2620 Introduction to Data Structures

Similar documents
Revised Curriculum for Bachelor of Computer Science & Engineering, 2011

Rethinking the Licensing of New Attorneys - An Exploration of Alternatives to the Bar Exam: Introduction

WhyTry Elementary Game Plan Journal

MATH 1112 FINAL EXAM REVIEW e. None of these. d. 1 e. None of these. d. 1 e. None of these. e. None of these. e. None of these.

APPLICATION FOR APPROVAL OF A IENG EMPLOYER-MANAGED FURTHER LEARNING PROGRAMME

Name:... Date:... Use your mathematical skills to solve the following problems. Remember to show all of your workings and check your answers.

TABLEAU DES MODIFICATIONS

DLS DEF1436. Case 2:13-cv Document Filed in TXSD on 11/19/14 Page 1 of 7 USE CASE SPECIFICATION VIEW ELECTION CERTIFICATE RECORD

F.A.C.E.S. Language Arts Module

GOVERNMENT GAZETTE REPUBLIC OF NAMIBIA


2014 Release 1 27 March 2014

Convolution Pyramids. Zeev Farbman, Raanan Fattal and Dani Lischinski SIGGRAPH Asia Conference (2011) Julian Steil. Prof. Dr.

Maths Revision Booklet. Year 6

Math Circles Finite Automata Question Sheet 3 (Solutions)

This document is not copyrighted. This document may be reproduced, in part or in whole, for any purpose. Ray Montagne - W7CIA

Regular languages can be expressed as regular expressions.

Evaluating territories of Go positions with capturing races

CHAPTER IX THE POTTERY OF THE MYCERINUS VALLEY TEMPLE

Macroscopic and Microscopic Springs Procedure

Patterns and Algebra

ΑΔΣ. Advances in Decision Sciences. Volume 22(A) 22nd Anniversary Special Issue December Michael McAleer

(7) Type X. Small Shouldered Jar with Flat Base

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. Course Curriculum. ENGINEERING WORKSHOP PRACTICES (Code: ) Aeronautical Engineering

2018 KRIS KRINGLE PROCESSION EVENT INFORMATION & REGISTRATION


My Immigrant was an Exile

Simplification of Lighting and Light-Signalling Regulations

I CONNECT. We start with a video intro of the main actress to attract people to connect with the game with facebook, twitter.

Sequential Logic (2) Synchronous vs Asynchronous Sequential Circuit. Clock Signal. Synchronous Sequential Circuits. FSM Overview 9/10/12

Balancing Your Life. Ideas that might help you

Unit PO0205K Knowledge of Applying Fillers and Foundation Materials

I Ledge. Groove. Safety rail holes. Groove. Slot III VII

Geometric quantities for polar curves

Free Crochet Pattern Lion Brand Off The Hook Milo Blanket Pattern Number: L80261 Designed by Kaz

holding the appropriate class of license regardless of their affiliation with BIARA.

GOVERNMENT OF ANDHRA PRADESH FINANCE (HRM.V-PC) DEPARTMENT

WIRING. Model BC Flow Totalizer, Ratemeter and Batch Controller Wiring Diagrams

Caterpillar Announces Vice President Retirement, Appointment of a New Vice President and New Responsibilities for Other Vice Presidents

REVIEW QUESTIONS TOPIC 5 TRIGONOMETRY I FLUENCY

English 361: American Realism and Naturalism Fall 2015

Interdisciplinary Economics

Creating a VEX IQ Event in Tournament Manager (TM)

Using only these cards below, what 4-digit 6500 numbers can you make that can be placed on this number line?

MINUTES OF THE REGULAR SCHOOL BOARD MEETING School District of Mauston. MEMBERS PRESENT: Kryka, Holmes, Erickson, Locken, Berkos, Rogers, Buss


Fubini for continuous functions over intervals

Contents 5($'7+,6),567 L[ ,1752'8&7,21

Kirchhoff s Rules. Kirchhoff s Laws. Kirchhoff s Rules. Kirchhoff s Laws. Practice. Understanding SPH4UW. Kirchhoff s Voltage Rule (KVR):

UNIT TITLE: KNOWLEDGE OF APPLYING FILLERS AND FOUNDATION MATERIALS

Module 9. DC Machines. Version 2 EE IIT, Kharagpur

Automation Umbrella and Smart Garbage Using IOT

Lecture 16. Double integrals. Dan Nichols MATH 233, Spring 2018 University of Massachusetts.

Control Cable installation: Best Practice

Lobster Council of Canada Meeting Date: October 4, 2017 Location: Crowne Plaza Hotel, Moncton Time: 9:00 am 4:00 pm

Section 6.1 Law of Sines. Notes. Oblique Triangles - triangles that have no right angles. A c. A is acute. A is obtuse

Measuring Testability of Object Oriented Design: A Systematic Review

Supporting Notes to the CCG Model Constitution

Section 16.3 Double Integrals over General Regions

Caterpillar Announces Vice President Retirements, Appointments and Organizational Changes

Student Book SERIES. Patterns and Algebra. Name

SOLIDWORKS 2018 Basic Tools

DR. JOHN R. BOYCE Professor of Economics University of Calgary

Number lines. 1. Find the values of x and y if:

To learn more, visit

SolidWorks 2013 Part I - Basic Tools

Example. Check that the Jacobian of the transformation to spherical coordinates is

SOLIDWORKS 2017 Basic Tools

Compulsory Licensing of Clean Technology

MANUEL EDUARDO FLORES MORAN ARTIFICIAL INTELLIGENCE APPLIED TO THE DC MOTOR

GLONASS PhaseRange biases in RTK processing

+ sin bsin. sin. tan

Elementary Science Center

Contents. Notes on the use of this publication

Required Materials For complete material(s) information, refer to

!"#$%&'()*"+,-./0) $'&413-##-%+,-./

ISM-PRO SOFTWARE DIGITAL MICROSCOPE OPERATION MANUAL

Multivariable integration. Multivariable integration. Iterated integration

Polar Coordinates. July 30, 2014

Brief Contents PART 1 FRAMEWORK 1

Disclosure to Promote the Right To Information

DETAILED ESTIMATES OF INCOME Revised Estimates

SolidWorks 2014 Part I - Basic Tools

Moses E Emetere (Department Of Physics, Federal University Of Technology Minna P.M.B 65, Minna, Nigeria)

SOLVING TRIANGLES USING THE SINE AND COSINE RULES

Call to Order PG Members In attendance: 1. Ted Brengel 6. Tom Derr 11. Joe Frichtel

Paper-1.2: Financial Accounting Paper-3.2: Income-tax Law and Practice Paper-5.2: Financial Management. Paper-3.3: Macro Economics (b) E-Commerce

The Discussion of this exercise covers the following points:

ASHIDA Numerical OC/EF Protection Relay

Questionnaire AN ECONOMIC ANALYSIS OF SMALL SCALE ART PLATE ENTREPRENEURS IN THANJAVUR TOWN, TAMILNADU SOUTH INDIA

Tools: Every craftsman kit builder should have the basic tools you need to construct this kit. They are:

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT COURSE CURRICULUM COURSE TITLE: INFORMATION COMMUNICATION NETWORKS (COURSE CODE: )

CERTNA Board of Directors meeting was heard at the San Joaquin County Assessor-Recorder 44 N. San Joaquin Street, Ste. 260 Stockton, CA

SolidWorks Part I - Basic Tools SDC. Includes. Parts, Assemblies and Drawings. Paul Tran CSWE, CSWI

MEASURE THE CHARACTERISTIC CURVES RELEVANT TO AN NPN TRANSISTOR

ANALYSIS AND SIMULATION OF MECHANICAL TRAINS DRIVEN BY VARIABLE FREQUENCY DRIVE SYSTEMS. A Thesis XU HAN

Laura Riley Thomas Mallinson Charles Riley Mary Hannah Stev ens William Briggs Riley Isabella Appley ard

ETSI TS V ( )

Modelling and Feed-Forward Control of Robot Arms with Flexible Joints and Flexible Links

Wands & Witches. Guide. Version 0.6.

Transcription:

/5/20 ITEC220 Introdution to Dt Strutures Leture 0 Gme Trees Two-Plyer Gmes Rules for gme define the sttespe Nodes re gme sttes Links re possile moves Build serh tree y rute fore Exmple I Exmple II A Our moves A Our moves E B Their C D moves F Wht is our mximum pyoff 0 (stte E) G 0 0 5 Pyoffs H I J E B Their C D moves F G 0 0 5 Pyoffs How do we get there? Move to stte B H I J

/5/20 Exmple III E Wht will our opponent do? Move to stte F Pyoff = 0 A B Their C D moves F G 0 0 5 Pyoffs H Our moves I J Evluting Two-Plyer Gme Eh stte is stti ord position The evlution depends on the susequent moves e.g. Cpturing piee n look good, ut the overll exhnge my e negtive Minimx Serh Proedure I Depth-first, depth-limited serh proedure Depth-first opportunity for pruning Depth-limited hess level Minimx Serh Proedure II We wnt to mximize, our opponent wnts to minimize Alternting levels propgte mximum or minimum vlue Opponent s gol is to minimize our mximum (minimx) 2

/5/20 Minimx Serh Proedure III Minimx Serh Proedure IV A Mximize A Mximize B Minimize C D B Minimize C D E F G H I J 0 0 5 B pyoff = min (0,0) = 0 Pyoffs E F G H I J 0 0 5 C pyoff = min (,) = Pyoffs Minimx Serh Proedure V Minimx Serh Proedure VI A Mximize A Mximize B Minimize C D B Minimize C D E F G H I J 0 0 5 D pyoff = min (,5) = Pyoffs E F G H I J 0 0 5 A pyoff = mx (0,,) = Pyoffs

/5/20 Minimx Serh Proedure VII Optiml gme (ssume opponent will lwys mke est move) We hoose D, opponent hooses I Pyoff is Risky gme (tke hnes tht opponent n mke mistkes) Choose C Risk of ( less) for rewrd of (2 more) Alph-Bet Pruning I Pruning eliminte su-tree when it is no longer vile Two vlues: Alph lower ound on mximizing vlue Bet upper ound on minimizing vlue Prune su-tree when lph nd et rete onflit Alph-Bet Pruning II Alph-Bet Pruning III The full serh tree possile Whih nodes n e pruned? Depth-first Strt t the fr left

/5/20 Alph-Bet Pruning IV Alph-Bet Pruning V Nothing to propgte yet Continue with ll silings Determine vlue of node ove mx(,) = Alph-Bet Pruning VI Alph-Bet Pruning VII <= <= Clulte et for node ove et = Go to fr left of next su-tree 5

/5/20 Alph-Bet Pruning VIII Alph-Bet Pruning IX <= <= >= >= Clulte lph for node ove lph = Conflit! No vlues <= nd >= Prune remining silings Alph-Bet Pruning X >= Alph-Bet Pruning XI >= Propgte vlues up Set lph = t top node Depth-first Strt t the fr left

/5/20 Alph-Bet Pruning XII >= Alph-Bet Pruning XIII >= >= >= Clulte lph Two lphs nnot hve onflit Continue with siling Alph-Bet Pruning XIV >= Alph-Bet Pruning XV >= <= Determine vlue of node ove mx(,) = Clulte et for node ove et =

/5/20 Alph-Bet Pruning XVI >= Alph-Bet Pruning XVII >= <= Conflit! No vlues >= nd <= Prune remining silings Depth-first Strt t the fr left Alph-Bet Pruning XVIII >= Alph-Bet Pruning XIX >= >= >= Clulte lph Two lphs nnot hve onflit Continue with siling Continue to siling s hild

/5/20 Alph-Bet Pruning XX >= Alph-Bet Pruning XXI >= >= >= <= <= Clulte et for node ove et = Conflit! No vlues >= nd <= Prune remining silings Alph-Bet Pruning XXII >= Alph-Bet Pruning XXIV >= <= Propgte vlues Clulte et for node ove et =

/5/20 Alph-Bet Pruning XXV >= Alph-Bet Pruning XXVI >= <= <= No onflit Continue with serh Depth-first Strt t the fr left Alph-Bet Pruning XXVII >= Alph-Bet Pruning XXVIII >= <= <= >= >= Clulte lph for node ove lph = No onflit Continue with serh 0

/5/20 Alph-Bet Pruning XXIX >= Alph-Bet Pruning XXX >= <= Propgte Propgte Alph-Bet Pruning XXXI Alph-Bet Pruning XXXII Propgte We should pik move Rewrd will e

/5/20 Finl Exmple I Finl Exmple II 2 2 Vlues will e ll printed Minimx first Propgte minimum vlues Finl Exmple III Finl Exmple IV 2 2 Propgte mximum vlues Propgte minimum vlues 2

/5/20 Finl Exmple V Finl Exmple VI 2 2 Propgte mximum vlues Move is, rewrd is Vlues will e ll printed Pretend they ren t Finl Exmple VII Finl Exmple VIII <= <= >= 2 2 Strt t left No onflit Continue

/5/20 Finl Exmple IX Finl Exmple X >= <= >= <= 2 2 Conflit! Prune silings Propgte Finl Exmple XI >= Finl Exmple XII >= <= <= 2 2 Strt t left Conflit! Prune silings

/5/20 Finl Exmple XIII >= Finl Exmple XIV >= >= 2 2 Propgte Strt t left Finl Exmple XV >= Finl Exmple XVI >= <= >= <= 2 2 Continue Propgte 5

/5/20 Finl Exmple XVII >= Finl Exmple XVIII >= <= <= >= >= 2 2 Continue Conflit! Prune silings Finl Exmple XIX Finl Exmple XX 2 2 Propgte Sme nswer Move is, rewrd is

/5/20 Redings nd Assignments Suggested Redings from Shffer (third edition)