This preview shows page 1-2 out of 5 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Knowledge Representation: LogicManuela VelosoCMU 15-381, Fall 2001The need for “knowledge” representationSymbolic knowledgePropositional logic and inferencePredicate logicThe resolution inference procedureActing in the WorldState and ActionsComplete intelligent agentPerception - at whichstateam I?Cognition - whichactionshould I take?Action - how do Iexecutethe action?State recognition implies staterepresentationMany examplesSymbolic knowledge about the worldKnowledge RepresentationOne of the goals (“the” goal?) of AI: buildintelligent agentsNeed “knowledge” – meaning of factsPhilosophyTheory ofmeaning– Natural language tomeaning“I think therefore I am” – logical clarificationof thoughtKnowledge base in AI – a set of representationsof facts about the worldWhatto represent?Which level ofdetail? – “frame problem”Knowledge RepresentationMany examples – any task is an exampleKnowledge level – epistemological level: whatthe agentknowsImplementation level – how knowledge isrepresentedThe representation of knowledge affectsdramatically the problem solving capability ofan agentHard to realize the effects of representationchoicesWhat is agoodrepresentation?Example: mutilated checkerboardMany possible representations.Knowledge RepresentationLogicSemantic networksFramesDefault logicsProbabilistic reasoningGraphical representationsSummaryThe wumpus world - Chapter 6, page 154Representing the worldSentencesPropositional logicSyntaxSemanticsProving the truth of a sentenceLogical inferenceDiscussionThe Wumpus WorldBreeze BreezeBreezeBreezeBreezeStenchStenchBreezePITPITPIT1 2 3 41234STARTGoldStenchReasoningPerceptions: stentch, breeze, glitter, bump (intowall), scream (wumpus killed)Actions: turn left, turn right, go forward, grab,shoot (only once), climb (at start)Goal: get the gold back to the start and climb outof the caveRules specify the actions to take at a particular state.Need to perceive and represent the world.RepresentationSentences - logicSyntax and semanticsFollowsSentencesFactsSentenceFactEntailsSemanticsSemanticsRepresentationWorldSentencesstench(2,1)“It’s raining.” “Lisboa´e a capital de Portugal.”SyntaxThe grammar: the rules oflegalsentences.Propositional logicSentence ::= TerminalSentenceNon-TerminalSentenceTerminalSentence ::= TrueFalseSymbolNon-TerminalSentence ::= Sentence ConnectiveSentenceSentenceConnective ::=Facts into logic - simple and hard1. Marcus was a man.2. All Pompeians were Romans.3. Caesar was a ruler.4. All Romans were either loyal to Caesar or hatedhim.5. Everyone is loyal to someone.Facts into logic - simple and hard6. People only try to assassinate rulers they are notloyal to.7. Marcus tried to assassinate Caesar.8. All Romans who know Marcus either hateCaesar or think that anyone who hates anyone iscrazy.9. Every country has a city that has been visited byevery person in the country.Facts into logic - simple and hard10. For every set, there is always another set with agreater cardinality.11. All blocks on top of blocks that have beenmoved or that are attached to blocks that havebeen moved have also been moved.SemanticsThe complete set of possible truth assignmentsto the symbols in the sentence: all the possibleworlds: all interpretations.Example: ; (true, true), (true, false), (false,true), (true, true)A sentence withpropositional symbols has interpretations.A sentence evaluates to True or False - subsetsof all interpretations.The truth of a sentence depends both on theinterpretation and on the state of the world.Example: stench-1-2Computing the Meaning of a SentenceBrute force: A truth table!Valid sentence: includes all interpretations.Examples: True, other examples?Satisfiable sentence: A sentence has at least oneinterpretation. Examples: ?Unsatisfiable sentence: No interpretations.Examples: False, other examples?If valid then satisfiable. If satisfiable, either validor not valid.Either satisfiable or unsatisfiable, not both.Knowledge BaseA collection of many sentences representing thecomplete knowledge about the world.BGPSWA = Agent = Breeze = Glitter, Gold = Pit = Stench = WumpusOK = Safe squareV = VisitedBP!AOK OKOK 1,1 2,1 3,1 4,1 1,2 2,2 3,2 4,2 1,3 2,3 3,3 4,3 1,4 2,4 3,4 4,4VSOKW!VContents of the knowledge base?EntailmentFollowsSentencesFactsSentenceFactEntailsSemanticsSemanticsRepresentationWorldThe meaning of the knowledge base: othersentences may be true, i.e., other sentences can bededucedfrom the sentences in the knowledge base.KB= SThe sentence S is “entailed” by the knowledge


View Full Document

CMU CS 15381 - Handout

Documents in this Course
Planning

Planning

19 pages

Planning

Planning

19 pages

Lecture

Lecture

42 pages

Lecture

Lecture

27 pages

Lecture

Lecture

19 pages

FOL

FOL

41 pages

lecture

lecture

34 pages

Exam

Exam

7 pages

Lecture

Lecture

22 pages

Handout

Handout

11 pages

Midterm

Midterm

14 pages

lecture

lecture

83 pages

Handouts

Handouts

38 pages

mdp

mdp

37 pages

HW2

HW2

7 pages

nn

nn

25 pages

lecture

lecture

13 pages

Lecture

Lecture

27 pages

Lecture

Lecture

62 pages

Lecture

Lecture

5 pages

Load more
Download Handout
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Handout and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Handout 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?