Examples of the Unification Algorithm { X = int, Y = X  X } unify({ X = int, Y = X  X }) S=X, T=int, C’={Y = X  X} = [ X  int ] ; unify({ Y = int 

Slides:



Advertisements
Similar presentations
ORFEOv6r3 10. GeV muons This data MC comparison was made with the last version of ORFEO. Here a new version of the smearing tool is implemented, this is.
Advertisements

For(int i = 1; i
Computer Graphics 2D & 3D Transformation.
Chapter 7 Sorting Part II. 7.3 QUICK SORT Example left right pivot i j 5 > pivot and should go to the other side. 2 < pivot and should go to.
Letrec fact(n) = if zero?(n) then 1 else *(n, (fact sub1(n))) 4.4 Type Inference Type declarations aren't always necessary. In our toy typed language,
Hierarchical Transformation. Summary Alternatively, OpenGL thinks: A transformation updates the coordinate system. For each change, the transformation.
Science education Czech Rep., Cyprus, France, Ireland and Slovenia.
Linear Algebra and SVD (Some slides adapted from Octavia Camps)
CS 4731: Computer Graphics Lecture 7: Introduction to Transforms, 2D transforms Emmanuel Agu.
Elementary 3D Transformations - a "Graphics Engine" Transformation procedures Transformations of coordinate systems Translation Scaling Rotation.
1 CSCE 441 Computer Graphics: 2D Transformations Jinxiang Chai.
FDImplication: 1 Functional Dependencies (FDs) Let r(R) be a relation and let t  r, then the restriction of t to X  R, written t[X], is the projection.
3D Concepts UNIT 3. 3-D Coordinate Spaces Remember what we mean by a 3-D coordinate space x axis y axis z axis P y z x Right-Hand Reference System.
Multiplication M1 v1 = v = = M1 M2 = M
2D Transformations Unit - 3. Why Transformations? In graphics, once we have an object described, transformations are used to move that object, scale it.
3D Geometric Transformation Point in 3D space –Position (x, y, z) –Color (r, g, b) –Normal (Nx, Ny, Nz) Homogenous Coordinates –Position (x,y,z,w) –Usually.
Cs3180 (Prasad)L8Packages1 Packages Organizing large programs => From monolithic programs to partitioning class name space Access control of names => Enforcing.
1.00 Lecture 18 Geometric Transformations in the 2D API.
2D Transformations.
 2D Transformations 2D Transformations  Translation Translation  Rotation Rotation  Scaling Scaling.
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
1 Integer Representations. 2 Outline Encodings –Unsigned and two’s complement Conversions –Signed vs. unsigned –Long vs. short Suggested reading –Chap.
Narrowing: the scope of this project Steven Libby.
1 Computer Graphics Week9 -3D Geometric Transformation.
1. Given vectors a, b, and c: Graph: a – b + 2c and 3c – 2a + b 2. Prove that these following vectors a = 3i – 2j + k, b = i – 3j +5k, and c = 2i +j –
Animating Rotations and Using Quaternions. What We’ll Talk About Animating Translation Animating 2D Rotation Euler Angle representation 3D Angle problems.
CSE 8A Lecture 8 Reading for next class: PSA4: Collage and Picture Flip, DON’T WAIT (it’s longer than the previous PSAs)
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Unification We can represent any substitution by a set of ordered pairs: s = { t 1 /v 1, t 2 /v 2, …, t n /v n } where: t i /v i means that the term i.
Selected Exercises of Sec. 1.2~Sec.1.4 Sec. 1.2 Exercise 41 p, q, r 중에 두 개가 참이면 참이 되고, 그 외 의 경우에는 거짓이 되는 복합명제를 구하 시오. Find a compound proposition involving.
3D Transformations. Translation x’ = x + tx y’ = y + ty z’ = z + tz P = P’ = T = P’ = T. P tx ty tz xyz1xyz1 x’ y’ z’ 1 x y.
Natural Deduction for Predicate Logic Bound Variable: A variable within the scope of a quantifier. – (x) Px – (  y) (Zy · Uy) – (z) (Mz  ~Nz) Free Variable:
Public Key Cryptography 2 RSA. Lemma 1 Let s and t be relatively prime. Then Proof: Let be given by First we show that  actually maps Then we show 
Chapter 14 Image Warping. Why do image warping? Looks cool! Can correct for optical distortion (i.e. keystoning). Remote Sensing (matching together multiple.
Types and Programming Languages Lecture 14 Simon Gay Department of Computing Science University of Glasgow 2006/07.
1 By Dr. HANY ELSALAMONY.  We have seen how to create models in the 3D world. We discussed transforms in lecture 3, and we have used some transformations.
Homogeneous Coordinates and Matrix Representations Cartesian coordinate (x, y, z) Homogeneous coordinate (x h, y h, z h, h) Usually h = 1. But there are.
CS Introduction to AI Tutorial 8 Unification Tutorial 8 Unification.
렌즈왜곡 관련 논문 - 기반 논문: R.Y. Tsai, An Efficient and Accurate Camera Calibration Technique for 3D Machine Vision. Proceedings of IEEE Conference on Computer.
CPT450 – Computer Graphics
Wiring Diagram The overall wiring diagram will resemble this structure. The power board will be extremely similar to that of TigerBot #3. The difference.
Operator Overloading.
Review: Transformations
Purpose of Mohr’s Circle
CS G140 Graduate Computer Graphics
Translation Rotation Scaling
Applied Electricity and Magnetism
3D Geometric Transformations
Lecture 7 Geometric Transformations (Continued)
2D Transformations y y x x y x.
Three-Dimensional Graphics
Mining Complex Data COMP Seminar Spring 2011.
Transformations in 3 Dimensions CS /28/2018 Dr. Mark L. Hornick
Image Processing, Lecture #8
Topological Ordering Algorithm: Example
Image Processing, Lecture #8
Representing Information (2)
Representing Information (2)
Three-Dimensional Graphics
Geometric Transformations
Locking Protocols & Software Transactional Memory
Topological Ordering Algorithm: Example
CS1550 Fundamentals For Computer Graphics Transformations-2
Topological Ordering Algorithm: Example
Rendering – Matrix Transformations and the Graphics Pipeline
CS G140 Graduate Computer Graphics
Real Estate Services - Austin, TX
Topological Ordering Algorithm: Example
LECTURE 11 SPINS.
: Chapter 7: Two Dimensional Image Transformation
Presentation transcript:

Examples of the Unification Algorithm { X = int, Y = X  X } unify({ X = int, Y = X  X }) S=X, T=int, C’={Y = X  X} = [ X  int ] ; unify({ Y = int  int }) S=Y, T=int  int, C’={ } = [ X  int ] ; [ Y  int  int ] ; unify({ }) = [ X  int ] ; [ Y  int  int ] ; [ ] = [ X  int, Y  int  int ] { int  int = X  Y } unify({ int  int = X  Y }) S=int  int, T=X  Y, C’={ } = unify({ int = X, int = Y }) S=int, T=X, C’={ int = Y } = [ X  int ] ; unify({ int = Y }) S=int, T=Y, C’={ } = [ X  int ] ; [ Y  int ] ; unify({ }) = [ X  int, Y  int ]

Examples of the Unification Algorithm { X  Y = Y  Z, Z = U  W } unify({ X  Y = Y  Z, Z = U  W }) S=X  Y, T= Y  Z, C’={Z = U  W} = unify({ Z = U  W, X = Y, Y = Z }) S=Z, T=U  W, C’={ X = Y, Y = Z } = [ Z  U  W ] ; unify({ X = Y, Y = U  W }) = [ Z  U  W ] ; [ X  Y ] ; unify({ Y = U  W }) = [ Z  U  W ] ; [ X  Y ] ; [ Y  U  W ] = [ Z  U  W, X  Y ] ; [ Y  U  W ] = [ Z  U  W, X  U  W, Y  U  W ]

Examples of the Unification Algorithm { int = int  Y } unify({ int = int  Y }) S=int, T= int  Y, C’={ } fails { Y = int  Y } unify({ Y = int  Y }) S=Y, T= int  Y, C’={ } fails { } unify({ }) = [ ]

Reference