Praktikum KI Teil V: Logik. Praktikum KI SoSe 2005 Überblick Organisation des Praktikums Einführung in die Künstliche Intelligenz Suche nach einer intelligenten.

Slides:



Advertisements
Ähnliche Präsentationen
Finding the Pattern You Need: The Design Pattern Intent Ontology
Advertisements

Word Order in German Subordiante Clauses
H - A - M - L - E - IC T Teachers Acting Patterns while Teaching with New Media in the Subjects German, Mathematics and Computer Science Prof. S. Blömeke,
R. Zankl – Ch. Oelschlegel – M. Schüler – M. Karg – H. Obermayer R. Gottanka – F. Rösch – P. Keidler – A. Spangler th Expert Meeting Business.
The difference between kein and nicht.
Multi electron atoms Atoms with Z>1 contain >1 electron. This changes the atomic structure considerably because in addition to the electron-nucleus interaction,
Peter Marwedel TU Dortmund, Informatik 12
Fakultät für informatik informatik 12 technische universität dortmund Hardware/Software Partitioning Peter Marwedel Informatik 12 TU Dortmund Germany Chapter.
Subjects and Direct Objects When to use der vs. den.
Formation of Questions in German
Wenn…… the conditional. Using the conditional tense The conditional tense is used to talk about something that happens only after something else happened.
NUMEX – Numerical experiments for the GME Fachhochschule Bonn-Rhein-Sieg Wolfgang Joppich PFTOOL - Precipitation forecast toolbox Semi-Lagrangian Mass-Integrating.
Wozu die Autokorrelationsfunktion?
Institut für Verkehrsführung und Fahrzeugsteuerung > Technologien aus Luft- und Raumfahrt für Straße und Schiene Automatic Maneuver Recognition in the.
Lancing: What is the future? Lutz Heinemann Profil Institute for Clinical Research, San Diego, US Profil Institut für Stoffwechselforschung, Neuss Science.
Three minutes presentation I ArbeitsschritteW Seminar I-Prax: Inhaltserschließung visueller Medien, Spree WS 2010/2011 Giving directions.
Three-Valued Models of Program Completion
Modulare Programmierung
Methods Fuzzy- Logic enables the modeling of rule based knowledge by the use of fuzzy criteria instead of exact measurement values or threshold values.
Comparative Adjectives. The term comparison of adjectives is used when two or more persons or things have the same quality (height, size, color, any characteristic)
Das Perfekt Wiederholen (hoffentlich!). Think of 5 things you did in your holidays but think of sentences in the PRESENT TENSE. 1.Am Montag schlafe ich.
Die Hausaufgaben: Machen Sie Ü. 7 auf S. 29
Institut für Umweltphysik/Fernerkundung Physik/Elektrotechnik Fachbereich 1 Pointing Meeting Nov 2006 S. Noël IFE/IUP Elevation and Azimuth Jumps during.
Adjektive Endungen von Frau Templeton.
Laurie Clarcq The purpose of language, used in communication, is to create a picture in the mind and/or the heart of another.
Relative clauses What is a relative clause?
Deutsch III Sport berichten – Correcting German Writing 9. Oktober 2012.
Institut AIFB, Universität Karlsruhe (TH) Forschungsuniversität gegründet 1825 Towards Automatic Composition of Processes based on Semantic.
T.Ruf, N.Brook, R.Kumar, M.Meissner, S.Miglioranzi, U.Uwer D.Voong Charge Particle Multiplicity Disclaimer: Work has started only recently! I am not an.
Vocab Test #2 to thank danken penpal der Brieffreund discrimination
| DC-IAP/SVC3 | © Bosch Rexroth Pneumatics GmbH This document, as well as the data, specifications and other information set forth in.
Das Perfekt (Present Perfect Tense). Think of 5 things you did in your holidays but think of sentences in the PRESENT TENSE. 1.Am Montag schlafe ich viel.
Morphology and Syntax More on sentence structure.
BAS5SE | Fachhochschule Hagenberg | Daniel Khan | S SPR5 MVC Plugin Development SPR6P.
Resolution-based theorem proving (first-order logic) Otter / Prover9.
Deutsch 1 G Stunde. Donnerstag, der 25. Oktober 2012 Deutsch 1, G Stunde Heute ist ein B- Tag Unit: Family & homeFamilie & Zuhause Objectives: Phrases.
You need to use your mouse to see this presentation © Heidi Behrens.
INTAKT- Interkulturelle Berufsfelderkundungen als ausbildungsbezogene Lerneinheiten in berufsqualifizierenden Auslandspraktika DE/10/LLP-LdV/TOI/
Reflexive Verben
The Seven Main Sentences T refers to the German version appearing in the Routledge edition of the Ogden translation; P to the Prototractatus, an early.
Kölner Karneval By Logan Mack
1 Competence Center ELANFraunhofer FOKUS COLORPICKER: Zum Auswählen der korrekten Farbe mit dem Tool »Farbe auswählen« auf das jeweilige Feld unten klicken.
Einführung Bild und Erkenntnis Einige Probleme Fazit Eberhard Karls Universität Tübingen Philosophische Fakultät Institut für Medienwissenschaft Epistemic.
Ein Projekt des Technischen Jugendfreizeit- und Bildungsvereins (tjfbv) e.V. kommunizieren.de Blended Learning for people with disabilities.
The most obvious or direct use of auch is to mean also. Ich möchte auch Gitarre lernen. Auch ich möchte Gitarre lernen. I would like to learn Guitar. Someone.
Design Patterns Ein Muster (pattern) ist eine Idee, die sich in einem praktischen Kontext als nützlich erwiesen hat und dies auch in anderen sein wird.
External Labels – The rules For all external labels the following rules apply (external labels are all labels which are not inside of a shape) - all labels.
By Martin L. Loeffler. The future tense is created in two ways. You introduce a time reference in the future. Anything that implies a future time. Morgen,
Negation is when you dont have or dont do something.
Adjectiv Endungen Lite: Adjective following articles and pre-ceeding nouns. Colors and Clothes.
8.1 Lektion 8 Recht und Umwelt STRUKTUREN © and ® 2012 Vista Higher Learning, Inc Der Konjunktiv II and würde with infinitive Ja, aber ich würde.
AVL-Trees (according to Adelson-Velskii & Landis, 1962) In normal search trees, the complexity of find, insert and delete operations in search.
Greetings and goodbyes Deutschland v. USA
Sentence Structure Subject and verb are always together. Subject and verb are always together. Subject and verb must agree Subject and verb must agree.
To school => zu der Schule With friends => mit den Freunden On top of the desk => auf dem Schreibtisch Through the wall => durch die Wand.
KIT – die Kooperation von Forschungszentrum Karlsruhe GmbH und Universität Karlsruhe (TH) Vorlesung Knowledge Discovery - Institut AIFB Tempus fugit Towards.
Separable Verbs Turn to page R22 in your German One Book R22 is in the back of the book There are examples at the top of the page.
Lehrstuhl für Steuerrecht und Öffentliches Recht Prof. Dr. Roland Ismer MSc Econ. (LSE)/Prof. Dr. Klaus Meßerschmidt Grundlagen Staats- und Verwaltungsrecht.
Launch ON Global.vi System ID object name classname Services to suscribe Observer Control Ref vi-path Service name Step 1 : Objects register to the Global.vi´s,
1 Stevens Direct Scaling Methods and the Uniqueness Problem: Empirical Evaluation of an Axiom fundamental to Interval Scale Level.
THE PERFECT TENSE IN GERMAN
Adjective Endings Nominative & Accusative Cases describing auf deutsch The information contained in this document may not be duplicated or distributed.
How to use and facilitate an OptionFinder Audience Response System.
Technische Universität München 1 CADUI' June FUNDP Namur G B I The FUSE-System: an Integrated User Interface Design Environment Frank Lonczewski.
Mann gegen Man Man / Husband One Mann = man =
THE CONVERSATIONAL PAST
Data Mining Spectral Clustering Junli Zhu SS 2005.
You need to use your mouse to see this presentation © Heidi Behrens.
Grundlagen Englisch Passive voice HFW Bern.
Being Discerning About Online Information
 Präsentation transkript:

Praktikum KI Teil V: Logik

Praktikum KI SoSe 2005 Überblick Organisation des Praktikums Einführung in die Künstliche Intelligenz Suche nach einer intelligenten Lösung Problemlösung mit Heuristiken Logik Planung & Robotik Expertensysteme Lernen

Praktikum KI SoSe 2005 Wumpus World PEAS description Performance measure gold +1000, death 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

Praktikum KI SoSe 2005 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

Praktikum KI SoSe 2005 Exploring a wumpus world

Praktikum KI SoSe 2005 Exploring a wumpus world

Praktikum KI SoSe 2005 Exploring a wumpus world

Praktikum KI SoSe 2005 Exploring a wumpus world

Praktikum KI SoSe 2005 Exploring a wumpus world

Praktikum KI SoSe 2005 Exploring a wumpus world

Praktikum KI SoSe 2005 Exploring a wumpus world

Praktikum KI SoSe 2005 Exploring a wumpus world

Praktikum KI SoSe 2005 Logik – Grundlagen Aussagenlogik Aussagenlogik kennt nur Fakten (und die Verknüpfungen,, v,, ) B21 (breeze in Feld (2,1)) B41 B42 P31 B43 B34 P33 v P44 Implikationen ( ) lassen sich umschreiben: (A B) ist äqivalent zu ( A v B) Beweis: Wahrheitstabelle: AB A B A v B True False True False True

Praktikum KI SoSe 2005 Logik – Knowledge Base Fakten werden in Knowledge Base (KB) gespeichert Einträge der KB sind mit UND verknüpft Aus bestehenden Einträgen können neue generiert werden KB: {A, A B} Daraus generiert (geschlussfolgert) B Neue KB: {A, A B, B} Oder: KB: {A, A B C } Daraus generiert (geschlussfolgert) C Neue KB: {A, A B C, C}

Praktikum KI SoSe 2005 Logik - Interferenz An die Knowledge Base können Anfragen gestellt werden KB: {A, A B C } Mögliche Anfragen (α): A, C, C, D, … Eine Anfrage ist true, wenn gilt (KB α) Zur positiven Beantwortung einer Anfrage zeige also, dass für jede Belegung der Symbole mit true / false (=Modell), die für KB true ergibt, auch α true ist Alternativ zeige, dass (KB α) false ist Die Suche nach einem solchen Modell wird als Interferenz bezeichnet

Praktikum KI SoSe 2005 Logik - Inference by enumeration One sentence entails another (A B) if B is true in all worlds where A is true An Inference Method is sound if it derives only sentences which are entailed in the KB complete if it derives all sentences which are entailed in the KB Depth-first enumeration of all models is sound and complete For n symbols, time complexity is O(2 n ), space complexity is O(n)

Praktikum KI SoSe 2005 Logik – Kojunktive Normalform Konjunktive Normalform (CNF): Konjunktion ( ) von Disjunktionen (v) von Literalen, z.B. (A B) (B C D) Jede Aussage kann in CNF gebracht werden A B ist äquivalent () zu (A B) (B A) (A B) ( A v B) de Morgan ( (AvB) A B, …) Distributivität von und v Zur Interferenz werden stets zwei Disjunktionen herangezogen, die das gleiche Literal einmal mit und einmal ohne Negation ( ) enthalten (A B) (B C D)

Praktikum KI SoSe 2005 Resolution Resolution inference rule (for CNF): Let l i and m j be complementary literals (i.e. l i m j ). Then it holds l 1 … l k, m 1 … m n l 1 … l i-1 l i+1 … l k m 1 … m j-1 m j+1... m n E.g., P 1,3 P 2,2, P 2,2 P 1,3 Resolution is sound and complete for propositional logic

Praktikum KI SoSe 2005 Logik – Beweis durch Resolution Führt die Interferenz durch Resolution auf die leere Aussage {}, so ist die ursprüngliche CNF falsch {} entsteht ausschließlich durch A, A {} Wenn A und A in Konjunktion ( ) auftreten, so ist die Aussage stets False Um KB α zu zeigen, versuche daher (KB α) via Resolution zum Widerspruch, d.h. zu {}, zu bringen.

Praktikum KI SoSe 2005 Resolution algorithm Proof by contradiction, i.e., show KB α unsatisfiable

Praktikum KI SoSe 2005 Resolution example KB = (B 1,1 (P 1,2 P 2,1 )) B 1,1 α = P 1,2

Praktikum KI SoSe 2005 Logik – Horn Clauses Horn Clauses sind spezielle Form der CNF Jede Disjunktion enthält genau ein positives Literal Bsp: (A B) (B C D) Es gilt: (A B C … N ) (B C … N A) Damit kann die Modus Ponens-Regel angewandt werden: A B C, A B C D D Bei einer KB aus Horn Clauses können Forward- und Backward-Chaining angewandt werden

Praktikum KI SoSe 2005 Forward chaining Idea: fire any rule whose premises are satisfied in the KB, add its conclusion to the KB, until query is found

Praktikum KI SoSe 2005 Forward chaining example

Praktikum KI SoSe 2005 Forward chaining example

Praktikum KI SoSe 2005 Forward chaining example

Praktikum KI SoSe 2005 Forward chaining example

Praktikum KI SoSe 2005 Forward chaining example

Praktikum KI SoSe 2005 Forward chaining example

Praktikum KI SoSe 2005 Forward chaining example

Praktikum KI SoSe 2005 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

Praktikum KI SoSe 2005 Backward chaining example

Praktikum KI SoSe 2005 Backward chaining example

Praktikum KI SoSe 2005 Backward chaining example

Praktikum KI SoSe 2005 Backward chaining example

Praktikum KI SoSe 2005 Backward chaining example

Praktikum KI SoSe 2005 Backward chaining example

Praktikum KI SoSe 2005 Backward chaining example

Praktikum KI SoSe 2005 Backward chaining example

Praktikum KI SoSe 2005 Backward chaining example

Praktikum KI SoSe 2005 Backward chaining example

Praktikum KI SoSe 2005 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

Praktikum KI SoSe 2005 Efficient propositional inference Two families of efficient algorithms for propositional inference: Complete backtracking search algorithms DPLL algorithm (Davis, Putnam, Logemann, Loveland) Incomplete local search algorithms WalkSAT algorithm

Praktikum KI SoSe 2005 The DPLL algorithm Determine if an input propositional logic sentence (in CNF) is satisfiable. Improvements over truth table enumeration: 1. Early termination A clause is true if any literal is true. A sentence is false if any clause is false. 2. Pure symbol heuristic Pure symbol: always appears with the same "sign" in all clauses. e.g., In the three clauses (A B), ( B C), (C A), A and B are pure, C is impure. Make a pure symbol literal true. 3. Unit clause heuristic Unit clause: only one literal in the clause The only literal in a unit clause must be true.

Praktikum KI SoSe 2005 The DPLL algorithm

Praktikum KI SoSe 2005 The WalkSAT algorithm Incomplete, local search algorithm Evaluation function: The min-conflict heuristic of minimizing the number of unsatisfied clauses Balance between greediness and randomness

Praktikum KI SoSe 2005 The WalkSAT algorithm

Praktikum KI SoSe 2005 Inference-based agents in the wumpus world A wumpus-world agent using propositional logic: P 1,1 W 1,1 B x,y (P x,y+1 P x,y-1 P x+1,y P x-1,y ) S x,y (W x,y+1 W x,y-1 W x+1,y W x-1,y ) W 1,1 W 1,2 … W 4,4 W 1,1 W 1,2 W 1,1 W 1,3 … 64 distinct proposition symbols, 155 sentences

Praktikum KI SoSe 2005 Inference-based agents in the wumpus world

Praktikum KI SoSe 2005 KB contains "physics" sentences for every single square For every time t and every location [x,y], L x,y FacingRight t Forward t L x+1,y Rapid proliferation of clauses Expressiveness limitation of propositional logic t+1t

Praktikum KI SoSe 2005 Summary Logical agents apply inference to a knowledge base to derive new information and make decisions Basic concepts of logic: syntax: formal structure of sentences semantics: truth of sentences wrt models entailment: necessary truth of one sentence given another inference: deriving sentences from other sentences soundness: derivations produce only entailed sentences completeness: derivations can produce all entailed sentences Wumpus world requires the ability to represent partial and negated information, reason by cases, etc. Resolution is complete for propositional logic Forward, backward chaining are linear-time, complete for Horn clauses Propositional logic lacks expressive power