Implementing the Intelligent Systems Knowledge Units of Computing Curricula 2001 Ingrid Russell Todd Neller.

Slides:



Advertisements
Similar presentations
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal.
Advertisements

1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
Artificial Intelligence Chapter 9 Heuristic Search Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Part2 AI as Representation and Search
Artificial Intelligence
CS 480 Lec 3 Sept 11, 09 Goals: Chapter 3 (uninformed search) project # 1 and # 2 Chapter 4 (heuristic search)
Search Strategies Reading: Russell’s Chapter 3 1.
1 Tree Searching Strategies Updated: 2010/12/27. 2 The procedure of solving many problems may be represented by trees. Therefore the solving of these.
Artificial Intelligence (CS 461D)
Search Strategies CPS4801. Uninformed Search Strategies Uninformed search strategies use only the information available in the problem definition Breadth-first.
Search in AI.
Lecture 13 Last time: Games, minimax, alpha-beta Today: Finish off games, summary.
14 Jan 2004CS Blind Search1 Solving problems by searching Chapter 3.
Mahgul Gulzai Moomal Umer Rabail Hafeez
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Blind State-Space Search Notes for Ch.11 of Bratko For CSCE 580 Sp03 Marco.
Midterm Review CMSC421 – Fall CH1 Summary: Intro AI Definitions: dimensions human/rational think/act Three Major Components of AI Algorithms Representation.
1 Using Search in Problem Solving Part II. 2 Basic Concepts Basic concepts: Initial state Goal/Target state Intermediate states Path from the initial.
Using Search in Problem Solving
1 Tree Searching Strategies. 2 The procedure of solving many problems may be represented by trees. Therefore the solving of these problems becomes a tree.
Using Search in Problem Solving
1 Solving Problems by Searching. 2 Terminology State State Space Initial State Goal Test Action Step Cost Path Cost State Change Function State-Space.
Robotics Versus Artificial Intelligence. Search. SearchSearch “All AI is search” “All AI is search”  Game theory  Problem spaces Every problem is a.
Pedagogical Possibilities for the N-Puzzle Problem Zdravko Markov Central Connecticut State University, Ingrid Russell University of Hartford,
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Problem Spaces and Search Fall 2008 Jingsong.
Using Search in Problem Solving
1 Tree Searching Strategies. 2 The procedure of solving many problems may be represented by trees. Therefore the solving of these problems becomes a tree.
HEURISTIC SEARCH. Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited, 2005 Portion of the state space for tic-tac-toe.
1 Midterm Review cmsc421 Fall Outline Review the material covered by the midterm Questions?
Solving Problems by Searching
Artificial Intelligence Course outline Introduction Problem solving Generic algorithms Knowledge Representation and Reasoning Expert Systems Uncertainty.
CSE (c) S. Tanimoto, 2008 Introduction 1 CSE 415 Introduction to Artificial Intelligence Winter 2008 Instructor: Steve Tanimoto
Review: Search problem formulation Initial state Actions Transition model Goal state (or goal test) Path cost What is the optimal solution? What is the.
1 Problem Solving and Searching CS 171/271 (Chapter 3) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l inference l all learning.
CS 415 – A.I. Slide Set 5. Chapter 3 Structures and Strategies for State Space Search – Predicate Calculus: provides a means of describing objects and.
State-Space Searches. 2 State spaces A state space consists of A (possibly infinite) set of states The start state represents the initial problem Each.
1 CSE 4705 Artificial Intelligence Jinbo Bi Department of Computer Science & Engineering
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Search exploring the consequences of possible actions.
Computing & Information Sciences Kansas State University Lecture 8 of 42 CIS 530 / 730 Artificial Intelligence Lecture 8 of 42 William H. Hsu Department.
For Friday Finish reading chapter 4 Homework: –Lisp handout 4.
For Monday Read chapter 4, section 1 No homework..
Search exploring the consequences of possible actions.
CS344: Introduction to Artificial Intelligence (associated lab: CS386)
Computing & Information Sciences Kansas State University Wednesday, 30 Aug 2006CIS 490 / 730: Artificial Intelligence Lecture 4 of 42 Wednesday, 30 August.
Search CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Chapter 5 Constraint Satisfaction Problems
MDPs (cont) & Reinforcement Learning
1 Solving problems by searching Chapter 3. Depth First Search Expand deepest unexpanded node The root is examined first; then the left child of the root;
Goal-based Problem Solving Goal formation Based upon the current situation and performance measures. Result is moving into a desirable state (goal state).
Search (continued) CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
1 CSE 4705 Artificial Intelligence Jinbo Bi Department of Computer Science & Engineering
Slides by: Eric Ringger, adapted from slides by Stuart Russell of UC Berkeley. CS 312: Algorithm Design & Analysis Lecture #36: Best-first State- space.
Knowledge Representation Fall 2013 COMP3710 Artificial Intelligence Computing Science Thompson Rivers University.
3.5 Informed (Heuristic) Searches This section show how an informed search strategy can find solution more efficiently than uninformed strategy. Best-first.
Domain Splitting, Local Search CPSC 322 – CSP 4 Textbook §4.6, §4.8 February 4, 2011.
Search Methodologies Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Blind Search Russell and Norvig: Chapter 3, Sections 3.4 – 3.6 CS121 – Winter 2003.
For Monday Read chapter 4 exercise 1 No homework.
Biointelligence Lab School of Computer Sci. & Eng. Seoul National University Artificial Intelligence Chapter 8 Uninformed Search.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Knowledge Representation
Review of AI Professor: Liqing Zhang
Constraint Propagation
CSE 415 Introduction to Artificial Intelligence Winter 2004
CSE 415 Introduction to Artificial Intelligence Winter 2003
Knowledge Representation
CSE 415 Introduction to Artificial Intelligence Winter 2007
SEG 4560 Midterm Review.
Presentation transcript:

Implementing the Intelligent Systems Knowledge Units of Computing Curricula 2001 Ingrid Russell Todd Neller

FIE, November 5-8, 2003, Boulder, CO Outline CC-2001 Intelligent Systems recommendations Where core IS topics can fit in a constrained curriculum Focus on Search and Constraint Satisfaction exercises for a Data Structures course Online resources we provide

FIE, November 5-8, 2003, Boulder, CO CC-2001 Intelligent Systems Core Units (IS) 10 hours of Intelligent Systems recommended Fundamental Issues (1 hour) Knowledge Representation and Reasoning (4 hours) Search and Constraint Satisfaction (5 hours)

FIE, November 5-8, 2003, Boulder, CO CC-2001 Intelligent Systems Core Units (IS) 10 hours of Intelligent Systems recommended Fundamental Issues (1 hour) Largely philosophical topics, definitions, issues  CC-2001 Social and Professional Issues core (16 hours) Knowledge Representation and Reasoning (4 hours) Search and Constraint Satisfaction (5 hours)

FIE, November 5-8, 2003, Boulder, CO CC-2001 Intelligent Systems Core Units (IS) 10 hours of Intelligent Systems recommended Fundamental Issues (1 hour) Largely philosophical topics, definitions, issues  CC-2001 Social and Professional Issues core (16 hours) Knowledge Representation and Reasoning (4 hours) Propositional and predicate logic, resolution and theorem proving, nonmonotonic inference, probabilistic reasoning, Bayes’ theorem Search and Constraint Satisfaction (5 hours)

FIE, November 5-8, 2003, Boulder, CO CC-2001 Intelligent Systems Core Units (IS) 10 hours of Intelligent Systems recommended Fundamental Issues (1 hour) Largely philosophical topics, definitions, issues  CC-2001 Social and Professional Issues core (16 hours) Knowledge Representation and Reasoning (4 hours) No implementation recommended, coverage is conceptual and mathematical in nature  CC-2001 Discrete Structures core (43 hours) Search and Constraint Satisfaction (5 hours)

FIE, November 5-8, 2003, Boulder, CO CC-2001 Intelligent Systems Core Units (IS) 10 hours of Intelligent Systems recommended Fundamental Issues (1 hour)  CC-2001 Social and Professional Issues core (16 hours) Knowledge Representation and Reasoning (4 hours)  CC-2001 Discrete Structures core (43 hours) Search and Constraint Satisfaction (5 hours) Integrate with a Data Structures and Algorithms course Different data structures yield different search behaviors Powerful illustrations of algorithm tradeoffs between time complexity, space complexity, and solution quality

FIE, November 5-8, 2003, Boulder, CO Search and Constraint Satisfaction Problem spaces Brute-force search (breadth-first, depth- first, depth-first with iterative-deepening) Best-first search (generic best-first, Dijkstra’s algorithm, A*, admissibility of A*) Two-player games (minimax search, alpha- beta pruning) Constraint satisfaction (backtracking and local search methods)

FIE, November 5-8, 2003, Boulder, CO Search and Constraint Satisfaction Problem spaces Brute-force search (breadth-first, depth- first, depth-first with iterative-deepening) Best-first search (generic best-first, Dijkstra’s algorithm, A*, admissibility of A*) Two-player games (minimax search, alpha- beta pruning) Constraint satisfaction (backtracking and local search methods)

FIE, November 5-8, 2003, Boulder, CO “A Taste of AI” Online resources for teaching Problem spaces Brute-force search

FIE, November 5-8, 2003, Boulder, CO A Taste of AI: Brute-Force Search Benefits Strong motivating example for object- oriented design Application of stacks and queues Excellent example in recursive thinking Good illustration of the relationship between stack-based and recursive algorithms Outstanding opportunity to demonstrate design tradeoffs between time, space, and quality of result

FIE, November 5-8, 2003, Boulder, CO A Taste of AI: Brute-Force Search Components Problem Spaces: Object-oriented structure: SearchNode and Searcher Example SearchNode implementations Scalable SearchNode specifications Brute-force search: Implementation, Experimentation, and Analysis Comparisons of Time Complexity, Space Complexity, and Quality (optimality and completeness) tradeoffs Additional topics (e.g. iteration-recursion relationship)

FIE, November 5-8, 2003, Boulder, CO Problem Spaces Search space (initial node + operators), costs, and goal test Example problems: Triangular Peg Solitaire Bucket Problem 53

FIE, November 5-8, 2003, Boulder, CO Problem Spaces (cont.) Scalable problems specifications: Lights Out Puzzle Sliding Tile Puzzle Reverse Puzzle n-Queens Problem

FIE, November 5-8, 2003, Boulder, CO Brute-Force Search Russell & Norvig generalized algorithm: Put root node in data structure While the data structure is not empty: Get node from data structure If node is a goal, terminate w/ success Otherwise, put successors in data structure

FIE, November 5-8, 2003, Boulder, CO Brute-Force Search (cont.) Breadth-first search (queue) Depth-first search (stack) Iterative and recursive implementations Depth-limited search: depth-first search + depth limit Iterative-deepening depth-first search: successive depth limited searches with limit 0, 1, …

FIE, November 5-8, 2003, Boulder, CO Brute-Force Search (cont.) Excellent study in tradeoffs! Time complexity Space complexity Quality Search completeness Solution optimality

FIE, November 5-8, 2003, Boulder, CO Summary CC-2001 Intelligent Systems core units Fundamental Issues unit with Social and Professional Issues units Knowledge Representation and Reasoning unit with Discrete Structures units Search and Constraint Satisfaction unit with Data Structures and Algorithms course

FIE, November 5-8, 2003, Boulder, CO Online Resources “Taste of AI: Brute-Force Search” assignment resources (Java, C++) 53

FIE, November 5-8, 2003, Boulder, CO Example Problems Triangular Peg Solitaire Initial state: 5-on-a-side triangular grid of holes filled with peg except one central hole Operators: removal by linear jumps Goal state: one peg remaining Familiar problem, no cycles, known goal state depth

FIE, November 5-8, 2003, Boulder, CO IS Core Units in CS2 Example Problems Bucket Problem Initial state: empty 5- and 3-unit buckets Operators: fill, empty, or pour one bucket into the other Goal: measure 4 units of liquid Good state space illustration Can fit entire state space on a chalkboard

FIE, November 5-8, 2003, Boulder, CO IS Core Units in CS2 Bucket Problem Initial state: empty 5- and 3-unit buckets Operators: fill, empty, or pour one bucket into the other Goal: measure 4 units of liquid 0,0 5,0 0,3 2,3 5,3 3,0 2,0 0,2 5,2 4,3 4,0 etc.

FIE, November 5-8, 2003, Boulder, CO IS Core Units in CS2 Combinatorial Explosion and Search in Combinatorial Problems Fibonacci Function n - Queens Problem

FIE, November 5-8, 2003, Boulder, CO IS Core Units in CS2 Provided Starter Code Searcher and SearchNode Interface for search algorithms and nodes they manipulate Skeletal unimplemented search classes for searches Detailed comments outline the algorithm Complete implementation of two SearchNode classes (e.g. BucketNode and SolitaireNode) Student implements node for third “scalable” problem (e.g. n-queens, n 2 -1 tile puzzle)

FIE, November 5-8, 2003, Boulder, CO IS Core Units in CS2 A Taste of AI: Brute-Force Search General Search (Russell and Norvig, 1995)

FIE, November 5-8, 2003, Boulder, CO IS Core Units in CS2 A Taste of AI: Best-First Search Small modifications to brute-force algorithms yield rich array of best-first search methods Use priority queue as Queueing-Fn Add heuristic function to search node

FIE, November 5-8, 2003, Boulder, CO IS Core Units in CS2 Two-Player Games Chief benefits: Motivating example for object-oriented design Exercise in recursive thinking Design for real-time constraints Example game: Mancala Provide game-tree search node implementation with trivial heuristic function (e.g. score difference) Students compete to design best heuristic evaluation fn

FIE, November 5-8, 2003, Boulder, CO IS Core Units in CS2 Constraint satisfaction n-queens problem Chronological backtracking Depth-first search (DSP) in space of constraint-satisfying variable assignments E.g. assign position of queen 1, queen 2, …, queen n Two birds with one stone: DFS already implemented!