74 Pages

7-PropositionalLogic

Course: CS 480, Fall 2009
School: Illinois Tech
Rating:
 
 
 
 
 

Word Count: 2007

Document Preview

Logical CS-480 Agents and Inference AIMA, Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem proving forward chaining backward chaining resolution Knowledge bases Knowledge base = set of sentences in a formal language Declarative approach to building an...

Register Now

Unformatted Document Excerpt

Coursehero >> Illinois >> Illinois Tech >> CS 480

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Logical CS-480 Agents and Inference AIMA, Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem proving forward chaining backward chaining resolution Knowledge bases Knowledge base = set of sentences in a formal language Declarative approach to building an agent (or other system): Tell it what it needs to know Then it can Ask itself what to do - answers should follow from the KB Agents can be viewed at the knowledge level i.e., what they know, regardless of how implemented Or at the implementation level i.e., data structures in KB and algorithms that manipulate them A simple knowledge-based agent The agent must be able to: Represent states, actions, etc. Incorporate new percepts Update internal representations of the world Deduce hidden properties of the world Deduce appropriate actions Wumpus World PEAS Performance measure gold +1000, death -1000 -1 per step, -10 for using the arrow Environment Squares adjacent to wumpus are smelly Squares adjacent to pit are breezy Glitter iff gold is in the same square Shooting kills wumpus if you are facing it Shooting uses up the only arrow Grabbing picks up gold if in same square Releasing drops the gold in same square Sensors: Stench, Breeze, Glitter, Bump, Scream Actuators: Left turn, Right turn, Forward, Grab, Release, Shoot Wumpus world characterization Fully Observable No only local perception Deterministic Yes outcomes exactly specified Episodic No sequential at the level of actions Static Yes Wumpus and Pits do not move Discrete Yes Single-agent? Yes Wumpus is essentially a natural feature Exploring a wumpus world Exploring a wumpus world Exploring a wumpus world Exploring a wumpus world Exploring a wumpus world Exploring a wumpus world Exploring a wumpus world Exploring a wumpus world Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language Semantics define the "meaning" of sentences; i.e., define truth of a sentence in a world E.g., the language of arithmetic x+2 y is a sentence; x2+y > {} is not a sentence x+2 y is true iff the number x+2 is no less than the number y x+2 y is true in a world where x = 7, y = 1 x+2 y is false in a world where x = 0, y = 6 Entailment Entailment means that one thing follows from another: KB Knowledge base KB entails sentence if and only if is true in all worlds where KB is true E.g., the KB containing the Giants won and the Reds won entails Either the Giants won or the Reds won E.g., x+y = 4 entails 4 = x+y Entailment is a relationship between sentences (i.e., syntax) that is based on semantics Models Logicians typically think in terms of models, which are formally structured worlds with respect to which truth can be evaluated We say m is a model of a sentence if is true in m M() is the set of all models of Then KB iff M(KB) M() E.g. KB = Giants won and Reds won = Giants won Entailment in the wumpus world Situation after detecting nothing in [1,1], moving right, breeze in [2,1] Consider possible models for KB assuming only pits 3 Boolean choices 8 possible models Wumpus models Wumpus models KB = wumpus-world rules + observations Wumpus models KB = wumpus-world rules + observations 1 = "[1,2] is safe", KB 1, proved by model checking Wumpus models KB = wumpus-world rules + observations Wumpus models KB = wumpus-world rules + observations 2 = "[2,2] is safe", KB 2 Inference KB i = sentence can be derived from KB by procedure i Soundness: i is sound if whenever KB i , it is also true that KB Completeness: i is complete if whenever KB , it is also true that KB i Preview: We will (soon) define a logic (first-order logic) which is expressive enough to say most things of interest, and for which there exists a sound and complete inference procedure. That is, the procedure will answer any question whose answer follows from what is known by the KB. Propositional logic: Syntax Propositional logic is the simplest logic illustrates basic ideas The proposition symbols P1, P2 etc are sentences If S is a sentence, S is a sentence (negation) If S1 and S2 are sentences, S1 S2 is a sentence (conjunction) If S1 and S2 are sentences, S1 S2 is a sentence (disjunction) If S1 and S2 are sentences, S1 S2 is a sentence (implication) If S1 and S2 are sentences, S1 S2 is a sentence (biconditional) Propositional logic: Semantics A model specifies a true/false value for each proposition symbol E.g. P1,2 false P2,2 true P3,1 false With these symbols, 8 possible models can be enumerated automatically. Rules for evaluating truth with respect to a model m: S is true iff S is false S1 S2 is true iff S1 is true and S2 is true S1 S2 is true iff S1is true or S2 is true S1 S2 is true iff S1 is false or S2 is true i.e., is false iff S1 is true and S2 is false S1 S2 is true iff S1S2 true and S2S1 is true Simple recursive process evaluates an arbitrary sentence, e.g., P1,2 (P2,2 P3,1) = true (true false) = true true = true Truth tables for connectives Wumpus world sentences Let Pi,j be true iff there is a pit in [i, j]; Let Bi,j be true iff there is a breeze in [i, j]: P1,1 B1,1 B2,1 "Pits cause breezes in adjacent squares: B1,1 B2,1 (P1,2 P2,1) (P1,1 P2,2 P3,1) Truth tables for inference Inference by enumeration Depth-first enumeration of all models is sound and complete For n symbols, time complexity is O(2n), space complexity is O(n) Logical equivalence Two sentences are logically equivalent iff they true in exactly the same models: iff and Validity and satisfiability A sentence is valid if it is true in all models, e.g., True, A A, A A, (A (A B)) B Validity is connected to inference via the Deduction Theorem: KB if and only if (KB ) is valid A sentence is satisfiable if it is true in some model e.g., AB, C A sentence is unsatisfiable if it is true in no models e.g., A A Satisfiability is connected to inference via the following: KB if and only if (KB is unsatisfiable ) Proof methods Proof methods divide into (roughly) kinds: Application two of inference rules Legitimate (sound) generation of new sentences from old Proof = a sequence of inference rule applications Can use inference rules as operators in a standard search algorithm Typically require transformation of sentences into a normal form Model checking truth table enumeration (always exponential in n) improved backtracking, e.g., Davis--Putnam-Logemann-Loveland (DPLL) heuristic search in model space (sound but incomplete) e.g., min-conflicts-like hill-climbing algorithms Inference by resolution Conjunctive Normal Form (CNF) conjunction of disjunctions of literals E.g., (A B) (B C D) Resolution inference rule (for CNF): li lk, m1 mn li li-1 li+1 lk m1 mj-1 mj+1 mn ... where li and mj are complementary literals. E.g., P1,3 P2,2, P1,3 P2,2 Resolution is sound and complete for propositional logic } clauses Resolution Soundness of resolution inference rule: (li li-1 li+1 lk) li mj (m1 mj-1 mj+1 mn) ... (li li-1 li+1 lk) (m1 mj-1 mj+1 mn) ... Conversion to CNF B1,1 (P1,2 P2,1) 1. Eliminate , replacing with ( ) ). ( (B1,1 (P1,2 P2,1)) ((P1,2 P2,1) B1,1) (B1,1 P1,2 P2,1) ((P1,2 P2,1) B1,1) 2. Eliminate , replacing with . 3. Move inwards using de Morgan's rules and double-negation: (B1,1 P1,2 P2,1) ((P1,2 P2,1) B1,1) 4. Apply distributivity law (over and flatten: ) (B1,1 P1,2 P2,1) (P1,2 B1,1) (P2,1 B1,1) Resolution proof algorithm Proof by contradiction, i.e., show KB unsatisfiable Resolution example KB = (B1,1 (P1,2P2,1)) B1,1 = P1,2 Forward and backward chaining Horn Form (restricted) KB = conjunction of Horn clauses Horn clause = E.g., C (B A) (C D B) proposition symbol; or (conjunction of symbols) symbol Modus Ponens (for Horn Form): complete for Horn KBs 1, ,n, 1 n Can be used with forward chaining or backward chaining. These algorithms are very natural and run in linear time Forward chaining Idea: fire any rule whose premises are satisfied in the KB, add its conclusion to the KB, until query is found Forward chaining algorithm Forward chaining is sound and complete for Horn KB Forward chaining example Forward chaining example Forward chaining example Forward chaining example Forward chaining example Forward chaining example Forward chaining example Forward chaining example Proof of completeness FC derives every atomic sentence that is entailed by KB 1. 2. 3. FC reaches a fixed point where no new atomic sentences are derived Consider the final state as a model m, assigning true/false to symbols Every clause in the original KB is true in m a1 ak b 1. 2. Hence m is a model of KB If KB q, q is true in every model of KB, including m 3. Backward chaining Idea: work backwards from the query q: to prove q by BC, check if q is known already, or prove by BC all premises of some rule concluding q Avoid loops: check if new subgoal is already on the goal stack Avoid repeated work: check if new subgoal 1. has already been proved true, or 2. has already failed 3. Backward chaining example Backward chaining example Backward chaining example Backward chaining example Backward chaining example Backward chaining example Backward chaining example Backward chaining example Backward chaining example Backward chaining example Forward vs. backward chaining FC is data-driven, automatic, unconscious processing, e.g., object recognition, routine decisions May do lots of work that is irrelevant to the goal BC is goal-driven, appropriate for problem-solving, e.g., Where are my keys? How do I get into a PhD program? Complexity of BC can be much less than linear in size of KB Efficient propositional inference Two families of efficient algorithms for propositional i...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Illinois Tech - CS - 441
Grading Criteria for Project Part-B FALL 2007NAMES: _Design:1. javadocs : authors and version variables all methods all classes 2. DESCRIPTIONS IN WORD DOCUMENT:Points: 4 1 1 1 1 1--Total 5Code and Presentation: FUNCTIONALITY/APPEARANCE1.
Illinois Tech - CS - 441
Grading Criteria for Project Part-B SPRING 2008NAMES: _Design:1. javadocs : authors and version variables all methods all classes 2. DESCRIPTIONS IN WORD DOCUMENT:Points: 4 1 1 1 1 1--Total 5Code and Presentation: FUNCTIONALITY/APPEARANCE1
Illinois Tech - CS - 201
CS201 In Class Assignment - Form groups of 3 or 4 students. Your group will be assigned an example implementation of the below problem (A, B or C). I have also emailed all three implementations to everyone. By the end of class today, have your group
Illinois Tech - CS - 201
CS201 EXAM 1 Fall 2007 NAME _ 1. (20 points) Write a java code segment that will determine if the digits of a user entered, threedigit number are all odd, all even, or mixed odd and even. You can assume the user enters an integer.
Illinois Tech - CS - 201
CS201INCLASSASSIGNMENTNAME_SomepracticeonRecursion Writerecursive methods forthefollowing: 1. Calculate thenth term inthefibonaccisequence 2. Find thelargest integer inan array and return itsindex 3. Doalinear search forakeyonan array ofintegers,
Illinois Tech - CS - 201
CS201Fall2007EXAM#3NAME_ 1)(25points)WriteaVehicleclassforatollbooth collection system (standard cartollof50centsfor automatic,$1formanual) with thefollowing: Necessary constants Instance variables fortheVehicle's o tolltype String,A forautomatic,M
Illinois Tech - CS - 201
CS201EXAM2Fall2007 NAME_ 1.(50points)Writeaprogram that plays aguessing game. Thegame willpickarandom number between 2 setvalues (alow limitand high limit)and prompt theuser toguess that number untilheorsheguesses correctly.On each wrong guess,thega
Illinois Tech - CS - 201
CS201INCLASSASSIGNMENTNAME_Designandimplemementaclassforastopwatch.Allowtheusertostart,stopandresetthestopwatchanddisplay (toString)thetimeinseconds. ExtraCredit:Display(toString)thetimeashh:mm:ssLimitthetimeyoucancountto24hours,thenrolloverto0ag
Illinois Tech - CS - 201
CS201INCLASSASSIGNMENTNAME_SomepracticeonInhertiance Suppose you wanted aclassthat would allow you touse fractions inaprogram (weareNOT reducing orsimplifying fractions).Remember avalid fraction isan integer over anonzero integer. Wewant both a
Illinois Tech - CS - 201
CS201 EXAM 2 MAKEUP Fall 2007 NAME _ 1. (50 points) Write a program that plays a guessing game. The game will pick a random number between 2 set values (a low limit and high limit) and prompt the user to guess that number until
Illinois Tech - CS - 201
CS201 PLACEMENT EXAM 45 MINUTES NAME _ 1. Please write code / pseudocode for two new functions for the "ThreeIntMath " class: "polynomial" that assumes the three integers x, y, z, for an object are the integer coefficients of a pol
Illinois Tech - CS - 115
CS 115 FALL 2007 Lab Problem #12 CD Compilation Part A, IndividualIndividually read the memo and article below.Internal Memo Brand New Sound Co. To: New Hire Engineering Team From: Billy Valens, Vice President of Marketing Re: Product Mixing Hel
Illinois Tech - CS - 441
SPRING 08 Project B Version 1You must answer the questions below which are worth 10 points. Every point you loose by not giving the correct answer gets subtracted from your grade for your project during your presentation. Question 1: In a a RMI dis
Illinois Tech - CS - 116
102726710 graduated104685526 graduated105708840 inactive106703604 inactive108788932 inactive110724715 graduated112482628 inactive-n113740426 graduated115863141 graduated116729274 inactive117669891 graduated118703144 inactive118726395 inac
Illinois Tech - CS - 116
IIT - CS116 Lab 0file:/C|/Bauer/CS116/www/labs/Lab0/Lab0.htmCS 116 - Lab 0 Objectives:1. 2. 3. 4. 5. 6.Tasks:Enter, compile, and run simple Java programs without using an IDE. (the standard "Hello World!" first program). Recognize syntax err
Illinois Tech - CS - 116
Encapsulation & Selection1EncapsulationClass implementation details are hidden from the programmer who uses the class. This is called encapsulation Public methods of a class provide the interface between the application code and the class object
Illinois Tech - CS - 116
Chapter 9 TopicsAtomic Data Types q Composite Data Types q One-Dimensional Arrays q Examples of Declaring and Processing Arrays q Arrays of Objects q Arrays and Methods q Special Kinds of Array Processingq1Java Primitive Data Typesprimitivein
Illinois Tech - CS - 116
Chapter 10 Inheritance, Polymorphism, and Scope1Chapter 10 Topicsq qq q q q q qInheritance Inheritance and the Object-Oriented Design Process How to Read a Class Hierarchy Derived Class Syntax Scope of Access Implementing a Derived Class Copy
Illinois Tech - CS - 116
Chapter 11 Array-Based Lists1Chapter 11 Topicsqq q q qq qInsertion into and Deletion from an Unordered List Straight Selection Sort Insertion into and Deletion from a Sorted List Abstract classes Searching s Sequential s Binary Complexity o
Illinois Tech - CS - 116
q Chapter q Writing7.8 - Exceptionsto a File Complexityq Algorithmic1ExceptionsqIllegal operations at run time can generate an exception, for example:s ArrayIndexOutOfBoundsException s ArithmeticException s NullPointerException s InputM
Illinois Tech - CS - 116
Chapter 8 Object-OrientedSoftware Design and Implementation TopicsSoftware Design Strategies q Objects and Classes Revisited q Object-Oriented Design q The CRC Card Design Process q Functional Decomposition q Object-Oriented Implementationq1So
Illinois Tech - CS - 116
1.(5 points) Understand and correct Java compile errors and runtime errors (conditions and iteration). Programming and Problem Solving with Java, Page 271, #10if (Math.abs(x2-x1)<.00001) System.out.println("Slope undefined");else { m=(y2-y1)/(
Illinois Tech - CS - 116
1. (10 points) Determine the time complexity of simple algorithms. PREDICTED WHYSELECTION SORT n^2 2 nested loopsRANDOM inner loop n, n-1, n-2, n-3, etc n+(n-1)+(n-2)+. =
Illinois Tech - CS - 116
1.(6 points) Explain the basics of the concept of recursion. 1. (A) The number of elements in arr that are less than num 2. (D) 43211234 3. (D) 2432.(14 points) Design/Code an object for a multi-object application containing inheritance.
Illinois Tech - CS - 116
0.0178173520.0240969550.0482115620.0697062060.0787579870.0821025160.0851559690.0887409080.094427750.1313963520.133466550.1475134060.1476946620.1611041470.1623873830.1654102610.1658394070.1789697390.1838542270.1955364310.210542828
Illinois Tech - CS - 116
1. (20 points) Design a user-defined object containing an array. (CONTINUATION OF LAB 2,5,6)There is ALOT of flexibility on student answers on this one.Key idea is how they are protecting the cases from EVERYONE until you open a case.public cla
Illinois Tech - CS - 116
CS 116 SPRING 2008 , SECS. 3-6 LAB #10 ARRAYLIST SOLUTIONExercise #1 = #4: See ExerciseApp in suggested coded solution. Solution: I took a List class and derived a UserList class and overrode some methods. Most students will just create a UserLis
Illinois Tech - CS - 116
CS 116 SPRING 2008 , SECS. 3-6 LAB #5 ARRAYS SOLUTION Homework: Programming & Problem Solving with Java,2nd Ed, Dale & Weems: p. 518: #1, #2, #3 Exercise #1: See coded solution. Exercise #2: See coded solution. Write the pseudocode to solve this pr
Illinois Tech - CS - 116
CS 116 SPRING 2008 , SECS. 3-6 LAB #3 SELECTION + DEBUG SOLUTIONHomework: Programming & Problem Solving with Java,2nd Ed, Dale & Weems: (1 point) p. 270: #6, 9, 10, 116.if (year % 4 = 0) System.out.print(year + " is a leap year."); else { year
Illinois Tech - CS - 116
CS 116 SPRING 2008 , SECS. 3-6 LAB #9 POLYMORPHISM Objective 1. 2. 3. 4.To learn to use polymorphism. To learn to read and handle an input file with two input formats. To learn to use an Abstract class. To learn the difference between private and
Illinois Tech - CS - 116
CS 116SPRING 2008 WEEKLY LAB PROBLEM #11 SEARCHING AND SORTING AN ARRAY LIST SOLUTION Ex. #1: See exercises package. Test valuepluShort.txtSearch result before selection sort:found 3016 at: 56 found 3082 at: 28 found 3251 at: -1 found 3161 at: 48
Illinois Tech - CS - 116
CS 116 SPRING 2008 , SECS. 3-6 LAB #2 USER-DEFINED CLASS + APPLICATION Objective: 1. Learn to write java arithmetic expressions. 2. Learn to use explicit casting. 3. Learn to use static methods from the Math API 4. Learn to use precedence of operat
Illinois Tech - CS - 116
CS 116 SPRING 2008, Sec. 3-6 LAB #1 USER-DEFINED CLASS WITH STATIC METHODS SOLUTION Homework: p. 100, #15: (1 point)This program may be corrected in several ways. Here is one correct version: public class LotsOfErrors { public static void main(Stri
Illinois Tech - CS - 116
CS 116SPRING 2007 WEEKLY LAB PROBLEM #8A ID ARRAY LIST Object: To learn how to implement an array list of objects Problem: The philanthropic organization would like to be able to have non-technical personnel manipulate the data stored in the data st
Illinois Tech - CS - 116
CS 116 SPRING 2008 , SECS. 3-6 LAB #8 INHERITANCE, COMPOSITION SOLUTIONExercise #1:Rectangle: length: 4 width: 5 area 20 perimeter: 18 Box: length: 8 width: 6 area 48 perimeter: 28 depth: 4 volume: 192Exercise #2:Length: 8 Width: 6 Width: 12
Illinois Tech - CS - 116
CS 116 SPRING 2008 , SECS. 3-6 LAB #4 ITERATION, FILE I/O SOLUTIONHomework: Programming & Problem Solving with Java,2nd Ed, Dale & Weems: p. 333: #2, 3, 5, 8, 10, 11 Grade #2, 5, 10 1 point apiece2. while ( ! dangerous ) { pressure = datain.nex
Illinois Tech - CS - 116
CS 116SPRING 2008 WEEKLY LAB PROBLEM #11 SEARCHING AND SORTING AN ARRAY LIST Objective: 1. To start coding your final project. 2. To search an array of objects using sequential search. 3. To sort an array of objects using selection sort. 4. To search
Illinois Tech - CS - 116
CS 116 SPRING 2008 , SECS. 3-6 LAB #9 POLYMORPHISM SOLUTION Exercise #1: See ex1_4 Exercise #2: See ex1_4 Exercise #3: See ex1_4. Be sure student have called the correct calcArea() method using polymorphism. Exercise #4: See ex 1_4. Be sure the stu
Illinois Tech - CS - 116
CS 116 SPRING 2008 , SECS. 3-6 LAB #4 ITERATION, FILE I/OObjective: 1. To learn to use iteration to solve a problem. 2. To learn to read and process data from a file. 3. To learn to merge two files. 4. To learn to use nested loops. Homework: Prog
Illinois Tech - CS - 115
Poor:12/40The end product doesn't work at all. They missed key points on the assignment (such as drawing up an API)Also, most of their group did not show up to the second session.Average:30/40The end product has major problems, and some o
Illinois Tech - CS - 115
/* # * cs115 * section3 * homework 2 * 7th September 2007 */package homework2; public class Homework { /* * @param args */ public static void main(String[] args) { / TODO Auto-generated method stub/ System.out.println("my name is #"); System.out.prin
Illinois Tech - CS - 115
Find a set of instructions for operating an appliance that requires you to set the date and time, such as a DVD player, microwave oven, clock radio, or a computer. Identify the obvious objects in the instructions. Then identify which portions of this
Illinois Tech - CS - 115
08/31/2007 HOMEWORK CS115004*2.Find a set of instructions for operating an appliance that requires you to set the date and time, such as a DVD player, kitchen oven, clock radio, or a computer, identify the obvious objects in the instructions. The
Illinois Tech - CS - 115
/* * # * cs115 sec007 * Lab2 */ package lab2; public class CrissCross { public static void main(String[] args) { char star = '*'; char space = ' '; String string1 = " * String string2 = "* * * * * * * * "; *";System.out.println(string2); System.out
Illinois Tech - CS - 115
public class JackBanner { /* * @param args */ public static void main(String[] args) { String jack0 = ("Black Jack"); String jack1 = ("#"); char someone = 'j'; String jays = "j j j j j j j"; " " " " System.out.println(jack0+" "+jack0+" "+jack0+" "+ja
Illinois Tech - CS - 115
package Collection; public class cds { private String artiste; private int numCds; / default constructor public cds() { artiste="Taylor Swift"; numCds=1; } /constructor public cds(String newArtiste, int newNumCds) { artiste = newArtiste; numCds = new
Illinois Tech - CS - 115
No example poor lab for Lab 1 currently exists. None of the students that produced poor labs submitted them to blackboard's digital dropbox.?/15The Homework is poor; it is from the S.Pasari, and is poor because it does not go into detail, or eve
Illinois Tech - CS - 115
The lab is from L. Xu, and it is poor because it completed the spirit of the assignment, while ignoring most of the rules. It had no string of spaces, and each line did not relate to the others. It was more like someone had just started throwing word
Illinois Tech - CS - 331
2 JUNITCS 331 Lab 2: JUnit and Array Lists Spring 20081 IntroductionThe title of this lab is Array List, but is really about JUnit, the testing framework we will be using in this course.1.1ObjectivesYour objective is to become familiar with
Illinois Tech - CS - 331
Linked Lists3 YOUR WORKCS 331 Lab 3: Linked Lists Spring 20081 IntroductionIn this lab you will code some of the basic functions for a singly linked list, and write tests to verify that they work correctly.1.1ObjectivesYour objectives for
Illinois Tech - CS - 331
Stacks and Queues2 GIVEN FILESCS 331 Lab: Stacks and Queues Spring 20081 IntroductionAs we discussed in lecture, stacks and queues are easy to code if you already have a working linked list implementation. In this lab, you will encapsulate a li
Illinois Tech - CS - 331
Binary Search Trees3 GIVEN FILESCS 331 Lab: Binary Search Trees Spring 20081 Objectives Be able to use the find and add traversal patterns. Be able to write delete for the three cases. Have experience using a dictionary style container. Use
Illinois Tech - CS - 331
Iterators1 GIVEN FILESCS 331 Lab 5: Iterators Fall 2007Rev : 4700.1ObjectivesIn this lab you will create two iterators for a singly linked list. Have experience using the Interface feature of Java. Know how to implement a traversal itera
Illinois Tech - CS - 331
Stacks and Queues2 GIVEN FILESCS 331 Lab: Stacks and Queues Fall 2007 Rev : 4691 IntroductionAs we discussed in lecture, stacks and queues are easy to code if you already have a working linked list implementation. In this lab, you will encapsul
Illinois Tech - CS - 331
Binary Search Trees3 GIVEN FILESCS 331 Lab: Binary Search Trees Fall 2007 Rev : 4861 Objectives Be able to use the find and add traversal patterns. Be able to write delete for the three cases. Have experience using a dictionary style containe
Illinois Tech - CS - 331
Iterators3 GIVEN FILESCS 331: Doubly Linked Lists Fall 2007Rev : 4801Objectives Create a doubly linked list. Have more experience using the Interface feature of Java. Use inheritance to enable you to reuse code.In this lab you will crea
Illinois Tech - CS - 331
Linked Lists3 YOUR WORKCS 331 Lab 3: Linked Lists Fall 2007Rev : 4531IntroductionIn this lab you will code some of the basic functions for a singly linked list, and write tests to verify that they work correctly.1.1ObjectivesYour obj
Illinois Tech - CS - 331
Traversals4 YOUR WORKCS 331 Lab: Tree Traversals Fall 2007 Rev : 2301 ObjectivesIn this lab you will create a binary search tree and write some traversal iterators for it. Be able to write iterators for DFS, BFS, Frontier, Preorder, Postorder,
Illinois Tech - CS - 480
CS-480Artificial Intelligence:Planning and ControlShlomo Argamon SB 237C argamon@iit.eduAdministrivia TA: Kenneth Bloom (kbloom1@iit.edu) SB 003B Book: Stuart Russell and Peter Norvig, Artificial Intelligence: A Modern Approach, Prentice Hall
Illinois Tech - CS - 445
Principals of Object Orientation OO Analysis Modeling with UML UML Views User model view Structural view Behavioral view Implementation view Environment viewCS585Functional View Static View Dynamic View1/Principals of Object Orientati
Illinois Tech - CS - 445
OO Application FrameworksGUI Chapter 8CS445 Object Oriented Design and ProgrammingClass ScheduleDay Tuesday Thursday Tuesday Thursday Tuesday Thursday Tuesday Thursday Tuesday Thursday Tuesday Thursday Tuesday Thursday Date Topic 31-Oct Fram