67 Pages

Logic-programming-5

Course: CS 314, Fall 2002
School: Rutgers
Rating:
 
 
 
 
 

Word Count: 3435

Document Preview

Check Admin sakai to make sure your grades are what you expect Homework 4, due monday before lecture Midterm Programming Problems #1, #2, #3, #6 can earn back up to 2 points per problem figure out and type up correct solution in electronic form email mcore AT rci.rutgers.edu and elqursh AT cs.rutgers.edu DUE MONDAY BEFORE LECTURE Logic Programming, MGCore, BG Ryder 1 Admin either download prolog from...

Register Now

Unformatted Document Excerpt

Coursehero >> New Jersey >> Rutgers >> CS 314

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.
Check Admin sakai to make sure your grades are what you expect Homework 4, due monday before lecture Midterm Programming Problems #1, #2, #3, #6 can earn back up to 2 points per problem figure out and type up correct solution in electronic form email mcore AT rci.rutgers.edu and elqursh AT cs.rutgers.edu DUE MONDAY BEFORE LECTURE Logic Programming, MGCore, BG Ryder 1 Admin either download prolog from http://www.swi-prolog.org or use it from spanky.rutgers.edu (command is called pl) Logic Programming, MGCore, BG Ryder 2 Course Progress Python imperative programming paradigm use of iteration / polymorphism Regular Expressions / Context Free Grammars Scheme and Python functional programming paradigm Semantics Prolog logic programming paradigm Semantics (cont) parameter passing, data types Logic Programming, MGCore, BG Ryder 3 Logic Programming Paradigm formulate your problem as a fact to be proven given other facts and rules facts and rules encoded in logic Prolog: uses horn clause syntax subset of first order predicate logic query: fact to be proven solution: can proof be found? what are the values of variables used in the proof? Logic Programming, MGCore, BG Ryder 4 Logic Programming solution comprises: result: proof succeeds or not variables set during proof Separate problem description from how to solve the problem Comerical interpreters available: http://www.sics.se/isl/sicstuswww/site/customers. html Wikipedia: http://en.wikipedia.org/wiki/Prolog a tool that can be used in conjunction with other languages/paradigms Logic Programming, MGCore, BG Ryder 5 Horn Clauses raining. cold. body . acts to end Horn clauses in Prolog body1 , ... , bodyn . asserts body1...bodyn are true Logic Programming, MGCore, BG Ryder 6 Horn Clauses rainy(rochester). cold(rochester). body . acts to end Horn clauses in Prolog body1 , ... , bodyn . asserts body1...bodyn are true Logic Programming, MGCore, BG Ryder 7 Horn Clauses snowy(X) :- rainy(X), cold(X). head implies and . acts to end Horn clauses in Prolog body head :- body1 , ... , bodyn . if body1...bodyn are true then head is true if body then head is asserted to be true Logic Programming, MGCore, BG Ryder 8 Prolog Based on predicate calculus Main language constructs variables / constants youve seen them before but remember the Prolog convention: variables start with a CAPITAL letter predicates define relations: rainy(rochester). means rochester belongs to set of rainy things lecturer(core,cs314). means pair: core, cs314 belongs to set of lecturers and their classes Logic Programming, MGCore, BG Ryder 9 Prolog Problem Solving Programmer specifies facts and rules specifics query to be proven Prolog backward chaining (i.e., start with query and match against facts and rules) if query matches fact then query is proven if query matches left hand side of rule, then try to prove right hand side elements (recursively) work left to right if fail then backtrack and try again using different rules Logic Programming, MGCore, BG Ryder 10 Resolution Resolution principle: Given Horn clauses C1 and C2 If head of C1 matches one of the terms of C2s body then this term can be replaced with the body of C1 Ex. snowy(X) :- rainy(X), cold(X). has_snowplows(X) :- snowy(X). has_snowplows(X) :- rainy(X), cold(X) Logic Programming, MGCore, BG Ryder 11 variables snowy(X) :- rainy(X), cold(X). head implies and . acts to end Horn clauses in Prolog body all three Xs here must have same value Logic Programming, MGCore, BG Ryder 12 Unification Variables appear in Horn clauses with no definition If we wrote these clauses in first order predicate calculus we would explicit define the variables as follows: variables that appear in the head are universally quantified: e.g., forall(X) snowy(X) :- rainy(X) , cold(X) variables that only appear in the body are existentially quantified: e.g., forall(X) forall(Y) sister_of(X,Y) :exists(M) exists(F) female(X) , parents(X,M,F) , parents(Y,M,F) Logic Programming, MGCore, BG Ryder 13 Unification Prolog binds variables during proof We can use the = operator to check whether two atomic formula unify e.g., a =a. A=a. likes(eve,tom) = likes(eve,tom). see page 566 of text Logic Programming, MGCore, BG Ryder 14 Unification Rules Constants must match Predicates with the same name match if their arguments match recursively an uninstantiated variable unifies with anything if it unifies with a constant or instantiated variable, it takes the value of that term if two uninstantiated variables unify they are linked to always share the same value Logic Programming, MGCore, BG Ryder 15 Unification Examples a = a. a = b. X = Y. X = Y, X = a. X = Y, X = a, Y = b. mortal(socrates) = mortal(X). Logic Programming, MGCore, BG Ryder 16 Experimenting with Prolog Queries Type facts Query to get results use examples from text and/or make up your own: rainy(X). takes(jane_doe, cs254). takes(X,cs254). Logic Programming, MGCore, BG Ryder 17 Experimenting with SWI-Prolog http://www.swi-prolog.org (works for Windows XP maybe others) type facts and rules into text file default working directory is: My Documents/Prolog try File menu option Navigator to change [test]. syntax for load file test.pl from working directory dont forget period at end Logic Programming, MGCore, BG Ryder 18 Experimenting with SWI-Prolog If multiple matches are available, typing ; will list them When no more matches are available, interpreter notifies you with ?- prompt (you cant type ; at the ?- prompt) Try out: A = B. (i.e., is it true that A equals B?). SWI-Prolog gives a smart answer Logic Programming, MGCore, BG Ryder 19 Queries (Asking Questions) likes(eve, pie). food(pie). likes(al, eve).food(apple). likes(eve, tom). person(tom). likes(eve, eve). ?-likes(al,eve). ?-likes(al, pie) ?-likes(eve,al). ?-likes(al,Who). ?-likes(eve,W). Logic Programming, MGCore, BG Ryder 20 Queries (Asking Questions) likes(eve, pie). food(pie). likes(al, eve).food(apple). likes(eve, tom). person(tom). likes(eve, eve). ?-likes(al,eve). yes query ?-likes(al, pie) no answer ?-likes(eve,al). no variable ?-likes(al,Who). Who=eve ?-likes(eve,W). W=pie ; answer with W=tom ; variable binding W=eve ; force search for MGCore, BG Ryder more answers 21 Logic Programming, Basic Prolog Queries List all cases where someone is a person List all pairs of some entity liking another entity List all pairs of some person liking another entity List all entities liked by both eve and al e.g., linked_to(homepage314,Y), linked_to(Y,Z) Logic Programming, MGCore, BG Ryder 22 Basic Prolog Queries List cases where predicate is true e.g., person(X). likes(X,Y). In case of multiple matches, type either ; or c Use variable unification e.g., likes(X,X). likes(X,Y), person(X), food(Y). likes(eve,Y) , likes(al,Y). e.g., linked_to(homepage314,Y), linked_to(Y,Z) Logic Programming, MGCore, BG Ryder 23 Prolog Problem Solving Prolog Interpreter ?- [royalty]. % select graphical debugger from debug menu ?- spy(sister_of). ?- sister_of(alice,Z). Y = edward ; Y = alice DATABASE: royalty.pl 2. male(albert). 3. female(alice). 4. male(edward). 5. female(victoria). 6. parents(edward,victoria,albert). 7. parents(alice,victoria,albert). 8. sister_of(X,Y) :- female(X), parents(X,M,F), parents(Y,M,F). Logic Programming, MGCore, BG Ryder 24 Prolog Problem Solving Prolog Interpreter ?- [royalty]. ?- sister_of(alice,Z). Y = edward ; Y = alice 1. match query to rule in #7 2. bind X=alice, Y=Z 3. prove female(alice) 4. prove parents(alice,M,F) bind M=victoria, F=albert 5. prove parents (Z,victoria,albert) first match Z=edward Note, each use of the rule involves local variables, so each use is independent by default. DATABASE: royalty.pl 2. male(albert). 3. female(alice). 4. male(edward). 5. female(victoria). 6. parents(edward,victoria,albert). 7. parents(alice,victoria,albert). 8. sister_of(X,Y) :- female(X), parents(X,M,F), parents(Y,M,F). Logic Programming, MGCore, BG Ryder 25 Prolog Problem Solving Prolog Interpreter ?- [royalty]. ?- sister_of(alice,Z). Y = edward ; Y = alice 1. match query to rule in #7 2. bind X=alice, Y=Z 3. prove female(alice) 4. prove parents(alice,M,F) bind M=victoria, F=albert 5. prove parents (Z,victoria,albert) first match Z=edward, second match Z=alice Each recursive prove has its own copy of rules, facts and variable bindings 26 DATABASE: royalty.pro 2. male(albert). 3. female(alice). 4. male(edward). 5. female(victoria). 6. parents(edward,victoria,albert). 7. parents(alice,victoria,albert). 8. sister_of(X,Y) :- female(X), parents(X,M,F), parents(Y,M,F). Logic Programming, MGCore, BG Ryder Solution: Additional Notation (pt 1) Prolog can either prove or fail to prove a query (cant say the query is actually false) The not operator \+ applied to a predicate creates an expression that is proven when Prolog fails to prove the predicate \+likes(eve,al) can be proven since this fact is not in the database Logic Programming, MGCore, BG Ryder 27 Solution: Additional Notation (pt 2) == (same value) operator is similar to = (unifies) but simpler (no recursive checking) add constraint that you cant be your own sister: sister_of(X,Y) :- female(X), parents(X,M,F), parents(Y,M,F) , \+(X == Y). Logic Programming, MGCore, BG Ryder 28 Additional Notation NOT = \+ likes(eve,Y) , \+food(Y) Note, order is important. Dont type: \+food(Y), likes(eve,Y) Prolog evaluates left to right NOT acts as a constraint, Y must be bound first Prolog attempts to prove whatever is inside the not, if it fails, the not succeeds but no variable bindings are returned (e.g., it doesnt return all the possible values that Y could take) Logic Programming, MGCore, BG Ryder 29 Additional Notation ; = OR likes(eve,Y) , (food(Y);person(Y)). _ = temporary variable, dont care, arent reusing Logic Programming, MGCore, BG Ryder 30 Transitive Relations parents(jane,bob,sally). parents(john,bob,sally). parents(sally,al,mary). sally bob parents(bob,mike,ann). parents(mary,joe,lee). jane john ancestor(X,Y) :- parents(X,Y,_). ancestor(X,Y) :- parents(X,_,Y). ancestor(X,Y) :- parents(X,W,_),ancestor(W,Y). ancestor(X,Y) :- ancestor(W,Y). parents(X,_,W), X= al ; ?- ancestor(jane,X). X = mary ; X = bob ; X = joe ; X = sally ; X = lee X = mike ; Logic Programming, MGCore, BG Ryder X = ann ; Family tree lee joe ann mike mary al 31 Prolog v. Logical Programming NOT operator Prolog: \+(predicate(...)) can be proven if predicate(...) cannot be proven Logic: NOT(predicate(...)) is true if predicate is false Order of evaluation Prolog (deterministic) prove subgoals left to right follow order of database file Logic (nondeterministic) Logic Programming, MGCore, BG Ryder 32 Horn Clauses Basis for rules, facts, and queries Built from: predicates, constants, variables operators: not (\+), and (,), unifies (=), samevalue (==) parentheses New element: Lists Logic Programming, MGCore, BG Ryder 33 Lists Syntax: [a, b, c] sequence of atomic formula and lists separated by commas [] = empty list Conceptually this list is represented as: a b c [] 34 Logic Programming, MGCore, BG Ryder Lists Additional syntax for [a, b, c], | = tail [a | [b , c] ] Unify [ H | T] w/ [a b c] and H =a and T = [b,c] a b c [] 35 Logic Programming, MGCore, BG Ryder Example: Unification of Lists [H | T] a b c [] 36 Logic Programming, MGCore, BG Ryder Unifying Lists [a] = [ H | T]. H=a T = [] [a, b] = [ H | T]. H=a T = [b] [a, b, c] = [ H | T]. H=a T = [b, c] Logic Programming, MGCore, BG Ryder 37 member predicate member(A, [A|B]). member(A, [B|C]) :- member(A,C). although similar to functions, Prolog rules do not generally have defined inputs and outputs We can use member like a boolean function: ?- member(a,[b,k,z,a,t]). more? c Yes Logic Programming, MGCore, BG Ryder 38 member predicate We can also use member to return the values of a list: ?- member(X,[b,k,z,a,t]). Or define a variable in a list given that membership holds ?- member(a,[b,k,z,X,t]). Given these simple examples, what does Prologs search process look like? Logic Programming, MGCore, BG Ryder 39 Prolog Search Tree member(X,[a,b,c]) X=A=a,B=[b,c] X=A,B=a,C=[b,c] X=a success X=A=b,B=[c] X=b success member(X,[b,c]) X=A,B=b,C=[c] member(X,[c]) X=A X=A=c,B=[ ] B=c, C=[ ] X=c member(A,[ ]) success fail fail 40 1. member(A, [A | B] ). 2. member(A, [B | C]) :- member (A, C). Logic Programming, MGCore, BG Ryder Prolog Search Tree prove: member(a,[b,c,X]). apply member(A,[A|B]) a not equal b unification fail apply member(A,[B|C]) :- member(A,C). bind A=a, B=b, C=[c,X] prove: member(a,[c,X]) apply member(A,[A|B]) a not equal c fail apply member(A,[B|C]) :- member(A,C). bind A=a, B=c, C=[X] prove: member(a,[X]) apply member(A,[A|B]) bind A=a, A=X, B = [] X=a (; backtrack) apply member(A,[B|C]) :- member(A,C). bind A=a, B=X C=[], prove: member(a,[ ]) Prolog Search Tree prove: member(X,[a,b,c]). apply member(A,[A|B]) bind X=A, A=a, B=[b,c], X=a (; backtrack) apply member(A,[B|C]) :- member(A,C). bind A=X, B=a, C=[b,c] prove: member(X,[b,c]) apply member(A,[A|B]) bind X=A, A=b, B = [c], X=b (; backtrack) apply member(A,[B|C]) :- member(A,C). bind A=X, B=b, C=[c] prove: member(X,[c]) apply member(A,[A|B]) bind X=A, A=c, B = [] X=c (; backtrack) apply member(A,[B|C]) :- member(A,C). bind X=A, B=c C=[], prove: member(X,[ ]) member(X,Y) prove: member(X,Y). apply member(A,[A|B]) bind X=A, Y=[A|B], Y=[X|B] (; backtrack) INFINITE LOOP: You can type ; forever Lazy evaluation: extends search as needed (e.g., when we type ; ) apply member(A,[B|C]) :- member(A,C). bind X=A, Y=[B|C] prove: member(X,C) apply member(A,[A|B]) apply member(A,[B|C]) :- member(A,C). bind X=A, C=[A|B], Y=[B|[X|B]]=[B, X | B] (; backtrack) bind X=A, C=[B|C] prove: member(X,C) apply member(A,[A|B]) bind X=A, C=[A|B], Y= [B|[B|[X|B]]]=[B, B, X | B] Logic Programming, MGCore, BG Ryder 43 Alternate member predicate Note, we didnt really use the B variable: member(A, [A|B]). member(A, [B|C]) :- member(A,C). So we can write member(A, [A| _ ]). member(A, [ _ |C]) :- member(A,C). Logic Programming, MGCore, BG Ryder 44 minimum basic idea: define minimum predicate ex: minimum([1,2,4,-1,7],Min). Min = -1 second argument stores return value of function Logic Programming, MGCore, BG Ryder 45 minimum basic idea: define minimum predicate ex: minimum([1,2,4,-1,7],Min). Min = -1 insight 1: first need to define predicate: compute_minimum(1,[2,4,-1,7],Min) which has an extra argument for the current minimum Logic Programming, MGCore, BG Ryder 46 minimum define compute_minimum predicate ex: compute_minimum(1,[1,2,4,-1,7],Min). Min = -1 insight 2: base case compute_minimum(CurrMin,[],CurrMin). Logic Programming, MGCore, BG Ryder 47 minimum define compute_minimum predicate ex: compute_minimum(1,[1,2,4,-1,7],Min). Min = -1 insight 3: recursive rule 1 (head > CurrMin) compute_minimum(CurrMin,[H|T],Ret) :H > CurrMin, compute_minimum(CurrMin,T,Ret) Logic Programming, MGCore, BG Ryder 48 minimum define compute_minimum predicate ex: compute_minimum(1,[1,2,4,-1,7],Min). Min = -1 insight 4: recursive rule 2 not(head > CurrMin) compute_minimum(CurrMin,[H|T],Ret) :not(H > CurrMin), compute_minimum(H,T,Ret) Logic Programming, MGCore, BG Ryder 49 minimum define minimum using compute_minimum predicate minimum([H|T],Ret) :compute_minimum(H,T,Ret). assumes list has one element Logic Programming, MGCore, BG Ryder 50 minimum in action minimum([1,2,4,-1,7],1) = No minimum([1,2,4,X,7], compute_minimum(CurrMin,[H|T],Ret) :not(H > CurrMin), compute_minimum(H,T,Ret) % mathematical comparison doesnt work % with variables Logic Programming, MGCore, BG Ryder 51 append idea: append([a],[b],Ret) Ret = [a,b] base case: append([ ], A, A). recursive case: append([H|T],List2,%fill in ret val) :append(T,List2,Ret). Logic Programming, MGCore, BG Ryder 52 append idea: append([a],[b],Ret) Ret = [a,b] base case: append([ ], A, A). recursive case: append([H|T],List2,[H|Ret]) :append(T,List2,Ret). Logic Programming, MGCore, BG Ryder 53 append predicate 1. append([ ], A, A). (see page 565 of text) 2. append([H|T], A, [H|Ret]) :- append(T,A,Ret). multiple functions, main o...

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:

Rutgers - CS - 314
XML pages 712-721 of text extensible markup language textual database with tree representations text encoding could be ASCII or richer representation optional consistency checking with XML Schemas XPATH query language (also XQUERY) XSL templat
Rutgers - CS - 314
314 Final Practice Problems Name: _ 1. Unification. State whether Prolog returns True or No for the examples below. If Prolog returns True state what variables all the variables have. a. A = B, C = D, D = 7, A =D. b. A = D, B = C, C = 7, D = E, E =8,
Rutgers - CS - 314
Formal Languages Summary Regular Languages Chomsky Hierarchy and Automata Theory Context-Free Languages ambiguity, precedence, associativity parsing algorithmsFormal Languages, CS 314, BGRyder/MGCore1Formal Languages Toolbox:Chomsky Hier
Rutgers - CS - 314
CS314 Recitation 8 NotesSuppose we are given a knowledge base with the following facts: tran(eins,one). tran(zwei,two). tran(drei,three). tran(vier,four). tran(fuenf,five). tran(sechs,six). tran(sieben,seven). tran(acht,eight). tran(neun,nine). Wri
Rutgers - CS - 314
Answer 1 - Homework2 a) \" ( [^\"] | (\([^0\n\r]) )* \" b) ( \(\* ([^\*] \*\) )| ( \{ [^\}]* \} ) c) exponent = (e|E)(\+|-)?(\d+) base = [2-9]|(1[0-6]) hex = [0-9a-fA-F] withbase = base (\# hex+ (\.hex+)? \#) withoutbase = \d+ (\.\d+) expression = (w
Michigan - SI - 110
Salon.com Technology | Courtney Love does the mathSearch About Salon Table Talk Newsletters Advertise in Salon Investor RelationsTo print this page, select "Print" from the File menu of your browserCourtney Love does the mathThe controversial
Rutgers - MS - 606
JOURNAL OF GEOPHYSICAL RESEARCH, VOL. 108, NO. C8, 3281, doi:10.1029/2002JC001417, 2003Dynamics of mean and subtidal flow on the New England shelfR. Kipp Shearman and Steven J. LentzDepartment of Physical Oceanography, Woods Hole Oceanographic In
Rutgers - ECON - 322
Professor Norman R. SwansonEconomics 490 - Spring 1998Midterm 21. (40 points) For the model Yt = 1 + 2 X2t + 3 X3t + 4 X4t + ut (a) Suppose it is known that 2 = 3 = 4 . Describe how you would obtain the best estimates for 1 , 2 , 3 , and 4 . (b)
Rutgers - CHEM - 361
Rutgers - CHEM - 361
Michigan - PHYSICS - 145
PHYSICS 145Instructor: Office: Office hours: Phone: Email: Web page: HW page:College Physics IIFall 2003Dr. Alan Grafe 167 MSB MTWR, 2:00-3:30, 217 MSB, or by appointment (810) 766-6632 grafe@umich.edu http:/spruce.flint.umich.edu/~grafe http:
Rutgers - ECON - 322
Professor Norman R. SwansonEconomics 490 - Spring 1998Midterm Exam 11. (30 points) The OLS estimator for 1 and for Yt = 0 + 1 Xt + ut isT(Xt X)(Yt Y )1 =t=1 T(Xt X)2t=1a. What problem is solved in order to obtain this formula? b. Sh
Rutgers - CHEM - 162
A beaker of pure water and a beaker containing a concentrated sucrose solution are placed next to each other in a covered, closed system.After a period of time, what is observed? The vapor pressure of the solution is less than the vapor pressure of
Rutgers - CHEM - 162
LECTURE 5Chemistry 162Our discussions of chemical reactions so far in this course have omitted one crucial factor: time. We have learned about different kinds of reactions, acid-base reactions, redox reactions, and precipitation reactions, for exa
Michigan - PHIL - 340
Todays Goals Human architectures. Scientic foundations and philosophy. Immanual Kant and transcendental arguments. Newells transcendental argument. Newells levels.A Human Cognitive Architecture? This would be a division of the processing into
Michigan - PHIL - 340
Todays Outline Herbert Simon on levels. Newells argument for a compositional representational system. And a digression about the medium of the knowledge level. Architecture and cognitive architectures. Intelligence, SearchHerbert Simon on This
Michigan - PHIL - 19
Todays Outline Dennett on consciousness ca. 1974, continued. If time permits, preliminary discussion of the next two papers (Imagery and Pain)Dennetts Towards a Cognitive Theory of Consciousness Written ca. 1974Dennetts Take on What Consciousne
Michigan - PHIL - 340
Todays Outline Dennett on consciousness ca. 1974, continued. If time permits, preliminary discussion of the next two papers (Imagery and Pain)Dennetts Towards a Cognitive Theory of Consciousness Written ca. 1974Dennetts Take on What Consciousne
Michigan - PHIL - 24
Todays Outline Searle on the Chinese Room, Continued. McCarthy on Searle on the Chinese Room. Minsky on the mind and the emotions.Searles Chinese Room, ContinuedSummary of Searles Argument1. Formulate a thought experiment involving a person T
Michigan - PHIL - 340
Todays Outline Searle on the Chinese Room, Continued. McCarthy on Searle on the Chinese Room. Minsky on the mind and the emotions.Searles Chinese Room, ContinuedSummary of Searles Argument1. Formulate a thought experiment involving a person T
Michigan - PHIL - 340
Todays Outline Dennetts Content & Consciousness Getting into BrainstormsDennett http:/ase.tufts.edu/cogstud/ddennett.htm D.Phil, Oxford (Philosophy), 1965. Taught at UC Irvine until 1971. Since then at Tufts. About 10 books, most recently Fr
Michigan - PHIL - 20
Todays Outline Consciousness. Consciousness. Consciousness. Consciousness. If you like variety, not a very exciting menu.Time out from Dennett When Dennett says (Brainstorms, p. 149) that hes interested in full-blown, introspective, inner-wor
Michigan - PHIL - 340
Todays Outline Consciousness. Consciousness. Consciousness. Consciousness. If you like variety, not a very exciting menu.Time out from Dennett When Dennett says (Brainstorms, p. 149) that hes interested in full-blown, introspective, inner-wor
Michigan - PHIL - 10
Todays Outline Overall goal: Chapter 4: Symbolic Processing through Soar. Subgoals: Problem spaces and operators in Soar. Chunking in Soar. The total cognitive system.Revisit Newells Figure 3-3: Time Scale of Human ActionBlocks World as a So
Michigan - PHIL - 11
Todays Outline (Large-Scale Version) Take stock. Immediate behavior and maybe beyond.Take Stock Where we have been 1. The nature of and need for unied theories in cognitive psychology. 2. Foundational issues: human functionality requires symboli
Michigan - PHIL - 340
Todays Outline (Large-Scale Version) Take stock. Immediate behavior and maybe beyond.Take Stock Where we have been 1. The nature of and need for unied theories in cognitive psychology. 2. Foundational issues: human functionality requires symboli
Michigan - PHIL - 12
Todays Outline Intendedly rational behavior Cryptarithmetic as an example (Skip syllogisms and sentence comprehension tasks.) Newells Frontier issues: Language comprehension Connectionism Take stockIntendedly Rational BehaviorWhat It Is
Michigan - PHIL - 340
Todays Outline Intendedly rational behavior Cryptarithmetic as an example (Skip syllogisms and sentence comprehension tasks.) Newells Frontier issues: Language comprehension Connectionism Take stockIntendedly Rational BehaviorWhat It Is
Michigan - PHIL - 340
Philosophy 340Course Webpage: http:/www.eecs.umich.edu/rthomaso/courses/phil340Pause for information on course mechanics.Todays Outline Back to Aristotle. Form and matter, mind and body, software and hardware. Homunculi and the preformation t
Michigan - PHIL - 340
Todays Goals Introduce Allen Newell . . . And the idea of a (unied) theory of cognition. Use logical deduction to illustrate some features of problem solving. Some psychological background.Cognitive Psychology and Articial IntelligenceSome Mo
Michigan - PHIL - 340
Todays Outline Temple Grandin, Animals in Translation. Interlude: Gdels incompleteness theorems. o Continue McCarthy on making a robot conscious. Searle on the Chinese Room. McCarthy on Searle on the Chinese Room.Temple GrandinWhat its Like t
Michigan - PHIL - 13
Todays Outline Philosophical methodology Some ideas and positions having to do with mind/body dualism. Some important distinctions and concepts Early history of mind/body dualism Cartesian dualism Humes simplicationPhilosophical BackgroundP
Michigan - PHIL - 340
Todays Outline Consciousness. Where we left Dennett. Images.Some Analogies Grounding higher levels in lower ones. Two examples: 1. Why did the Senate vote the way it did? 2. Why does water have three states? Why does it freeze at 32 degrees Fa
Michigan - PHIL - 340
Todays Outline Predicates and properties And versions of dualism. And some thoughts about philosophy of mind.Predicates and Properties 1 This is an example of the linguistic turn in philosophy. Thinking about how we talk about somethingabout t
Michigan - PHIL - 18
Todays Outline Consciousness 1. General issues relating to consciousness. 2. Are dreams experiences? 3. Towards a cognitive theory of consciousnessGeneral Issues Regarding ConsciousnessConsciousness Content & Consciousness, 1969. Recall the ac
Michigan - PHIL - 340
Todays Outline Algorithms, Eectivity and Theories of the Mind The idea of an algorithm, continued. Turing machines. Universality. Eectivity. Churchs thesis. Unnished business: the Loebner prize Instructions and Instruction-FollowingIns
Michigan - PHIL - 340
Todays Goals Interlude: Harold Cohens Aaron. Looking backward: methodology in psychology, psychometrics. Newells areas of coverage. Functional and biological requirements for the mind. Cognitive architectures. Human architectures.Some Aaron R
Michigan - PHIL - 340
Todays Outline Attachments and goals. Pain and suereing. Consciousness. Levels of Mental Activities Common senseSumming up the Theory from Chapter 1 The mind is a collection of resources, Like a society, resources can inuence other resources
Rutgers - CS - 442
Lecture 5: Machine LanguageCS442: Great Insights in Computer Science Michael L. Littman, Spring 2006Recap Using logic gates, we know how to do a bunch of things with bits: add test equality if-then-else gate select one bit from a set (univers
Rutgers - CS - 105
Lecture 5: Machine LanguageCS105: Great Insights in Computer Science Michael L. Littman, Fall 2006Recap Using logic gates, we know how to do a bunch of things with bits:- test equality - if-then-else gate - select one bit from a set (universal g
Rutgers - CS - 105
Chapter 2:Universal Building BlocksCS105: Great Insights in Computer ScienceA Few GatesA B CAND AND3 ANDdef AND3(A, B, C): x = A and B y = x and C return yA B C DOR OR4 OR ORydef OR4(A, B, C,D): return (A or B) or (C or D)IFTHENELSE5
Rutgers - CS - 105
Chapter 3:ProgrammingCS105: Great Insights in Computer ScienceThe Vector We can build (or at least imagine!) lots of circuits. We can even think about state machines that use circuits to do various things over time. Were headed towards using t
Rutgers - FO - 1952
g tu EY j @ `# @ yj | t W yw 6 s q igG E x p h f e d a g 6 `d @ r c b Y Eqq X V U Wj " T w u S7RIG r j E"Q B ( 6 r @ q @ | G 6Wvt5q4s 3 H "1w 1j j )6 j U ' & Q P H F u DC A 9 8 6 7 ( 2 0 ' % j G $ # "
Rutgers - FO - 1983
$ i D 0 iA 2)q i 9 ( 2 w g 2x y vuH a H y | d @ br 0i!fQQ ( q9r W Y@ QQ t 6 r y w s U E p i f d c a ` W Ef h g 5ey 2e b2Y X 5t~ D V x P S ~ t ~ SQ P H ~ F TR #| b I dG $ | E
Rutgers - CS - 521
CS521, HWK I Solutions (Sketch) Problem 1. Solve the following linear programming by the simplex method. (LP): Minimize 2x1 x2 x3 2x1 + x2 + x3 10 x1 2x2 + x3 8 x1 + x2 3 x1 , x2 , x3 0. Solution: The optimal value is 10, attained when x1 = 3,
Rutgers - CS - 205
CS 205 Introduction to Discrete Structures1Lecture 12 C Mathematical Induction! !{ P(1) v (k 0Z + )[P(k)6 P(k+1) ] } 6 (n0Z+)P(n)Example 1: Prove that (n0Z +)()Let P(n):Base Step: P(1)L.H.S=1R.H.S.Thus L.H.S = R.H.S. and
Rutgers - CS - 205
Practice Final Exam CS205 Summer 2004 1.1 of 3Remember that p q (aka NOR) is logically equivalent to (p w q). Using only the atomic propositions p and q, parenthesis and the operator, form a logical expression tht is logically equivalent to :
Rutgers - CS - 205
CS 205 Introduction to Discrete StructuresSummer 2004 SyllabusPropositional Logic 6/29 1.1 Introduction to Propositional Logic 6/29 1.2 Propositional Equivalences 7/1 1.5 Methods of Proof Predicate Logic 7/6 1.3 Predicates and Quantifiers 7/6 1.4
Rutgers - CS - 205
CS 205 Introduction to Discrete Structures1Lecture 13! <Recursive Definitions of FunctionsRecursive definition of a function f Base Clause: Recursive Clause: What is f(1) = , f(2) = f(0) = 0 f(n+1) = f(n) + 3 , f(3) = , f(n) =Prove by induc
Rutgers - CS - 205
CS 205 Sections 07 and 08 Homework 4 Accepted for grading 4/12 1. Prove that whenever p1 , . . . pn is a list of two or more propositions, (p1 p2 . . . pn ) is logically equivalent to p1 p2 . . . pn Use mathematical induction, and the fact tha
Rutgers - CS - 205
Fall 2004Ahmed Elgammal CS 205: Sample Final Exam December 6th, 20041. [10 points] Let A = {1, 3, 5, 7, 9} , B = {4, 5, 6, 7, 8} , C = {2, 4, 6, 8, 10}, D = {1, 2, 3} and let the universal set be U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} (a) | A |= (b
Rutgers - CS - 205
Introduction to Discrete Structures I CS 205 Fall 2004 Sections 06 and 07Lecture times: Tuesday and Thursday 7:40 pm 9:00 pm at HH-A7 Recitation class: Section 06: Tuesday 9:10-10:05 pm HH-A7 Section 07: Thursday 9:10-10:05 pm HH-A7 Instructor: Dr
Michigan - STAT - 403
Statistics 403 Problem Set 6 Due in lab on October 31st. 1. Suppose we are carrying out a two-sample comparison between a treatment group and a control group. Let YT and YC denote observations from the treatment group and control group, respectivel
Michigan - DOCUMENT - 2580
UMHE-05-1 UMHE-http:/atlas.physics.lsa.umich.edu/docushareCSM-4 & Final CSM Design ManualDesign of the Chamber Service Module & Prototype 4(Rev E-) University of Michigan February 22, 2007J. Chapman, P. Binchi, R. Ball, T. Dai, & J. GregoryFin
Rutgers - ECON - 394
A Syndicated Loan PrimerSteven Miller New York (1) 212-438-2715Asyndicated loan is one that is provided by a group of lenders and is structured, arranged, and administered by one or sev-eral commercial or investment banks known as arrangers. S
Rutgers - PSYCHOLOGY - 578
Rutgers - PSYCHOLOGY - 578
REVIEWSSEARCHING FOR A BASELINE: FUNCTIONAL IMAGING AND THE RESTING HUMAN BRAINDebra A. Gusnard* and Marcus E. Raichle*Functional brain imaging in humans has revealed task-specific increases in brain activity that are associated with various menta
Rutgers - PSYCHOLOGY - 578
www.elsevier.com/locate/ynimg NeuroImage 37 (2007) 1073 1082Target ArticleDoes the brain have a baseline? Why we should be resisting a restAlexa M. Morcom and Paul C. FletcherBrain Mapping Unit, Department of Psychiatry, University of Cambridg
Rutgers - PSYCHOLOGY - 578
A default mode of brain functionMarcus E. Raichle*, Ann Mary MacLeod*, Abraham Z. Snyder*, William J. Powers, Debra A. Gusnard*, and Gordon L. Shulman*Mallinckrodt Institute of Radiology and Departments of Neurology and Psychiatry, Washington Unive
Rutgers - PSYCHOLOGY - 578
The Journal of Neuroscience, 2001, Vol. 21 RC159 1 of 5Anticipation of Increasing Monetary Reward Selectively Recruits Nucleus AccumbensBrian Knutson, Charles M. Adams, Grace W. Fong, and Daniel Hommer National Institute on Alcohol Abuse and Alcoh
Rutgers - PSYCHOLOGY - 578
Annual Reviews www.annualreviews.org/aronlineAnn. Rev. Psychol. 1988.39:475-543 Copyright 1988by AnnualReviews Inc. All rights reservedMEASURES OF MEMORYAnnu. Rev. Psychol. 1988.39:475-543. Downloaded from arjournals.annualreviews.org by Univer