CSE583: Programming Languages

2/22/00


Click here to start


Table of Contents

CSE583: Programming Languages

Two weeks: logic and constraint logic programming paradigms

Constraint Logic Programming

Importance of Constraint Logic Programming

Tonight

Prolog example

How many search steps?

The problem is…

Speeding up the earlier example: reordering conjuncts

CLP

Solvers

CLP does “more”

A CLP(R) example

The example in CLP(R): replace is with =

Furthermore

Fibonacci: Prolog vs. CLP(R)

Slides

Constraints

Constraints

Constraints

Satisfiability

Satisfiability

Constraints: syntactic issues

Equivalent Constraints

Modeling with constraints

Modelling with constraints

Constraint Satisfaction

Constraint Satisfaction

Constraint Satisfaction

Gauss-Jordan elimination

Gauss-Jordan Example 1

PPT Slide

Solved Form

Tree Constraints

Tree Examples

Tree Constraints

Terms

Term Examples

Tree Constraint Solving

Tree Constraint Solving

Tree Solving Example

One extra case

Other Constraint Domains

Boolean Constraints

Boolean Constraints

Boolean Solver

Boolean Constraints

Blocks World Constraints

Blocks World Constraints

Solver Definition

Properties of Solvers

Properties of Solvers

Constraints Summary

Simplification, Optimization and Implication

Constraint Simplification

Redundant Constraints

Redundant Constraints

Solved Form Solvers

Projection

Constraint Simplifiers

Optimization

Optimization Problem

Optimization Example

Optimization

Simplex Algorithm

Simplex Algorithm

Simplex Example

Simplex Solved Form

Simplex Example

Simplex Algorithm

Simplex Example

Another example

Implication and Equivalence

Implication Example

Simplication, Optimization and Implication Summary

Some more CLP(R) examples

Rules

Using Rules

Modeling

Modelling Example

Modelling Example

Modeling Example Cont.

More Complicated Model

Options Trading

Modeling Functions

Modeling Options

Using the Model

Wrap up

Domains

Next week

Author: David Notkin

Email: notkin@cs.washington.edu

Home Page: http://www.cs.washington.edu/education/courses/583

Download presentation source