48 Pages

lec07

Course: ICOM 4036, Fall 2009
School: UPR Mayagüez
Rating:
 
 
 
 
 

Word Count: 1920

Document Preview

4036: ICOM PROGRAMMING LANGUAGES Lecture 5 Logic Programming 05/17/09 What is Prolog Prolog is a `typeless' language with a very simple syntax. Prolog is declarative: you describe the relationship between input and output, not how to construct the output from the input ("specify what you want, not how to compute it") Prolog uses a subset of first-order logic First-Order Logic Simplest form...

Register Now

Unformatted Document Excerpt

Coursehero >> United States >> UPR Mayagüez >> ICOM 4036

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.
4036: ICOM PROGRAMMING LANGUAGES Lecture 5 Logic Programming 05/17/09 What is Prolog Prolog is a `typeless' language with a very simple syntax. Prolog is declarative: you describe the relationship between input and output, not how to construct the output from the input ("specify what you want, not how to compute it") Prolog uses a subset of first-order logic First-Order Logic Simplest form of logical statement is an atomic formula. An assertion about objects. Examples: is-man(tom) is-woman(mary) married-to(tom,mary) mother-of(mary,john) First Order Logic More complex formulas can be built up using logical connectives: Men and Women are humans X [is-men(X) v is-woman(x) is-human(x)] Somebody is married to Tom X married-to(tom,X) Some woman is married to Tom X [married-to(tom,X) is-woman(X)] John has a mother X mother-of(X, john) Two offspring of the same mother are siblings X Y Z [mother-of(Z, X) mother-of(Z, Y) siblings(X, Y)] is the Existential quantifier is the Universal quantifier Logical Inference Example 2: Given these facts: is-man(carlos) is-man(pedro) and this rule: X [is-mortal(X) is-man(X)] derive: is-mortal(carlos), is-mortal(pedro). Logical Inference Logic programming is based on a simple idea: From facts and inferences try to prove more facts or inferences. Prolog Notation A rule: X [p(X) (q(X) r(X))] is written as p(X) q(X), r(X). Prolog conventions: variables begin with upper case (A, B, X, Y, Big, Small, ACE) constants begin with lower case (a, b, x, y, plato, aristotle) Prolog Assertions /* list of facts in prolog, stored in an ascii file, `family.pl'*/ mother-of(mary, ann). mother-of(mary, joe). mother-of(sue, mary). father-of(mike, ann). father-of(mike, joe). grandparent-of(sue, ann). /* reading the facts from a file */ ?- consult ( `family.pl' ). family.pl compiled, 0.00 sec, 828 bytes Prolog Evaluation ?- mother-of(sue, mary). Yes ?- mother-of(sue, ann). no ?- father-of( X, Y ). X = mike; Y = joe ; no % Prolog returns these solutions one at a time, in the order it finds them. You can press semicolon (;) to repeat the query and find the next solution. Prolog responds "no" when no more valid variable bindings of the variables can be found. Prolog Inference Rulesc /* Rules */ parent-of( X , Y ) : mother-of( X , Y ). % if mother(X,Y) then parent(X,Y) parent-of( X , Y ) : father-of( X , Y ). % if father(X,Y) then parent(X,Y) grandparent( X , Z ) : parent-of( X , Y ), parent-of(Y, Z ). % if parent(X,Y) and parent(Y,Z) then grandparent(X,Z) := means Prolog Inference Rule Evaluation ?- parent-of( X , ann), parent-of( X , joe). X = mary; X = mike; no ?- grandparent-of(sue, Y ). Y = ann; Y = joe; no Factorial in Prolog /* specification of factorial n! */ factorial(0,1). factorial(N, M) : N1 is N 1, factorial (N1, M1), M is N*M1. Takes 1 assertion and 1 inference Factorial in Prolog - Evaluation Lists in Prolog mylength( [ ], 0). mylength( [X | Y], N): mylength(Y, Nx), N is Nx+1. ? mylength( [1, 7, 9], X ). X=3 ? - mylength(jim, X ). No ? - mylength(Jim, X ). Jim = [ ] X=0 List Membership mymember( X , [X | Y] ). mymember( X , [W | Z ] ) : mymember( X , Z ). ?mymember(a, [b, c, 6] ). no ? mymember(a, [b, a, 6] ). yes ? mymember( X , [b, c, 6] ). X = b; X = c; X = 6; no Appending Lists The Problem: Define a relation append(X,Y,Z) as X appended to Y yields Z Appending Lists The Problem: Define a relation append(X,Y,Z) to mean that X appended to Y yields Z append([], Y, Y). append([H|X], Y, [H|Z]) :append(X,Y,Z). Appending Lists ?- append([1,2,3,4,5],[a,b,c,d],Z). Z = [1,2,3,4,5,a,b,c,d]; no ?- append(X,Y,[1,2,3]). X = [] Y = [1,2,3]; X = [1] Y = [2,3]; X = [1,2] Y = [3]; X = [1,2,3] Y = []; no Prolog Computes ALL Possible Bindings! Control in Prolog Prolog tries to solve the clauses from left to right. If there is a database file around, it will be used in a similarly sequential fashion. 1. Goal Order: Solve goals from left to right. 2. Rule Order: Select the first applicable rule, where first refers to their order of appearance in the program/file/database Control in Prolog The actual search algorithm is: 1. start with a query as the current goal. 2. WHILE the current goal is non-empty DO choose the leftmost subgoal ; IF a rule applies to the subgoal THEN select the first applicable rule; form a new current goal; ELSE backtrack; ENDWHILE SUCCEED Control in Prolog Thus the order of the queries is of paramount importance . The general paradigm in Prolog is Guess then Verify: Clauses with the fewest solutions should come first, followed by those that filter or verify these few solutions Fibonacci in Prolog fib1(1, 1). fib1(2, 1). fib1(N1, F1) :N1 > 2, N2 is N1 - 1, N3 is N1 - 2, fib1(N2, F2), fib1(N3, F3), F1 is F2 + F3. More List Processing remove(X, L1, L2) ~ sets L2 to the list obtained by removing the first occurrence of X from list L1 remove(X, [X|Rest], Rest). remove(X, [Y|Rest], [Y|Rest2]) :X \ == Y, remove(X, Rest, Rest2). More List Processing replace(X, Y, L1, L2) ~ sets L2 to the list obtained by replacing all occurrences of X in list L1 with Y replace(_, _, [], []). replace(X, Y, [X|Rest], [Y|Rest2]) :replace(X, Y, Rest, Rest2). replace(X, Y, [Z|Rest], [Z|Rest2]) :Z \== X, replace(X, Y, Rest, Rest2). More List Processing Write a predicate insert(X, Y, Z) that can be used to generate in Z all of the ways of inserting the value X into the list Y. insert(X, [], insert(X, [X]). [Y|Rest], [X,Y|Rest]). insert(X, [Y|Rest], [Y|Rest2]) :insert(X,Rest, Rest2). More List Processing Write a predicate permutation(X, Y) that can be used to generate in Y all of the permutations of list X permutation([], []). permutation([X|Rest], Y) :permutation(Rest, Z), insert(X, Z, Y). Graphs in Prolog b c path(a,b). path(b,c). path(c,d). path(d,b). path(a,c). Route(X,X). Route(X,Y):- path(X,Z), route(Z,Y). d Write a predicate route(X,Y) that success if there is a connection between X and Y a Binary Search Trees in Prolog <bstree>::= empty node(<number>, <bstree>, <bstree>) node(15,node(2,node(0,empty,empty), node(10,node(9,node(3,empty,empty), empty), node(12,empty,empty))), node(16,empty,node(19,empty,empty))) Binary Search Trees isbtree(empty). isbtree(node(N,L,R)):- number(N),isbtree(L),isbtree(R), smaller(N,R),bigger(N,L). smaller(N,empty). smaller(N, node(M,L,R)):- N < M, smaller(N,L), smaller(N,R). bigger(N, empty). bigger(N, node(M,L,R)):- N > M, bigger(N,L), bigger(N,R). Binary Search Trees ?- [btree]. ?isbtree(node(6,node(9,empty,empty),empty)). no ?isbtree(node(9,node(6,empty,empty),empty)). yes Binary Search Trees Define a relation which tells whether a particular number is in a binary search tree . mymember(N,T) should be true if the number N is in the tree T. mymember(K,node(K,_,_)). mymember(K,node(N,S,_)) :K <N, mymember(K,S). mymember(K,node(N,_,T)) :K >T, mymember(K,T). Binary search Trees ?mymember(3,node(10,node(9,node(3,empty,empty),empty) , node(12,empty,empty))). yes Sublists (Goal Order) myappend([], Y, Y). myappend([H|X], Y, [H|Z]) :myappend(X,Y,Z). myprefix(X,Z) :- myappend(X,Y,Z). mysuffix(Y,Z) :- myappend(X,Y,Z). Version 1 sublist1(S,Z) :myprefix(X,Z), mysuffix(S,X). Version 2 sublist2(S,Z) :mysuffix(S,X), myprefix(X,Z). Sublists ?- [sublist]. ?- sublist1([e], [a,b,c]). no ?- sublist2([e], [a,b,c]). Fatal Error: global stack overflow ... Version 1 So what's happening? If we ask the question: sublist1([e], [a,b,c]). this becomes prefix(X,[a,b,c]), suffix([e],X). and using the guess-query idea we see that the first goal will generate four guesses: [] [a] [a,b] [a,b,c] none of which pass the verify goal, so we fail. Version 2 On the other hand, if we ask the question: sublist2([e], [a,b,c]). this becomes suffix([e],X),prefix(X,[a,b,c]). using the guess-query idea note that the goal will generate an infinite number of guesses. [e] [_,e] [_,_,e] [_,_,_,e] [_,_,_,_,e] None of which pass the verify goal, so we never terminate!! Towers of Hanoi A B C You can move N disks from A to C in three general recursive steps. Move N-1 disks from A pole to the B pole using C as auxiliary. Move the last (Nth) disk directly over to the C pole. Move N-1 disks from the B pole to the C pole using A as auxiliary. Towers of Hanoi loc := right;middle;left hanoi(integer) move(integer,loc,loc,loc) inform(loc,loc) inform(Loc1, Loc2):write("\nMove a disk from ", Loc1, " to ", Loc2). Towers of Hanoi hanoi(N):move(N,left,middle,right). move(1,A,_,C) :- inform(A,C),!. move(N,A,B,C):N1 is N-1, move(N1,A,C,B), inform(A,C), move(N1,B,A,C). Logic Circuits construct an exclusive OR circuit from AND, OR, and NOT circuits, and then che...

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:

UPR Mayagüez - ICOM - 4036
University of Puerto Rico Mayagez Department of Electrical and Computer Engineering ICOM 4036: Programming Languages Spring 2006 Problem Set 3 DUE Tuesday April 4, 2006Double IntegralsFor this programming assignment you are required to develop th
UPR Mayagüez - INEL - 4206
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|27 Aug 2002 18:10:48 -0000 vti_extenderversion:SR|5.0.2.3409 vti_title:SR|Department of Electrical and Computer Engineering vti_assignedto:SR| vti_approvallevel:SR| vti_backlinkinfo:VX|courses/spring200
UPR Mayagüez - ICOM - 4036
ICOM 4036: Programming Languages Otoo de 2003 Temas a estudiar para el examen parcial I1) Programming Language History and Design Criteria a) Temas cubiertos en las siguientes lecturas: i) Transparencias Lecture 1 ii) Texto Captulo 1 (todas las secc
UPR Mayagüez - ICOM - 4036
Universidad de Puerto Rico Recinto Universitario de Mayagez Departamento de Ingeniera Elctrica y ComputadorasICOM 4036 Programming LanguagesPrimavera 2008 Ejercicios de prctica Examen Parcial I 1) Device Turing Machine to accomplish the following
UPR Mayagüez - ICOM - 4036
Universidad de Puerto Rico Recinto Universitario de Mayagez Departamento de Ingeniera Elctrica y ComputadorasICOM 4036 Programming LanguagesOtoo 2007 Ejercicios de prctica Examen Parcial II 1) Design low-level computer to perform the following co
UPR Mayagüez - ICOM - 4036
Universidad de Puerto Rico Recinto Universitario de Mayagez Departamento de Ingeniera Elctrica y ComputadorasICOM 4036 Programming LanguagesOtoo de 2007 Ejercicios de prctica Examen Parcial III Write recursive versions in C+ and MIPS assembly lan
UPR Mayagüez - ICOM - 4036
Universidad de Puerto Rico Recinto Universitario de Mayagez Departamento de Ingeniera Elctrica y ComputadorasICOM 4036 Programming LanguagesOtoo de 2007 Ejercicios de prctica Examen Parcial III Write recursive versions in C+ and MIPS assembly lan
UPR Mayagüez - ICOM - 4029
University of Puerto Rico Mayagez Campus College of Engineering Department of Electrical and Computer Engineering ICOM4029 Compilers Professor: Bienvenido Vlez Technical Assistant: Ren D. BadaLaboratory 2 Lexical AnalysisThe function of a lexica
UPR Mayagüez - ICOM - 4029
University of Puerto Rico Mayagez Campus College of Engineering Department of Electrical and Computer Engineering ICOM4029 Compilers Professor: Bienvenido Vlez Technical Assistant: Ren D. BadaLaboratory 4 PA's 1 &amp; 2 I. Solution to Programming Ass
UPR Mayagüez - ICOM - 4029
University of Puerto Rico Mayagez Campus College of Engineering Department of Electrical and Computer Engineering ICOM4029 Compilers Professor: Bienvenido Vlez Technical Assistant: Ren D. BadaLaboratory 8 Semantic Analysis (continued) I. Role of
UPR Mayagüez - ICOM - 4036
ICOM 4015 Advanced ProgrammingLecture 13 Data Abstraction IReading: Chapter 6Prof. Bienvenido Vlez05/17/09ICOM 40151Data Abstraction Lecture Series Lecture 1 introduction to classes Lecture 2 encapsulation Lecture 3 class speciali
UPR Mayagüez - ICOM - 4036
Chapter 12 Topics Introduction Object-Oriented Programming Design Issues for Object-Oriented Languages Support for Object-Oriented Programming in Smalltalk Support for Object-Oriented Programming in C+ Support for Object-Oriented Programming in
UPR Mayagüez - ICOM - 4036
Variables, Names, Scope and LifetimeICOM 4036 Lecture 9ISBN 0-321-19362-8What is Variable? Imperative view A variable is an abstraction of a memory (state) cell Functional view A variable is an abstraction of a value Every definition int
UPR Mayagüez - ICOM - 4036
University of Puerto Rico Department of Electrical and Computer Engineering ICOM 4036: Programming Languages Spring 2006 Problem Set #1 (DUE Feb 15 In class) 1. Provide the state diagram for a Turing Machine recognizing the set of strings anbncn of e
UPR Mayagüez - ICOM - 4036
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|03 Oct 2003 14:17:34 -0000 vti_extenderversion:SR|5.0.2.4330 vti_title:SR|Department of Electrical and Computer Engineering vti_backlinkinfo:VX|courses/spring2002/inel4206/inel4206.htm courses/Fall2003/
UPR Mayagüez - ICOM - 4015
IntroductionAdvanced Programming ICOM 4015 Lecture 1 Reading: Java Concepts Chapter 1Fall 2008Slides adapted from Java Concepts companion slides1Lecture Goals To understand the activity of programming To learn about machine code and high l
UPR Mayagüez - ICOM - 4015
ICOM 4015: Advanced ProgrammingLecture 2Reading: Chapter Two: Using ObjectsICOM 4015 Fall 2008Big Java by Cay Horstmann Copyright 2008 by John Wiley &amp; Sons. All rights reserved.Chapter Two: Using ObjectsICOM 4015 Fall 2008Big Java by Cay H
UPR Mayagüez - ICOM - 4015
ICOM 4015: Advanced ProgrammingLecture 4Chapter Four: Fundamental Data TypesICOM 4015 Fall 2008Big Java by Cay Horstmann Copyright 2008 by John Wiley &amp; Sons. All rights reserved.Chapter Four: Fundamental Data TypesICOM 4015 Fall 2008Big Jav
UPR Mayagüez - ICOM - 4015
ICOM 4015: Advanced ProgrammingLecture 5Chapter Five: DecisionsICOM 4015 Fall 2008Big Java by Cay Horstmann Copyright 2008 by John Wiley &amp; Sons. All rights reserved.Chapter Five: DecisionsBig Java by Cay Horstmann Copyright 2008 by John Wil
UPR Mayagüez - ICOM - 4015
ICOM 4015: Advanced ProgrammingLecture 8Chapter Eight: Designing ClassesICOM 4015 Fall 2008Big Java by Cay Horstmann Copyright 2008 by John Wiley &amp; Sons. All rights reserved.Chapter Eight: Designing ClassesBig Java by Cay Horstmann Copyright
UPR Mayagüez - ICOM - 4015
ICOM 4015: Advanced ProgrammingLecture 9Chapter Nine: Interfaces and PolymorphismICOM 4015 Fall 2008Big Java by Cay Horstmann Copyright 2008 by John Wiley &amp; Sons. All rights reserved.Chapter Nine: Interfaces and PolymorphismBig Java by Cay H
UPR Mayagüez - ICOM - 4015
ICOM 4015: Advanced ProgrammingLecture 10Chapter Ten: InheritanceICOM 4015 Fall 2008Big Java by Cay Horstmann Copyright 2008 by John Wiley &amp; Sons. All rights reserved.Chapter Ten: InheritanceBig Java by Cay Horstmann Copyright 2008 by John
UPR Mayagüez - ICOM - 4015
ICOM 4015: Advanced ProgrammingLecture 13Chapter Thirteen: RecursionICOM 4015 Fall 2008Big Java by Cay Horstmann Copyright 2008 by John Wiley &amp; Sons. All rights reserved.Chapter Thirteen: RecursionBig Java by Cay Horstmann Copyright 2008 b
UPR Mayagüez - ICOM - 4015
ICOM 4015: Advanced ProgrammingLecture 14Chapter Fourteen: Sorting and SearchingICOM 4015 Fall 2008Big Java by Cay Horstmann Copyright 2008 by John Wiley &amp; Sons. All rights reserved.Chapter Fourteen: Sorting and SearchingBig Java by Cay Hor
UPR Mayagüez - INEL - 4206
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|15 Jan 2003 14:53:06 -0000 vti_extenderversion:SR|5.0.2.3409 vti_title:SR|Department of Electrical and Computer Engineering vti_assignedto:SR| vti_approvallevel:SR| vti_backlinkinfo:VX|courses/spring200
UPR Mayagüez - ICOM - 4029
Department of Electrical and Computer Engineering University of Puerto Rico Mayagez CampusICOM 4029 Compilers Fall 2003Prof: Bienvenido Vlez Asistente: Arturo SilvaLaboratorio N 2: Ejecutando FLEX bajo LinuxObjetivos1. Entender la metodologa
UPR Mayagüez - ICOM - 4036
The Nature of ComputingICOM 4036 Lecture 2Prof. Bienvenido VelezSpring 2007ICOM 4036 Programming Laguages Lecture 21Some Inaccurate Yet Popular Perceptions of Computing Computing = Computers Computing = Programming Computing = Software
UPR Mayagüez - ICOM - 4036
Universidad de Puerto Rico Recinto Universitario de Mayagez Departamento de Ingeniera Elctrica y ComputadorasICOM 4036 Programming LanguagesOtoo 2004 Ejercicios de prctica Examen Parcial I 1. Add a STACK pointer register to the Easy I Data Path.
UPR Mayagüez - ICOM - 4036
ICOM 4036: PROGRAMMING LANGUAGESLecture 5 Functional Programming The Case of Scheme 05/17/09Required Readings Texbook (Scott PLP) Chapter 11 Section 2: Functional Programming Scheme Language Description Revised Report on the Algorithmic Langu
UPR Mayagüez - INEL - 4206
Universidad de Puerto Rico Recinto Universitario de MayagezINEL 4206 MicroprocesadoresPrimavera 2002 Ejercicios de prctica Examen Parcial I 1. Processor Implementation. Add an instruction BrL (Branch and link) to the Easy I processor designed in
UPR Mayagüez - INEL - 4206
INEL 4206 Fall 2002 Exmen I Nombre: _5/17/09 Seccin: _Anota tu nombre y nmero de seccin en todas las hojas del examen AHORA! (penalidad de 5 puntos)Tienes 2 horas para completar tres problemas. Lee cuidadosamente todo el examen antes de empezar
UPR Mayagüez - INEL - 4206
INEL 4206 Fall 2002 Exmen I Nombre: _5/17/09Anota tu nombre y nmero de seccin en todas las hojas del examen AHORA! (penalidad de 5 puntos)Tienes 2 horas para completar todos los problemas. Lee cuidadosamente todo el examen antes de empezar a tra
UPR Mayagüez - ICOM - 4015
ICOM 4015 Advanced ProgrammingLecture 9 Data Abstraction II Class Specialization Subtype PolymorphismProf. Bienvenido Vlez05/17/09ICOM 40151Inheritance Subtype Polymorphism Outline Defining derived classes Member inheritance Method over
UPR Mayagüez - INEL - 4206
Easy IControl Unit(Level 3 Flowcharts) fetchop1DI&lt;0:9&gt; ABUS AOFetchOpfetchop2AO EAB EDB DI00 11x00 00x00 branch on opcode 100 101 0000 01000 011opcodeaoprsoprloadstorebrnjumpFall 2002INEL 4206 Microprocessors
UPR Mayagüez - INEL - 4206
The Nature of ComputingINEL 4206 Microprocessors Lecture 2Bienvenido Vlez Ph. D. School of Engineering University of Puerto Rico - MayagezSome Inaccurate (Although Popular) Perceptions of Computing Computing = (Electronic) Computers Computing
UPR Mayagüez - ICOM - 4036
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|15 Jan 2004 16:25:08 -0000 vti_extenderversion:SR|5.0.2.4330 vti_title:SR|Department of Electrical and Computer Engineering vti_syncwith_ece.uprm.edu\:21/public_html:TX|15 Jan 2004 16:25:08 -0000 vti_sy
UPR Mayagüez - INEL - 4206
Universidad de Puerto Rico Recinto Universitario de MayagezINEL 4206 MicroprocesadoresPrimavera 2002 Ejercicios de prctica Examen Parcial I 1. Processor Implementation. Add an instruction BrL (Branch and link) to the Easy I processor designed in
UPR Mayagüez - INEL - 4206
INEL 4206 Spring 2002 Exmen II Nombre: _5/17/09 Seccin: _Anota tu nombre y nmero de seccin en todas las hojas del examen AHORA! (penalidad de 5 puntos)Tienes 2 horas para completar tres problemas. Lee cuidadosamente todo el examen antes de empez
UPR Mayagüez - ICOM - 4036
Universidad de Puerto Rico Recinto Universitario de MayagezICOM 4036 Programming LanguagesOtoo 2003 Ejercicios de prctica Examen Parcial II 1. Write a logic program in Prolog to compute the greatest common divisor (GCD) of 2 integer arguments. Th
UPR Mayagüez - ICOM - 4029
Programming Assignments Dates Happy Hour October 15 November 22 December 14-16PA 3 (Parser) 4a (Semantic Analyzer) 4b 5a (Code Generator) 5bHand-out Date September 29 October 11 October 25 November 15 November 29Deadline October 11 October 25 N
UPR Mayagüez - INEL - 4206
Evaluacion Curso INEL 4206 Segundo Examen.Menciona los aspectos que ms te gustan de la clase INEL 4206 en orden decreciente de importancia.AspectoEl uso de las transparencias en la clase y tener un buen Web-Site para el curso.Porcentaje37.09
UPR Mayagüez - INEL - 4206
Universidad de Puerto Rico Mayaguez Department of Electrical and Computer Engineering INEL 4206 Microprocessors Exam III Summary of Topics Review all previous material up to Exam II Procedures o Parameter Passing o Stack frames o Recursive proce
UPR Mayagüez - ICOM - 4015
Sus contestaciones al problemario 2 deben ser entregadas electrnicamente por e-mail siguiendo las siguientes instrucciones.0. Crear un directorio para almacenar los archivos relacionados con cadaproblemario. No tiene que hacer este paso si ya lo h
UPR Mayagüez - ICOM - 4015
Department of Electrical and Computer Engineering University of Puerto Rico Mayagez ICOM 4015 Advanced Programming Fall 2006 Exam I Practice Exercises and Problem Set 1 DUE: September 14, 2006 In class 1) Create a new Eclipse project titled icom4015
UPR Mayagüez - ICOM - 4036
vti_encoding:SR|utf8-nl vti_author:SR|BVWS\bvelez vti_modifiedby:SR|BVWS\bvelez vti_timelastmodified:TR|15 Aug 2005 18:50:12 -0000 vti_timecreated:TR|08 Nov 2004 11:08:29 -0000 vti_title:SR|Universidad de Puerto Rico vti_extenderversion:SR|5.0.2.6417
UPR Mayagüez - ICOM - 4036
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|29 Aug 2005 18:28:44 -0000 vti_extenderversion:SR|5.0.2.6417 vti_author:SR|CHURCH\bvelez vti_modifiedby:SR|BVWS\bvelez vti_timecreated:TR|20 Jan 2004 16:01:58 -0000 vti_title:SR|Chapter 1 vti_nexttolast
UPR Mayagüez - ICOM - 4036
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|18 Oct 2005 18:41:18 -0000 vti_extenderversion:SR|5.0.2.6417 vti_author:SR|CHURCH\bvelez vti_modifiedby:SR|BVWS\bvelez vti_timecreated:TR|04 Sep 2003 17:25:30 -0000 vti_title:SR|Imperative Programming T
UPR Mayagüez - PA - 4029
ICOM 4029 Compiler Writing 1HandoutProgramming Assignment I1 Due Friday, September 3, 2004 at 11:59pmThis assignment asks you to write a short Cool program. The purpose is to acquaint you with the Cool language and to give you experience with so
UPR Mayagüez - ICOM - 4036
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|13 Oct 2004 16:46:56 -0000 vti_extenderversion:SR|5.0.2.6417 vti_author:SR|CHURCH\bvelez vti_modifiedby:SR|BVWS\bvelez vti_timecreated:TR|04 Sep 2003 17:25:30 -0000 vti_title:SR|Imperative Programming T
UPR Mayagüez - ICOM - 4036
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|11 May 2004 18:57:00 -0000 vti_extenderversion:SR|5.0.2.4803 vti_backlinkinfo:VX|courses/Fall2004/icom4036/icom4036.htm courses/Spring2004/icom4036/icom4036.htm vti_author:SR|CHURCH\bvelez vti_modifiedb
UPR Mayagüez - INEL - 4206
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|25 Nov 2002 14:19:52 -0000 vti_extenderversion:SR|5.0.2.3409 vti_author:SR|CHURCH\bvelez vti_modifiedby:SR|CHURCH\bvelez vti_timecreated:TR|22 Nov 2002 13:30:27 -0000 vti_title:SR|Problema vti_assignedt
UPR Mayagüez - ICOM - 4015
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|30 Jan 2001 13:43:12 -0000 vti_extenderversion:SR|4.0.2.4426 vti_backlinkinfo:VX|courses/spring2001/icom4015/icom4015.htm vti_cacheddtm:TX|30 Jan 2001 13:43:12 -0000 vti_filesize:IR|42496 vti_cachedlink
UPR Mayagüez - ICOM - 4015
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|18 Sep 2001 12:37:56 -0000 vti_extenderversion:SR|4.0.2.4426 vti_filesize:IR|60416 vti_title:SR|ICOM 4015 Advanced Programming vti_assignedto:SR| vti_approvallevel:SR| vti_backlinkinfo:VX|courses/fall20
UPR Mayagüez - ICOM - 4015
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|14 Nov 2001 16:22:06 -0000 vti_extenderversion:SR|4.0.2.4426 vti_backlinkinfo:VX|courses/fall2001/icom4015/icom4015.htm vti_filesize:IR|44544 vti_title:SR|ICOM 4015 Advanced Programming vti_syncwith_ece
UPR Mayagüez - PA - 4029
ICOM 4029 Compiler WritingHandout 4Programming Assignment IV1 A Semantic Analyzer for COOLDue Friday, November 14, 2003i.IntroductionIn this assignment you will implement the static semantics of Cool. You will use the abstract syntax trees
UPR Mayagüez - ICOM - 4015
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|02 Oct 2001 15:15:56 -0000 vti_extenderversion:SR|5.0.2.4803 vti_title:SR| vti_backlinkinfo:VX|courses/fall2001/icom4015/icom4015.htm vti_syncwith_ece.uprm.edu\:21/public_html:TX|02 Oct 2001 15:15:56 -0
UPR Mayagüez - ICOM - 4015
vti_encoding:SR|utf8-nl vti_author:SR|Michael vti_timecreated:TR|29 Feb 2000 02:30:38 -0000 vti_timelastmodified:TR|27 Mar 2000 14:32:00 -0000 vti_filesize:IR|50176 vti_title:SR|ICOM 4015 Advanced Programming vti_assignedto:SR| vti_approvallevel:SR|
UPR Mayagüez - ICOM - 4015
vti_encoding:SR|utf8-nl vti_author:SR|Michael vti_timecreated:TR|29 Feb 2000 02:30:38 -0000 vti_timelastmodified:TR|27 Mar 2000 14:32:00 -0000 vti_filesize:IR|59904 vti_title:SR|ICOM 4015 Advanced Programming vti_assignedto:SR| vti_approvallevel:SR|
UPR Mayagüez - ICOM - 4029
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|04 Oct 2004 20:46:56 -0000 vti_extenderversion:SR|5.0.2.6417 vti_author:SR|BVWS\bvelez vti_modifiedby:SR|BVWS\bvelez vti_timecreated:TR|04 Oct 2004 20:46:56 -0000 vti_cacheddtm:TX|04 Oct 2004 20:46:56 -
UPR Mayagüez - ICOM - 4029
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|04 Oct 2004 20:46:56 -0000 vti_extenderversion:SR|5.0.2.6417 vti_author:SR|BVWS\bvelez vti_modifiedby:SR|BVWS\bvelez vti_timecreated:TR|04 Oct 2004 20:46:56 -0000 vti_cacheddtm:TX|04 Oct 2004 20:46:56 -