Exam Preparation PrologLISP. Final Exam n Wednesday, April 10, 9am, BAC 132 check for changes the night beforecheck for changes the night before n Covers:

Slides:



Advertisements
Similar presentations
Lisp Control and Data Structures CIS 479/579 Bruce R. Maxim UM-Dearborn.
Advertisements

Simple Programs Simple Strings Writing some programs Only in Parameters? I/O Gadget.
ANSI Common Lisp 5. Control 16 June Blocks -- progn progn > (progn (format t “a”) (format t “b”) ( )) ab 23 The expressions within its body.
B. Ross Cosc 4f79 1 Forward chaining backward chaining systems: take high-level goal, and prove it by reducing it to a null goal - to reduce it to null,
Extending Pattern Directed Inference Systems Algo & Data 2.
For Monday Take home exam due Exam 1. For Wednesday Read chapter 10, sections 1-2 Prolog Handout 4.
For Friday Read “lectures” 1-5 of Learn Prolog Now: prolog-now/
Lisp Recitation (cse471/598 Fall 2007 ) Aravind Kalavagattu.
CSE 341, S. Tanimoto Pattern Matching - 1 Pattern Matching in Lisp Lists can be used to represent sentences, relations, tree structures, etc. (this list.
Functional Programming COMP2003 A course on functional programming using Common Lisp Dr Eleni Mangina
ITERATIVE CONSTRUCTS: DOLIST Dolist is an iterative construct (a loop statement) consisting of a variable declaration and a body The body states what happens.
Returning values from functions You can return a value from a function by using the built- in function : ( return-from Function_name value) For example:
How to load a program file? Lisp programs in Allegro are saved under the file extension.cl. To load a file into the Lisp console, use the following: (load.
Topic R3 – Review for the Final Exam. CISC 105 – Review for the Final Exam Exam Date & Time and Exam Format The final exam is 120-minutes, closed- book,
CSCE 110 PROGRAMMING FUNDAMENTALS WITH C++
It is suggested that you use the Lisp interpreter available on the general machine (general.asu.edu). You are welcome to use other interpreters while developing,
Technical Report Writing and Presentation Skills Course Outline 1.
F UNCTIONAL P ROGRAMMING 05 Functions. F UNCTIONS - G LOBAL F UNCTIONS fboundp Tells whether there is a function with a given symbol as its name > (fboundp.
Allegro CL Certification Program Lisp Programming Series Level I Session Top Ten Things to Know.
For Wednesday Read Chapter 4, sections 1 and 2 Homework: –Lisp handout 3.
CSCI 347 – Data Mining Lecture 01 – Course Overview.
Input/Output Chapters 7 & 9. Output n Print produces output > (print 100) n It also returns the value it printed –that’s where the second 100 came.
Alok Mehta - Programming in Lisp - Data Abstraction and Mapping Programming in Lisp Data Abstraction and Mapping.
The Case primitive: matches the evaluated key form against the unevaluated keys by using eql The general format of case is the following: (case (... ).....
1 CS 177 Week 16 Recitation Recursion. 2 Objective To understand and be able to program recursively by breaking down a problem into sub problems and joining.
Iteration Chapters 6 & 7. Iteration in LISP n LISP (unlike Prolog) allows iteration –mapcar, remove-if(-not), count-if, find-if for special purpose iteration.
Artificial Intelligence IES 503 Asst. Prof. Dr. Senem Kumova Metin.
06 INPUT AND OUTPUT Functional Programming. Streams Two kinds of streams  Character streams  Binary streams Character streams are Lisp objects representing.
For Wednesday Read “lectures” 7-10 of Learn Prolog Now Chapter 9, exs 4 and 6. –6 must be in Horn clause form Prolog Handout 2.
Input and Output in Scheme CS 480/680 – Comparative Languages.
Jess: A Rule-Based Programming Environment Reporter: Yu Lun Kuo Date: April 10, 2006 Expert System.
PRACTICAL COMMON LISP Peter Seibel 1.
COP4020 Programming Languages Functional Programming Prof. Xin Yuan.
Introduction to LISP. Lisp Extensible: It lets you define new operators yourself Lisp programs are expressed as lisp data structures –You can write programs.
Ch. 13 Ch. 131 jcmt CSE 3302 Programming Languages CSE3302 Programming Languages (notes?) Dr. Carter Tiernan.
PROGRAMMING LANGUAGES: PROLOG, CLOJURE, F# Jared Wheeler.
PRACTICAL COMMON LISP Peter Seibel 1.
Milos Hauskrecht (PDF) Hieu D. Vu (PPT) LISP PROGARMMING LANGUAGE.
1 Variable Declarations Global and special variables – (defvar …) – (defparameter …) – (defconstant …) – (setq var2 (list 4 5)) – (setf …) Local variables.
Basic Introduction to Lisp
For Monday Exam 1 is Monday Takehome due Prolog Handout 3 due.
JavaScript Functions. CSS Inheritance Which formatting applies? x y z input { display: block; } input.pref { background:red; } If you have a selector.
For Friday No reading Prolog Handout 2. Homework.
1 TP #2: How does Prolog answer questions? n Miscellaneous info; n Last TP exercises solved; n How does Prolog answer questions? n Recursive Prolog programs;
Addition Math Facts = 9. Addition Math Facts = 1 5.
Learn to subtract integers. Course Subtracting Integers.
CSE S. Tanimoto Pattern Matching 1 Pattern Matching Many Lisp programs are “data driven”. The program exams the data and then decides how to process.
Island of Logic Assignment #4 Programming Language, Spring 2003.
Input/Output Chapters 8 & 9. Character Input n Read-char reads a single character n Read-line reads until the next end-of-line –returns a string n Both.
 If you want to open an already existing file select file->open on the menu and then choose the program you want to modify. If you want to open a new.
Jörg Kewisch, June 10, 2013, LILUG Meeting CLIPS C Language Integrated Production System Developed at the Software Development Branch, NASA Lyndon B. Johnson.
1 Outline Review Introduction to LISP Symbols and Numbers Lists Writing LISP Functions LISPWorks.
DEVRY FIN 515 Entire Course NEW Check this A+ tutorial guideline at For more classes.
DEVRY MATH 533 E NTIRE C OURSE Check this A+ tutorial guideline at course For more classes.
UOP ACCT 304 Entire Class Includes Midterm and Final Check this A+ tutorial guideline at
Math Facts.
Getting Started with Lisp
FINAL EXAM INFORMATION
File Handling Programming Guides.
CS 456 Interactive Software.
Modern Programming Languages Lecture 21 Fakhar Lodhi
Addition Math Facts (Facts to 10, 15, & 20)
Defining Functions with DEFUN
Abstraction and Repetition
Lab guide # 12 Review C Preprocessor And Q&A.
REVIEW for the FINAL EXAM
CS 1054 Final Exam Coverage Final exam will cover Chapters 1-8, 10-11
The general format of case is the following: (case <key form>
Logical truths, contradictions and disjunctive normal form
Types, Truth, and Expressions (Part 2)
Presentation transcript:

Exam Preparation PrologLISP

Final Exam n Wednesday, April 10, 9am, BAC 132 check for changes the night beforecheck for changes the night before n Covers: all material from the course (LISP + Prolog)all material from the course (LISP + Prolog) more on material not on the midtermsmore on material not on the midterms n Format: just like the midtermsjust like the midterms

Prolog Main Material n I/O read, write, write_lnread, write, write_ln see, seen, tell, toldsee, seen, tell, told get, get0, putget, get0, put loops for reading from filesloops for reading from files n String manipulation n Knowledge base revisions assert, retract, retract_allassert, retract, retract_all

Prolog Review Material n Facts, Rules & Proof n Terms & Lists appendappend n Control & Negation disjunction, cut, not, \+disjunction, cut, not, \+

LISP Main Material n I/O & Strings read, read-char, read-line, print, formatread, read-char, read-line, print, format char-equal, string-equal, searchchar-equal, string-equal, search with-open-filewith-open-file n Iteration do, dotimes, dolist, let, let*do, dotimes, dolist, let, let* n Expert Systems write a function for the systemwrite a function for the system

LISP Review Material n Atoms, Lists, Math n Functions & Function Design n Special List Functions mapcar & lambda expressionsmapcar & lambda expressions n Association Lists & Key Parameters assoc & back-quoted formsassoc & back-quoted forms

Finis