ITEC 380 Organization of programming languages Lecture 7 – Prolog.

Slides:



Advertisements
Similar presentations
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Advertisements

Prolog The language of logic. History Kowalski: late 60’s Logician who showed logical proof can support computation. Colmerauer: early 70’s Developed.
CSE 425: Logic Programming I Logic and Programs Most programs use Boolean expressions over data Logic statements can express program semantics –I.e., axiomatic.
Logic Programming Languages. Objective To introduce the concepts of logic programming and logic programming languages To introduce a brief description.
Lecture 19 Exam: Tuesday June14 4-6pm Overview. Disclaimer The following is a only study guide. You need to know all the material treated in class.
Lecture 14 Go over midterm results Algorithms Efficiency More on prime numbers.
CS 331 / CMPE 334 – Intro to AI CS 531 / CMPE AI Course Outline.
1 CA 208 Logic Logic Prof. Josef van Genabith Textbooks:  The Essence of Logic, John Kelly, Prentice Hall, 1997  Prolog Programming, Third Edition, Ivan.
Humans, Computers, and Computational Complexity J. Winters Brock Nathan Kaplan Jason Thompson.
ISBN Chapter 1 Preliminaries. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.1-2 Chapter 1 Topics Motivation Programming Domains.
Slides prepared by Rose Williams, Binghamton University Chapter 3 Flow of Control Loops in Java.
CS101- Lecture 11 CS101 Fall 2004 Course Introduction Professor Douglas Moody –Monday – 12:00-1:40 – – –Web Site: websupport1.citytech.cuny.edu.
ISBN Lecture 01 Preliminaries. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.1-2 Lecture 01 Topics Motivation Programming.
Lecture 19 Exam: Tuesday June15 4-6pm Overview. General Remarks Expect more questions than before that test your knowledge of the material. (rather then.
Formal Aspects of Computer Science – Week 12 RECAP Lee McCluskey, room 2/07
ISBN Chapter 1 Topics Motivation Programming Domains Language Evaluation Criteria Influences on Language Design Language Categories Language.
CS 415: Programming Languages Course Introduction Aaron Bloomfield Fall 2005.
COP4020/CGS5426 Programming languages Syllabus. Instructor Xin Yuan Office: 168 LOV Office hours: T, H 10:00am – 11:30am Class website:
School of Computing and Mathematics, University of Huddersfield Computing Science: WEEK 17 Announcement: next few weeks… 9 nd Feb: Comparative Programming.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Lecture 17: Digital Design Today’s topic –Intro to Boolean functions Reminders –HW 4 due Wednesday 10/8/2014 (extended) –HW 5 due Wednesday 10/15/2014.
James Tam CPSC 203: Introduction To Computers (Independent Study) James Tam.
Programming Languages Summer
ITEC 380 Organization of programming languages Lecture 6 – Functional Programming.
September 19, 2012Introduction to Artificial Intelligence Lecture 5: Functional Programming with Haskell 1 Functional Programming Symbolic AI is based.
ProLog PROgramming in LOGic. Description of Prolog Prolog stands for PROgramming in LOGic. It is a nonprocedural and declarative language.
Expert System Development Tools Sean Lydon Daniel Nelson Emily Schwarz.
Logic Programming Module 2AIT202 Website Lecturer: Dave Sharp Room: AG15
Getting Started with Visual Prolog
Artificial Intelligence Programming in Prolog Lecture 1: An Introduction 23/09/04.
Artificial Intelligence LECTURE 2 ARTIFICIAL INTELLIGENCE LECTURES BY ENGR. QAZI ZIA 1.
ARTIFICIAL INTELLIGENCE DR. ABRAHAM AI a field of computer science that is concerned with mechanizing things people do that require intelligent.
Deductive Reasoning Chapter 2 Lesson 4.
CT214 – Logical Foundations of Computing Lecture 8 Introduction to Prolog.
CS4026 Formal Models of Computation Part II The Logic Model Lecture 2 – Prolog: History and Introduction.
Prolog Kyle Marcotte. Outline What is Prolog? Origins of Prolog (History) Basic Tutorial TEST!!! (sort of…actually not really at all) My example Why Prolog?
ITEC 380 Organization of programming languages Lecture 8 – Prolog.
The AI War LISP and Prolog Basic Concepts of Logic Programming
By: Cory Canter CSC 415 Programming Languages. History  Created by Alain Colmerauer, Phillipe Roussel and Robert Kowalski in 1971  Started as a natural.
COMP 170 L2 Part 3 of Course Chapter 3 of Textbook.
Introduction to Prolog. Outline What is Prolog? Prolog basics Prolog Demo Syntax: –Atoms and Variables –Complex Terms –Facts & Queries –Rules Examples.
ITEC 109 Lecture 11 While loops. while loops Review Choices –1 st –2 nd to ?th –Last What happens if you only use ifs? Can you have just an else by itself?
Logic Programming Dr. Yasser Nada Fall 2010/2011 Lecture 1 1 Logic Programming.
In The Name Of Allah Lab 03 1Tahani Aldweesh. objectives Searching for the solution’s. Declaration. Query. Comments. Prolog Concepts. Unification. Disjunction.
BIT 142:Programming & Data Structures in C#. 2 Syllabus : Book info BIT 142 uses the book fairly extensively –I would recommend getting it The edition.
Albert Gatt LIN3021 Formal Semantics Lecture 3. Aims This lecture is divided into two parts: 1. We make our first attempts at formalising the notion of.
Communications and Studying To study is to communicate.
Done By :- -Nesreen Basem -Sara nabil -Rawan Prolog Program.
+ Properties of Real Numbers. + Properties Relationships that are always true fro real numbers are called properties. Properties are rules used to rewrite.
CT214 – Logical Foundations of Computing Darren Doherty Rm. 311 Dept. of Information Technology NUI Galway
CSE-321 Programming Languages Overview POSTECH March 5, 2013 박성우.
Announcements  Upcoming due dates  Thursday 10/1 in class Midterm  Coverage: everything in lecture and readings except first-order logic; NOT probability.
Review for Test 2 Chapters 5 (start at 5.4), 6.1, , 12, 13, 15.1, Python.
Find us at Have you ever wanted to start your own website or blog?
CMSC 471 Principles of Artificial Intelligence Course Overview
PROGRAMMING LANGUAGES
Sequence, Selection, Iteration The IF Statement
CS 4700: Foundations of Artificial Intelligence
Introduction to Prolog
Artificial Intelligence (CS 461D)
Artificial Intelligence (CS 370D)
Logic Programming Languages
Computer Programming 1 introduction to JAVA Lecture 1 Instructor: Ruba A. Salamah Islamic University of Gaza.
Dr. Yasser Nada Fall 2010/2011 Lecture 1
Negations of quantifiers
CPSC 433 : Artificial Intelligence Tutorials T01 & T02
Programming Languages
Presentation transcript:

ITEC 380 Organization of programming languages Lecture 7 – Prolog

Prolog Review Questions about the exam Review / in-class coding w/ Lisp Binding

Prolog Objectives Introduce Prolog –History –Strengths –Basic principles –Example programs

Prolog History Created in 1972 by Alain Colmerauer Deals with facts, rules, not variables and operations Truth and logical deduction Simple –It is 2:00. Complex –10 layers of rules / facts to deal with Major part of Artificial intelligence

Prolog Environmen t SWI Prolog – Tutorials: Don’t forget book on website

Prolog Facts A true statement Syntax –Factname(identifier that is mapped to factname) –Factname(ident1, ident2) Means that ident1 is the Factname of ident2 Example male(Bob) female(Jill) parent(Jill, Bill) parent(Bob, Bill)

Prolog Rules Use facts to make a particular statement Example Note: :- means if, means and Father(TheDad, TheChild) :- parent(TheDad,TheChild), male(TheDad)

Prolog Why? Ability to ask computer questions, i.e. is Bill the son of Bob? One level isn’t that interesting Multiple levels are –Tax law –Graduation

Prolog Next week More in-depth with prolog Now: – midterm, you have until 9PM to it back to me.