SlideShare a Scribd company logo
Abstraction
From Reality to a model
To answer questions
Classic AI problem:
Water Jug
Two Jugs: 2 liters and 5 liters
You can empty the water from a completely
You can pour the contents of
one jar into the other
Goal: To have a jug with exactly 1 liter of water
You can fill them up completely from
a water source
Water Jug Abstraction
Determine what is essential for model to solve problem
Simplify model of reality
Many levels of Abstraction
Modeling Water in a Jug
Levels of abstraction: Water as molecule
Absorption Spectra of water
Why microwave oven works
(IR spectra)
Why water is blue’
(visible absorbtion spectra)
QM Electronic Structure
Numerical models
But not the right level of abstraction for our problem
Modeling Water in a Jug
Levels of abstraction: Water as a fluid
Hydrogen bonding:
Why water is a fluid
Computational
Fluid Dynamics
flow in a pipe
Surface Tension
But still not the right level of abstraction for our problem
Modeling Water in a Jug
Measuring milliliters
Measuring cups
Cubic meters
Water in a lake
Weight in grams
We are closer….
We are measuring water
Do we care about units?
Do we care about the container?
Modeling Water in a Jug
Do we care about units?
Do we care about the container?
2 congli and 5 congli
2 uma and 5 uma
2 gallons and 5 gallons
2 ml and 5 ml
2 liters and 5 liters
2 cm3 and 5 cm3
2 sextarius and 5 sextarius
Modeling Water in a Jug
Do we care about units?
Do we care about the container?
NO!
2 5
Just two arithmetic numbers
Almost any type: Reals, integers, decimals, …..
We just need to add and subtract them
Levels of Abstraction
Modeling of water
Water can be a molecule Microscopic view of water
Water can be an electronic structure Electronic view of water
Water can be a liquid Macroscopic view of water
Water can be measured Using properties of water
Why Levels of Abstraction?
There is no reason why we cannot use a
Computational fluid dynamic model of water flowing
between the jugs
To solve our problem
Why not?
We are lazy
Water Jug Problem
Solution
Why Levels of Abstraction?
More official answer
We have only so much computing power
That is why there is no model for everything
Why is water blue
Why does a microwave work
How to solve the water jugs problem
Answers to all
my questions
The
Oracle
The modeler has to make choices of what to model
Two Jugs
with water
Don’t care what they are made of…..
Don’t care how big they are
…. Except that one holds 2 of something
and the other holds 5 of something
Placeholders for how much water in each jug
(Jug 1 amount, jug 2 amount)
This is (vector) representation of the
state of the system
of two jugs of water
Jugs
with water
(Jug 1 amount, jug 2 amount)
Both jugs are empty (0,0)
Both jugs are full (2,5)
Both jugs are partially full (1,4)
Reached goal of our problem (0,3)
Impossible situation (4,7)
Different states of the system
Jugs
with water
(Jug 1 amount, jug 2 amount)
Fill up jug one (X,Y) (2,Y)
Fill up jug two (X,Y) (X,5)
Empty jug one (X,Y) (0,Y)
Fill up jug two (X,Y) (X,0)
Simple Operations
Before oepration
Transformations
from one state of the system
to
another state to another state of the system After operation
Jugs
with water
(Jug 1 amount, jug 2 amount)
Other Operations
Pour jug one into jug two
If all of water in jug one fits in jug two
(X,Y) (0,X+Y)
With condition: X+Y <= 5
Pour jug two into jug two
(X,Y) (X+Y,0)
With condition: X+Y <= 2
If all of water in jug two fits in jug one
Jugs
with water
(Jug 1 amount, jug 2 amount)
Other Operations
Pour jug one into jug two
If all of water in jug one does not fit in jug two
(X,Y) (X1,5)
Jug 2 is full with 5, but how much is in jug one?
X+Y > 5
X1 = X+Y - 5
Jug one has what is left over
Jugs
with water
(Jug 1 amount, jug 2 amount)
Other Operations
Pour jug two into jug one
If all of water in jug two does not fit in jug one
(X,Y) (2,X1)
Jug one is full with 2, but how much is in jug two?
X+Y > 2
X1 = X+Y - 2
Jug two has what is left over
Abstraction
Representation of the jugs
(Jug 1 amount, jug 2 amount)
Fill up jug one (X,Y) (2,Y)
Fill up jug two (X,Y) (X,5)
Empty jug one (X,Y) (0,Y)
Fill up jug two (X,Y) (X,0)
Pour one into two (X,Y) (0,X+Y) X+Y<=5
(X,Y) (X+Y-5,5) X+Y>5
Pour two into one (X,Y) (X+Y,0) X+Y<=2
(X,Y) (2,X+Y-2) X+Y>2
Operations/Rules working on this representation
R1
R5
R6
R7
R8
R2
R3
R4
Use Structures
Use the data structures and rules to search for solution
A solution
Empty Jugs (0,0)
Fill up jug two (X,Y) (X,5)
(0,5)
R2
Pour two into one (X,Y) (2,X+Y-2) X+Y>2
(2,3)
R8
Empty jug one (X,Y) (0,Y)
(0,3)
R3
Pour two into one (X,Y) (2,X+Y-2) X+Y>2
(2,1)
R8
Empty jug one (X,Y) (0,Y)
(0,1) Done
R3
Use Structures
(0,0)
(2,3)
(0,5)
(2,1)
(0,3)
(0,1)
R2
R3
R8
R3
R8
Consecutive
Use
Of
Rules
Graph Search
(0,0)
(2,3)
(0,5)
(2,1)
(0,3)
(0,1)
R2
R3
R8
R3
R8
(0,2)
(0,4)
(2,2)
(2,4)
R1
R5
R1
R5
(2,0)
R1
(1,5)
R6
Every Branch
is an
Alternative
combination
Graph Search
Each node is the state of the system
Each connection is a rule that operates on that state
Types of graph search
Decides the order of which node to use a rule on
And
The order of which rules to apply

More Related Content

More from Edward Blurock

BlurockPresentation-KEOD2023
BlurockPresentation-KEOD2023BlurockPresentation-KEOD2023
BlurockPresentation-KEOD2023
Edward Blurock
 
KEOD-2023-Poster.pptx
KEOD-2023-Poster.pptxKEOD-2023-Poster.pptx
KEOD-2023-Poster.pptx
Edward Blurock
 
ChemConnect: Poster for European Combustion Meeting 2017
ChemConnect: Poster for European Combustion Meeting 2017ChemConnect: Poster for European Combustion Meeting 2017
ChemConnect: Poster for European Combustion Meeting 2017
Edward Blurock
 
ChemConnect: SMARTCATS presentation
ChemConnect: SMARTCATS presentationChemConnect: SMARTCATS presentation
ChemConnect: SMARTCATS presentation
Edward Blurock
 
EU COST Action CM1404: WG€ - Efficient Data Exchange
EU COST Action CM1404: WG€ - Efficient Data ExchangeEU COST Action CM1404: WG€ - Efficient Data Exchange
EU COST Action CM1404: WG€ - Efficient Data Exchange
Edward Blurock
 
ChemConnect: Viewing the datasets in the repository
ChemConnect: Viewing the datasets in the repositoryChemConnect: Viewing the datasets in the repository
ChemConnect: Viewing the datasets in the repository
Edward Blurock
 
ChemConnect: Characterizing CombusAon KineAc Data with ontologies and meta-­‐...
ChemConnect: Characterizing CombusAon KineAc Data with ontologies and meta-­‐...ChemConnect: Characterizing CombusAon KineAc Data with ontologies and meta-­‐...
ChemConnect: Characterizing CombusAon KineAc Data with ontologies and meta-­‐...
Edward Blurock
 
Poster: Characterizing Ignition behavior through morphing to generic curves
Poster: Characterizing Ignition behavior through morphing to generic curvesPoster: Characterizing Ignition behavior through morphing to generic curves
Poster: Characterizing Ignition behavior through morphing to generic curves
Edward Blurock
 
Poster: Very Open Data Project
Poster: Very Open Data ProjectPoster: Very Open Data Project
Poster: Very Open Data Project
Edward Blurock
 
Poster: Adaptive On-­‐the-­‐fly Regression Tabula@on: Beyond ISAT
Poster: Adaptive On-­‐the-­‐fly Regression Tabula@on: Beyond ISATPoster: Adaptive On-­‐the-­‐fly Regression Tabula@on: Beyond ISAT
Poster: Adaptive On-­‐the-­‐fly Regression Tabula@on: Beyond ISAT
Edward Blurock
 
Characterization Ignition Behavior through Morphing to Generic Ignition Curves
Characterization Ignition Behavior through Morphing to Generic Ignition CurvesCharacterization Ignition Behavior through Morphing to Generic Ignition Curves
Characterization Ignition Behavior through Morphing to Generic Ignition Curves
Edward Blurock
 
Paradigms
ParadigmsParadigms
Paradigms
Edward Blurock
 
Computability, turing machines and lambda calculus
Computability, turing machines and lambda calculusComputability, turing machines and lambda calculus
Computability, turing machines and lambda calculus
Edward Blurock
 
Imperative programming
Imperative programmingImperative programming
Imperative programming
Edward Blurock
 
Programming Languages
Programming LanguagesProgramming Languages
Programming Languages
Edward Blurock
 
Relational algebra
Relational algebraRelational algebra
Relational algebra
Edward Blurock
 
Database normalization
Database normalizationDatabase normalization
Database normalization
Edward Blurock
 
Generalization abstraction
Generalization abstractionGeneralization abstraction
Generalization abstraction
Edward Blurock
 
Overview
OverviewOverview
Overview
Edward Blurock
 
Networks
NetworksNetworks
Networks
Edward Blurock
 

More from Edward Blurock (20)

BlurockPresentation-KEOD2023
BlurockPresentation-KEOD2023BlurockPresentation-KEOD2023
BlurockPresentation-KEOD2023
 
KEOD-2023-Poster.pptx
KEOD-2023-Poster.pptxKEOD-2023-Poster.pptx
KEOD-2023-Poster.pptx
 
ChemConnect: Poster for European Combustion Meeting 2017
ChemConnect: Poster for European Combustion Meeting 2017ChemConnect: Poster for European Combustion Meeting 2017
ChemConnect: Poster for European Combustion Meeting 2017
 
ChemConnect: SMARTCATS presentation
ChemConnect: SMARTCATS presentationChemConnect: SMARTCATS presentation
ChemConnect: SMARTCATS presentation
 
EU COST Action CM1404: WG€ - Efficient Data Exchange
EU COST Action CM1404: WG€ - Efficient Data ExchangeEU COST Action CM1404: WG€ - Efficient Data Exchange
EU COST Action CM1404: WG€ - Efficient Data Exchange
 
ChemConnect: Viewing the datasets in the repository
ChemConnect: Viewing the datasets in the repositoryChemConnect: Viewing the datasets in the repository
ChemConnect: Viewing the datasets in the repository
 
ChemConnect: Characterizing CombusAon KineAc Data with ontologies and meta-­‐...
ChemConnect: Characterizing CombusAon KineAc Data with ontologies and meta-­‐...ChemConnect: Characterizing CombusAon KineAc Data with ontologies and meta-­‐...
ChemConnect: Characterizing CombusAon KineAc Data with ontologies and meta-­‐...
 
Poster: Characterizing Ignition behavior through morphing to generic curves
Poster: Characterizing Ignition behavior through morphing to generic curvesPoster: Characterizing Ignition behavior through morphing to generic curves
Poster: Characterizing Ignition behavior through morphing to generic curves
 
Poster: Very Open Data Project
Poster: Very Open Data ProjectPoster: Very Open Data Project
Poster: Very Open Data Project
 
Poster: Adaptive On-­‐the-­‐fly Regression Tabula@on: Beyond ISAT
Poster: Adaptive On-­‐the-­‐fly Regression Tabula@on: Beyond ISATPoster: Adaptive On-­‐the-­‐fly Regression Tabula@on: Beyond ISAT
Poster: Adaptive On-­‐the-­‐fly Regression Tabula@on: Beyond ISAT
 
Characterization Ignition Behavior through Morphing to Generic Ignition Curves
Characterization Ignition Behavior through Morphing to Generic Ignition CurvesCharacterization Ignition Behavior through Morphing to Generic Ignition Curves
Characterization Ignition Behavior through Morphing to Generic Ignition Curves
 
Paradigms
ParadigmsParadigms
Paradigms
 
Computability, turing machines and lambda calculus
Computability, turing machines and lambda calculusComputability, turing machines and lambda calculus
Computability, turing machines and lambda calculus
 
Imperative programming
Imperative programmingImperative programming
Imperative programming
 
Programming Languages
Programming LanguagesProgramming Languages
Programming Languages
 
Relational algebra
Relational algebraRelational algebra
Relational algebra
 
Database normalization
Database normalizationDatabase normalization
Database normalization
 
Generalization abstraction
Generalization abstractionGeneralization abstraction
Generalization abstraction
 
Overview
OverviewOverview
Overview
 
Networks
NetworksNetworks
Networks
 

Recently uploaded

RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
dot55audits
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
Chevonnese Chevers Whyte, MBA, B.Sc.
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
spdendr
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 

Recently uploaded (20)

RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 

Abstraction

  • 1. Abstraction From Reality to a model To answer questions
  • 2. Classic AI problem: Water Jug Two Jugs: 2 liters and 5 liters You can empty the water from a completely You can pour the contents of one jar into the other Goal: To have a jug with exactly 1 liter of water You can fill them up completely from a water source
  • 3. Water Jug Abstraction Determine what is essential for model to solve problem Simplify model of reality Many levels of Abstraction
  • 4. Modeling Water in a Jug Levels of abstraction: Water as molecule Absorption Spectra of water Why microwave oven works (IR spectra) Why water is blue’ (visible absorbtion spectra) QM Electronic Structure Numerical models But not the right level of abstraction for our problem
  • 5. Modeling Water in a Jug Levels of abstraction: Water as a fluid Hydrogen bonding: Why water is a fluid Computational Fluid Dynamics flow in a pipe Surface Tension But still not the right level of abstraction for our problem
  • 6. Modeling Water in a Jug Measuring milliliters Measuring cups Cubic meters Water in a lake Weight in grams We are closer…. We are measuring water Do we care about units? Do we care about the container?
  • 7. Modeling Water in a Jug Do we care about units? Do we care about the container? 2 congli and 5 congli 2 uma and 5 uma 2 gallons and 5 gallons 2 ml and 5 ml 2 liters and 5 liters 2 cm3 and 5 cm3 2 sextarius and 5 sextarius
  • 8. Modeling Water in a Jug Do we care about units? Do we care about the container? NO! 2 5 Just two arithmetic numbers Almost any type: Reals, integers, decimals, ….. We just need to add and subtract them
  • 9. Levels of Abstraction Modeling of water Water can be a molecule Microscopic view of water Water can be an electronic structure Electronic view of water Water can be a liquid Macroscopic view of water Water can be measured Using properties of water
  • 10. Why Levels of Abstraction? There is no reason why we cannot use a Computational fluid dynamic model of water flowing between the jugs To solve our problem Why not? We are lazy Water Jug Problem Solution
  • 11. Why Levels of Abstraction? More official answer We have only so much computing power That is why there is no model for everything Why is water blue Why does a microwave work How to solve the water jugs problem Answers to all my questions The Oracle The modeler has to make choices of what to model
  • 12. Two Jugs with water Don’t care what they are made of….. Don’t care how big they are …. Except that one holds 2 of something and the other holds 5 of something Placeholders for how much water in each jug (Jug 1 amount, jug 2 amount) This is (vector) representation of the state of the system of two jugs of water
  • 13. Jugs with water (Jug 1 amount, jug 2 amount) Both jugs are empty (0,0) Both jugs are full (2,5) Both jugs are partially full (1,4) Reached goal of our problem (0,3) Impossible situation (4,7) Different states of the system
  • 14. Jugs with water (Jug 1 amount, jug 2 amount) Fill up jug one (X,Y) (2,Y) Fill up jug two (X,Y) (X,5) Empty jug one (X,Y) (0,Y) Fill up jug two (X,Y) (X,0) Simple Operations Before oepration Transformations from one state of the system to another state to another state of the system After operation
  • 15. Jugs with water (Jug 1 amount, jug 2 amount) Other Operations Pour jug one into jug two If all of water in jug one fits in jug two (X,Y) (0,X+Y) With condition: X+Y <= 5 Pour jug two into jug two (X,Y) (X+Y,0) With condition: X+Y <= 2 If all of water in jug two fits in jug one
  • 16. Jugs with water (Jug 1 amount, jug 2 amount) Other Operations Pour jug one into jug two If all of water in jug one does not fit in jug two (X,Y) (X1,5) Jug 2 is full with 5, but how much is in jug one? X+Y > 5 X1 = X+Y - 5 Jug one has what is left over
  • 17. Jugs with water (Jug 1 amount, jug 2 amount) Other Operations Pour jug two into jug one If all of water in jug two does not fit in jug one (X,Y) (2,X1) Jug one is full with 2, but how much is in jug two? X+Y > 2 X1 = X+Y - 2 Jug two has what is left over
  • 18. Abstraction Representation of the jugs (Jug 1 amount, jug 2 amount) Fill up jug one (X,Y) (2,Y) Fill up jug two (X,Y) (X,5) Empty jug one (X,Y) (0,Y) Fill up jug two (X,Y) (X,0) Pour one into two (X,Y) (0,X+Y) X+Y<=5 (X,Y) (X+Y-5,5) X+Y>5 Pour two into one (X,Y) (X+Y,0) X+Y<=2 (X,Y) (2,X+Y-2) X+Y>2 Operations/Rules working on this representation R1 R5 R6 R7 R8 R2 R3 R4
  • 19. Use Structures Use the data structures and rules to search for solution A solution Empty Jugs (0,0) Fill up jug two (X,Y) (X,5) (0,5) R2 Pour two into one (X,Y) (2,X+Y-2) X+Y>2 (2,3) R8 Empty jug one (X,Y) (0,Y) (0,3) R3 Pour two into one (X,Y) (2,X+Y-2) X+Y>2 (2,1) R8 Empty jug one (X,Y) (0,Y) (0,1) Done R3
  • 22. Graph Search Each node is the state of the system Each connection is a rule that operates on that state Types of graph search Decides the order of which node to use a rule on And The order of which rules to apply