SlideShare a Scribd company logo
Overview of
Artificial Intelligence
Thomas R. Ioerger
Associate Professor
Department of Computer Science
Texas A&M University
What is AI?
• Real applications, not science fiction
– Control systems, diagnosis systems, games,
interactive animations, combat simulations,
manufacturing scheduling, transportation logistics,
financial analysis, computer-aided tutoring, search-
and-rescue robots
Different Perspectives
• Philosophical perspective
– What is the nature of “intelligence”? Can a
machine/program ever be truly “intelligent”?
– Strong AI hypothesis: Is acting intelligently sufficient?
– laws of thought; rational (ideal) decision-making
• Socrates is a man; men are mortal; therefore, Socrates is
mortal
• Psychological perspective
– What is the nature of “human intelligence”?
– Cognitive science – concept representations, internal
world model, information processing metaphor
– role of ST/LT memory? visualization? emotions?
analogy? creativity?
– build programs to simulate inference, learning...
• Mathematical perspective
– Is “intelligence” a computable function?
– input: world state, output: actions
– Can intelligence be systematized? (Leibnitz)
– just a matter of having enough rules?
– higher-order logics for belief, self-reference
• Engineering (pragmatic) perspective
– AI helps build complex systems that solve difficult real-
world problems
– decision-making (agents)
– use knowledge-based systems
to encode “expertise” (chess,
medicine, aircraft engines...)
sense
decide act
weak methods:
Search Planning
strong methods:
Inference
Search Algorithms
• Define state representation
• Define operators (fn: state→neighbor states)
• Define goal (criteria)
• Given initial state (S0), generate state space
S0
Many problems can be modeled as search
• tic-tac-toe
– states=boards, operator=moves
• symbolic integration
– states=equations, opers=algebraic manipulations
• class schedule
– states=partial schedule, opers=add/remove class
• rock band tour (traveling salesman problem)
– states=order of cities to visit, opers=swap order
• robot-motion planning
– states=robot configuration, opers=joint bending
1
2 12
3 6 8 13 14
4 5 7 9 10 11 15
1
2 43
5 6 7 8 9 10 11 12 13
14 15 16 17 18 19 20
Depth-first search
(DFS)
Breadth-first search
(BFS)
Notes:
recursive algorithms using stacks or queues
BFS often out-performs, due to memory limits for large spaces
choice depends on complexity analysis: consider exponential tree size O(bd
)
Heuristics
• give guidance to search in terms of which nodes
look “closest to the goal”
– node evaluation function
– h(n)=w1*(piece_differential)+w2*(center_control)+
w3*(#pieces_can_be_taken)+w4*(#kings)
• greedy algorithms search these nodes first
• bias direction of search to explore “best” parts of
state space (most likely to contain goal)
• A* algorithm
– optimal (under certain conditions)
– finds shortest path to a goal
– insensitive to errors in heuristic function
Specialized Search Algorithms
• Game-playing
– two-player zero-sum games (alternate moves)
– minimax algorithm: form of “look-ahead” – If I make a
move, how will opponent likely respond? Which move
leads to highest assured payoff?
• Constraint-satisfaction problems (CSPs)
– state=partial variable assignment
– goal find assignment that satisfies constraints
– algorithms use back-tracking, constraint propagation,
and heuristics
– pre-process constraint-graph to make more efficient
– examples: map-coloring, propositional satisfiability,
server configuration
• Variables WA, NT, Q, NSW, V, SA, T
• Domains Di = {red,green,blue}
• Constraints: adjacent regions must have
different colors, e.g., WA ≠ NT
CSP algorithms
operate on the
constraint graph
Planning
• How to transform world state to achieve goal?
• operators represent actions
– encode pre-conditions and effects in logic
Initial state:
in(kitchen)
have(eggs)
have(flour)
have(sugar)
have(pan)
~have(cake)
Goal:
have(cake)
mix dry
ingredients
mix wet
ingredients
transfer
ingredients
from bowl
to pan
bake at 350
apply
frosting
pre-conds:
∀x ingredient(x,cake)
&dry(x)→have(x)
effect:
mixed(dry_ingr)
pre-conds:
mixed(dry_ingr)&
mixed(wet_ingr)
pre-cond: baked
goto kitchen
goto store
start
car
buy
milk
sautee
another example to think about:
planning rescue mission at disaster site
Planning
• How to transform world state to achieve goal?
• operators represent actions
– encode pre-conditions and effects in logic
Initial state:
in(kitchen)
have(eggs)
have(flour)
have(sugar)
have(pan)
~have(cake)
Goal:
have(cake)
mix dry
ingredients
mix wet
ingredients
transfer
ingredients
from bowl
to pan
bake at 350
apply
frosting
pre-conds:
∀x ingredient(x,cake)
&dry(x)→have(x)
effect:
mixed(dry_ingr)
pre-conds:
mixed(dry_ingr)&
mixed(wet_ingr)
pre-cond: baked
goto kitchen
goto store
start
car
buy
milk
sautee
another example to think about:
planning rescue mission at disaster site
Planning Algorithms
have(cake) <= baked(cake)&have(frosting) <=...
• State-space search
– search for sequence of actions
– very inefficient
• Goal regression
– work backwards from goal
– identify actions relevant to goal; make sub-goals
• Partial-order planning
– treat plan as a graph among actions
– add links representing dependencies
• GraphPlan algorithm
– keep track of sets of achievable states; more efficient
• SatPlan algorithm
– model as a satisfiability problem
Knowledge-Based Methods
• need: representation for search heuristics and planning
operators
• need expertise to produce expert problem-solving behavior
• first-order logic – a formal language for representing
knowledge
• rules, constraints, facts, associations, strategies...
– rain(today)→wet(road)
– fever→infection
– in(class_C_air_space)→reduce(air_speed,150kts)
– can(take_opp_queen,X)&~losing_move(X)→do(X)
• use knowledge base (KB) to infer what to do
– goals & initial_state & KB do(action)
– need inference algorithms to derive what is entailed
• declarative vs. procedural programming
First-Order Logic
• lingua franca of AI
• syntax
– predicates (relations): author(Candide,Voltaire)
– connectives: & (and), v (or), ~ (not), → (implies)
– quantified variables: ∀X person(X)→∃Y mother(X,Y)
• Ontologies – systems of concepts for writing KBs
– categories of stuff (solids, fluids, living, mammals, food,
equipment...) and their properties
– places (in), part_of, measures (volume)
– domain-dependent: authorship, ambush, infection...
– time, action, processes (Situation Calculus, Event Logic)
– beliefs, commitments
• issues: granularity, consistency, expressiveness
Inference Algorithms
• Natural deduction
– search for proof of query
– use rules like modus ponens (from A and A→B, get B)
• Backward-chaining
– start with goal, reduce to sub-goals
– complete only for definite-clause KBs (rules with
conjunctive antecedents)
• Resolution Theorem-proving
– convert all rules to clauses (disjunctions)
– {AvB,~BvC}→AvC
– keeping resolving clauses till produce empty clause
– complete for all FOL KBs
D
A&B→D
A BvC ~C
B
Prolog and Expert Systems
• Automated deduction systems
• programming = writing rules
• make query, system responds with true/false
plus variable bindings
• inference algorithm based on backward-chaining
Prolog example
sibling(X,Y) :- parent(Z,X), parent(Z,Y).
grandfather(X,Y) :- father(X,Z),parent(Z,Y).
parent(X,Y) :- father(X,Y).
parent(X,Y) :- mother(X,Y).
mother(tracy, sally).
father(bill, sally).
father(bill, erica).
father(mike, bill).
?- sibling(sally,erica).
Yes
?- grandfather(sally,X).
grandfather(sally,mike)
• Unification Algorithm
– determine variable bindings to match antecedents of
rules with facts
– unif. algorithm traverses syntax tree of expressions
– P(X,f(Y),Y) matches P(a,f(b),b) if {X/a,Y/b}
– also matches P(a,f(a),a)
– does not match P(a,b,c), P(b,b,b)
P
X f Y
Y
P
a f b
b
• Managing Uncertainty in real expert systems
– default/non-monotonic logics (assumptions)
– certainty factors (degrees of beliefs)
– probabilistic logics
– Bayesian networks (causal influences)
• Complexity of inference?
– suitable for real-time applications?
Application of Data Structures and
Algorithms in AI
• priority queues in search algorithms
• recursion in search algorithms
• shortest-path algorithm for planning/robotics
• hash tables for indexing rules by predicate in KBS
• dynamic programming to improve efficiency of
theorem-provers (caching intermediate inferences)
• graph algorithms for constraint-satisfaction
problems (arc-consistency)
• complexity analysis to select search algorithm
based on branching factor and depth of solution for
a given problem
Use of AI in Research
• intelligent agents for flight simulation
– collaboration with Dr. John Valasek (Aerospace Eng.)
– goal: on-board decision-making without ATC
– approach: use 1) multi-agent negotiation, 2)
reinforcement learning
• pattern recognition in protein crystallography
– collaboration with Dr. James Sacchettini (Biochem.)
– goal: automate determination of protein structures
from electron density maps
– approach: extract features representing local 3D
patterns of electron density and use to recognize
amino acids and build
– uses neural nets, and heuristics encoding knowledge
of typical protein conformations and contacts
• TAMU courses on AI
– CPSC 420/625 – Artificial Intelligence
– undergrad
• CPSC 452 – Robotics and Spatial Intelligence
• also related: CPSC 436 (HCI) and CPSC 470 (IR)
– graduate
• CPSC 609 - AI Approaches to Software Engineering*
• CPSC 631 – Agents/Programming Environments for AI
• CPSC 632 - Expert Systems*
• CPSC 633 - Machine Learning
• CPSC 634 Intelligent User Interfaces
• CPSC 636 - Neural Networks
• CPSC 639 - Fuzzy Logic and Intelligent Systems
• CPSC 643 Seminar in Intelligent Systems and Robotics
• CPSC 644 - Cortical Networks
• CPSC 666 – Statistical Pattern Recognition (not official yet)
• Special Topics courses (CPSC 689)...
• * = not actively taught
goals KB initial state
goal state
perception
action
agent environment

More Related Content

Similar to Lecture4 (1)

Intro.ppt
Intro.pptIntro.ppt
Intro.ppt
SharabiNaif
 
Intro.ppt
Intro.pptIntro.ppt
Intro.ppt
Anonymous9etQKwW
 
Evolutionary Design of Swarms (SSCI 2014)
Evolutionary Design of Swarms (SSCI 2014)Evolutionary Design of Swarms (SSCI 2014)
Evolutionary Design of Swarms (SSCI 2014)
Benjamin Bengfort
 
Lecture on AI and Machine Learning
Lecture on AI and Machine LearningLecture on AI and Machine Learning
Lecture on AI and Machine Learning
Xiaonan Wang
 
2019 cognitive-architecture-v1-pres
2019 cognitive-architecture-v1-pres2019 cognitive-architecture-v1-pres
2019 cognitive-architecture-v1-pres
Eric Saund
 
Fields in computer science
Fields in computer scienceFields in computer science
Fields in computer science
UC San Diego
 
Useing PSO to optimize logit model with Tensorflow
Useing PSO to optimize logit model with TensorflowUseing PSO to optimize logit model with Tensorflow
Useing PSO to optimize logit model with Tensorflow
Yi-Fan Liou
 
Intro to data visualization
Intro to data visualizationIntro to data visualization
Intro to data visualization
Jan Aerts
 
Presentation on Machine Learning and Data Mining
Presentation on Machine Learning and Data MiningPresentation on Machine Learning and Data Mining
Presentation on Machine Learning and Data Miningbutest
 
ML MODULE 1_slideshare.pdf
ML MODULE 1_slideshare.pdfML MODULE 1_slideshare.pdf
ML MODULE 1_slideshare.pdf
Shiwani Gupta
 
Classification of Big Data Use Cases by different Facets
Classification of Big Data Use Cases by different FacetsClassification of Big Data Use Cases by different Facets
Classification of Big Data Use Cases by different Facets
Geoffrey Fox
 
Studies of HPCC Systems from Machine Learning Perspectives
Studies of HPCC Systems from Machine Learning PerspectivesStudies of HPCC Systems from Machine Learning Perspectives
Studies of HPCC Systems from Machine Learning Perspectives
HPCC Systems
 
Learning to assess Linked Data relationships using Genetic Programming
Learning to assess Linked Data relationships using Genetic ProgrammingLearning to assess Linked Data relationships using Genetic Programming
Learning to assess Linked Data relationships using Genetic Programming
Vrije Universiteit Amsterdam
 
Automated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance SystemsAutomated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance Systems
Lionel Briand
 
Software Verification with Abstraction-Based Methods
Software Verification with Abstraction-Based MethodsSoftware Verification with Abstraction-Based Methods
Software Verification with Abstraction-Based Methods
Akos Hajdu
 
AutoML for Data Science Productivity and Toward Better Digital Decisions
AutoML for Data Science Productivity and Toward Better Digital DecisionsAutoML for Data Science Productivity and Toward Better Digital Decisions
AutoML for Data Science Productivity and Toward Better Digital Decisions
Steven Gustafson
 
Fast Single-pass K-means Clusterting at Oxford
Fast Single-pass K-means Clusterting at Oxford Fast Single-pass K-means Clusterting at Oxford
Fast Single-pass K-means Clusterting at Oxford
MapR Technologies
 
Artificial Intelligence by B. Ravikumar
Artificial Intelligence by B. RavikumarArtificial Intelligence by B. Ravikumar
Artificial Intelligence by B. Ravikumar
Garry D. Lasaga
 

Similar to Lecture4 (1) (20)

Intro.ppt
Intro.pptIntro.ppt
Intro.ppt
 
Intro.ppt
Intro.pptIntro.ppt
Intro.ppt
 
Evolutionary Design of Swarms (SSCI 2014)
Evolutionary Design of Swarms (SSCI 2014)Evolutionary Design of Swarms (SSCI 2014)
Evolutionary Design of Swarms (SSCI 2014)
 
Lecture on AI and Machine Learning
Lecture on AI and Machine LearningLecture on AI and Machine Learning
Lecture on AI and Machine Learning
 
2019 cognitive-architecture-v1-pres
2019 cognitive-architecture-v1-pres2019 cognitive-architecture-v1-pres
2019 cognitive-architecture-v1-pres
 
Fields in computer science
Fields in computer scienceFields in computer science
Fields in computer science
 
Useing PSO to optimize logit model with Tensorflow
Useing PSO to optimize logit model with TensorflowUseing PSO to optimize logit model with Tensorflow
Useing PSO to optimize logit model with Tensorflow
 
Intro to data visualization
Intro to data visualizationIntro to data visualization
Intro to data visualization
 
Presentation on Machine Learning and Data Mining
Presentation on Machine Learning and Data MiningPresentation on Machine Learning and Data Mining
Presentation on Machine Learning and Data Mining
 
ML MODULE 1_slideshare.pdf
ML MODULE 1_slideshare.pdfML MODULE 1_slideshare.pdf
ML MODULE 1_slideshare.pdf
 
Classification of Big Data Use Cases by different Facets
Classification of Big Data Use Cases by different FacetsClassification of Big Data Use Cases by different Facets
Classification of Big Data Use Cases by different Facets
 
Studies of HPCC Systems from Machine Learning Perspectives
Studies of HPCC Systems from Machine Learning PerspectivesStudies of HPCC Systems from Machine Learning Perspectives
Studies of HPCC Systems from Machine Learning Perspectives
 
Learning to assess Linked Data relationships using Genetic Programming
Learning to assess Linked Data relationships using Genetic ProgrammingLearning to assess Linked Data relationships using Genetic Programming
Learning to assess Linked Data relationships using Genetic Programming
 
Automated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance SystemsAutomated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance Systems
 
AI Robotics
AI RoboticsAI Robotics
AI Robotics
 
Software Verification with Abstraction-Based Methods
Software Verification with Abstraction-Based MethodsSoftware Verification with Abstraction-Based Methods
Software Verification with Abstraction-Based Methods
 
AutoML for Data Science Productivity and Toward Better Digital Decisions
AutoML for Data Science Productivity and Toward Better Digital DecisionsAutoML for Data Science Productivity and Toward Better Digital Decisions
AutoML for Data Science Productivity and Toward Better Digital Decisions
 
Fast Single-pass K-means Clusterting at Oxford
Fast Single-pass K-means Clusterting at Oxford Fast Single-pass K-means Clusterting at Oxford
Fast Single-pass K-means Clusterting at Oxford
 
Artificial Intelligence by B. Ravikumar
Artificial Intelligence by B. RavikumarArtificial Intelligence by B. Ravikumar
Artificial Intelligence by B. Ravikumar
 
Learning from data
Learning from dataLearning from data
Learning from data
 

Recently uploaded

GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 

Recently uploaded (20)

GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 

Lecture4 (1)

  • 1. Overview of Artificial Intelligence Thomas R. Ioerger Associate Professor Department of Computer Science Texas A&M University
  • 2. What is AI? • Real applications, not science fiction – Control systems, diagnosis systems, games, interactive animations, combat simulations, manufacturing scheduling, transportation logistics, financial analysis, computer-aided tutoring, search- and-rescue robots
  • 3. Different Perspectives • Philosophical perspective – What is the nature of “intelligence”? Can a machine/program ever be truly “intelligent”? – Strong AI hypothesis: Is acting intelligently sufficient? – laws of thought; rational (ideal) decision-making • Socrates is a man; men are mortal; therefore, Socrates is mortal • Psychological perspective – What is the nature of “human intelligence”? – Cognitive science – concept representations, internal world model, information processing metaphor – role of ST/LT memory? visualization? emotions? analogy? creativity? – build programs to simulate inference, learning...
  • 4. • Mathematical perspective – Is “intelligence” a computable function? – input: world state, output: actions – Can intelligence be systematized? (Leibnitz) – just a matter of having enough rules? – higher-order logics for belief, self-reference • Engineering (pragmatic) perspective – AI helps build complex systems that solve difficult real- world problems – decision-making (agents) – use knowledge-based systems to encode “expertise” (chess, medicine, aircraft engines...) sense decide act weak methods: Search Planning strong methods: Inference
  • 5. Search Algorithms • Define state representation • Define operators (fn: state→neighbor states) • Define goal (criteria) • Given initial state (S0), generate state space S0
  • 6. Many problems can be modeled as search • tic-tac-toe – states=boards, operator=moves • symbolic integration – states=equations, opers=algebraic manipulations • class schedule – states=partial schedule, opers=add/remove class • rock band tour (traveling salesman problem) – states=order of cities to visit, opers=swap order • robot-motion planning – states=robot configuration, opers=joint bending
  • 7. 1 2 12 3 6 8 13 14 4 5 7 9 10 11 15 1 2 43 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Depth-first search (DFS) Breadth-first search (BFS) Notes: recursive algorithms using stacks or queues BFS often out-performs, due to memory limits for large spaces choice depends on complexity analysis: consider exponential tree size O(bd )
  • 8. Heuristics • give guidance to search in terms of which nodes look “closest to the goal” – node evaluation function – h(n)=w1*(piece_differential)+w2*(center_control)+ w3*(#pieces_can_be_taken)+w4*(#kings) • greedy algorithms search these nodes first • bias direction of search to explore “best” parts of state space (most likely to contain goal) • A* algorithm – optimal (under certain conditions) – finds shortest path to a goal – insensitive to errors in heuristic function
  • 9. Specialized Search Algorithms • Game-playing – two-player zero-sum games (alternate moves) – minimax algorithm: form of “look-ahead” – If I make a move, how will opponent likely respond? Which move leads to highest assured payoff? • Constraint-satisfaction problems (CSPs) – state=partial variable assignment – goal find assignment that satisfies constraints – algorithms use back-tracking, constraint propagation, and heuristics – pre-process constraint-graph to make more efficient – examples: map-coloring, propositional satisfiability, server configuration
  • 10. • Variables WA, NT, Q, NSW, V, SA, T • Domains Di = {red,green,blue} • Constraints: adjacent regions must have different colors, e.g., WA ≠ NT CSP algorithms operate on the constraint graph
  • 11. Planning • How to transform world state to achieve goal? • operators represent actions – encode pre-conditions and effects in logic Initial state: in(kitchen) have(eggs) have(flour) have(sugar) have(pan) ~have(cake) Goal: have(cake) mix dry ingredients mix wet ingredients transfer ingredients from bowl to pan bake at 350 apply frosting pre-conds: ∀x ingredient(x,cake) &dry(x)→have(x) effect: mixed(dry_ingr) pre-conds: mixed(dry_ingr)& mixed(wet_ingr) pre-cond: baked goto kitchen goto store start car buy milk sautee another example to think about: planning rescue mission at disaster site
  • 12. Planning • How to transform world state to achieve goal? • operators represent actions – encode pre-conditions and effects in logic Initial state: in(kitchen) have(eggs) have(flour) have(sugar) have(pan) ~have(cake) Goal: have(cake) mix dry ingredients mix wet ingredients transfer ingredients from bowl to pan bake at 350 apply frosting pre-conds: ∀x ingredient(x,cake) &dry(x)→have(x) effect: mixed(dry_ingr) pre-conds: mixed(dry_ingr)& mixed(wet_ingr) pre-cond: baked goto kitchen goto store start car buy milk sautee another example to think about: planning rescue mission at disaster site
  • 13. Planning Algorithms have(cake) <= baked(cake)&have(frosting) <=... • State-space search – search for sequence of actions – very inefficient • Goal regression – work backwards from goal – identify actions relevant to goal; make sub-goals • Partial-order planning – treat plan as a graph among actions – add links representing dependencies • GraphPlan algorithm – keep track of sets of achievable states; more efficient • SatPlan algorithm – model as a satisfiability problem
  • 14. Knowledge-Based Methods • need: representation for search heuristics and planning operators • need expertise to produce expert problem-solving behavior • first-order logic – a formal language for representing knowledge • rules, constraints, facts, associations, strategies... – rain(today)→wet(road) – fever→infection – in(class_C_air_space)→reduce(air_speed,150kts) – can(take_opp_queen,X)&~losing_move(X)→do(X) • use knowledge base (KB) to infer what to do – goals & initial_state & KB do(action) – need inference algorithms to derive what is entailed • declarative vs. procedural programming
  • 15. First-Order Logic • lingua franca of AI • syntax – predicates (relations): author(Candide,Voltaire) – connectives: & (and), v (or), ~ (not), → (implies) – quantified variables: ∀X person(X)→∃Y mother(X,Y) • Ontologies – systems of concepts for writing KBs – categories of stuff (solids, fluids, living, mammals, food, equipment...) and their properties – places (in), part_of, measures (volume) – domain-dependent: authorship, ambush, infection... – time, action, processes (Situation Calculus, Event Logic) – beliefs, commitments • issues: granularity, consistency, expressiveness
  • 16. Inference Algorithms • Natural deduction – search for proof of query – use rules like modus ponens (from A and A→B, get B) • Backward-chaining – start with goal, reduce to sub-goals – complete only for definite-clause KBs (rules with conjunctive antecedents) • Resolution Theorem-proving – convert all rules to clauses (disjunctions) – {AvB,~BvC}→AvC – keeping resolving clauses till produce empty clause – complete for all FOL KBs D A&B→D A BvC ~C B
  • 17. Prolog and Expert Systems • Automated deduction systems • programming = writing rules • make query, system responds with true/false plus variable bindings • inference algorithm based on backward-chaining
  • 18. Prolog example sibling(X,Y) :- parent(Z,X), parent(Z,Y). grandfather(X,Y) :- father(X,Z),parent(Z,Y). parent(X,Y) :- father(X,Y). parent(X,Y) :- mother(X,Y). mother(tracy, sally). father(bill, sally). father(bill, erica). father(mike, bill). ?- sibling(sally,erica). Yes ?- grandfather(sally,X). grandfather(sally,mike)
  • 19. • Unification Algorithm – determine variable bindings to match antecedents of rules with facts – unif. algorithm traverses syntax tree of expressions – P(X,f(Y),Y) matches P(a,f(b),b) if {X/a,Y/b} – also matches P(a,f(a),a) – does not match P(a,b,c), P(b,b,b) P X f Y Y P a f b b
  • 20. • Managing Uncertainty in real expert systems – default/non-monotonic logics (assumptions) – certainty factors (degrees of beliefs) – probabilistic logics – Bayesian networks (causal influences) • Complexity of inference? – suitable for real-time applications?
  • 21. Application of Data Structures and Algorithms in AI • priority queues in search algorithms • recursion in search algorithms • shortest-path algorithm for planning/robotics • hash tables for indexing rules by predicate in KBS • dynamic programming to improve efficiency of theorem-provers (caching intermediate inferences) • graph algorithms for constraint-satisfaction problems (arc-consistency) • complexity analysis to select search algorithm based on branching factor and depth of solution for a given problem
  • 22. Use of AI in Research • intelligent agents for flight simulation – collaboration with Dr. John Valasek (Aerospace Eng.) – goal: on-board decision-making without ATC – approach: use 1) multi-agent negotiation, 2) reinforcement learning • pattern recognition in protein crystallography – collaboration with Dr. James Sacchettini (Biochem.) – goal: automate determination of protein structures from electron density maps – approach: extract features representing local 3D patterns of electron density and use to recognize amino acids and build – uses neural nets, and heuristics encoding knowledge of typical protein conformations and contacts
  • 23. • TAMU courses on AI – CPSC 420/625 – Artificial Intelligence – undergrad • CPSC 452 – Robotics and Spatial Intelligence • also related: CPSC 436 (HCI) and CPSC 470 (IR) – graduate • CPSC 609 - AI Approaches to Software Engineering* • CPSC 631 – Agents/Programming Environments for AI • CPSC 632 - Expert Systems* • CPSC 633 - Machine Learning • CPSC 634 Intelligent User Interfaces • CPSC 636 - Neural Networks • CPSC 639 - Fuzzy Logic and Intelligent Systems • CPSC 643 Seminar in Intelligent Systems and Robotics • CPSC 644 - Cortical Networks • CPSC 666 – Statistical Pattern Recognition (not official yet) • Special Topics courses (CPSC 689)... • * = not actively taught
  • 24. goals KB initial state goal state perception action agent environment