Introduction to Artificial Intelligence and Applications

Definition and Overview of Artificial Intelligence
  • Artificial Intelligence (AI) is defined as the science and engineering of making intelligent machines, especially intelligent computer programs. It is a major branch of computer science focused on creating machines and software capable of performing tasks that typically require human intelligence.

  • According to John McCarthy (2004), AI is explicitly defined as: "the science and engineering of making intelligent machines, especially intelligent computer programs."

  • Functionally, AI enables computers to reason, learn, and make decisions by leveraging a combination of algorithms, logic, and data to simulate human-like intelligence.

  • From a research perspective, AI consists of a set of algorithms or step-by-step instructions that allow a system to make decisions or execute actions autonomously without requiring explicit programming for every scenario.

  • From a layman's perspective, AI refers to intelligence demonstrated by machines designed to mimic human actions, adjust to new sensory inputs, and learn from experience.

  • Historical origin: In 1950, Alan Turing (a British mathematician and computer scientist) published his seminal paper Computing Machinery and Intelligence, posing the foundational question: "Can machines think?" This paper introduced the Turing Test, a standard benchmark used to evaluate whether a machine can exhibit intelligent behavior indistinguishable from that of a human.

Applications and Examples of AI
  • Chess-Playing Computers: Advanced software systems that analyze millions of potential moves, sequences, and game strategies per second to challenge and defeat human grandmasters.

  • Autonomous Vehicles (Self-Driving Cars): Mobile robotic systems equipped with multi-sensor arrays and vision systems to perceive ambient surroundings, execute trajectory planning, and navigate safely without human intervention.

  • Modern AI applications heavily integrate Deep Learning (a subfield of machine learning based on multi-layered artificial neural networks designed to mimic biological brain function) and Natural Language Processing (NLP), enabling systems to comprehend, parse, and generate natural human language.

  • Virtual Voice Assistants: Systems like Apple Siri, Amazon Alexa, and Google Assistant leverage NLP and speech recognition to process spoken commands, answer questions, and perform automated daily tasks.

Core Operational Mechanisms of AI Systems
  • AI operates by processing massive datasets, identifying underlying patterns, and making real-time decisions using mathematical and statistical models.

  • The execution pipeline of AI rests upon three major continuous processes: Learning, Reasoning, and Self-Correction.

Core Process 1: Learning

  • Definition: The phase where an AI system ingests data to discover structural relationships, correlations, and feature attributes, subsequently storing them within a mathematical model.

  • Example: In image recognition, an AI model analyzes thousands of labeled images to learn distinct visual markers separating cats from dogs.

  • Learning Paradigms:

    • Supervised Learning

    • Unsupervised Learning

    • Reinforcement Learning

Core Process 2: Reasoning

  • Definition: The cognitive/computational capability of an AI agent to draw logical conclusions, make decisions, and choose optimal actions based on learned representations.

  • Types of Reasoning:

    • Inductive Reasoning: The process of deriving generalized principles, rules, or predictive models from specific historical observations or instances.

    • Deductive Reasoning: The process of deriving specific, logically guaranteed conclusions from generalized premises, rules, or known facts.

  • Example: GPS navigation platforms like Google Maps analyze live traffic telemetry and historical user data to deduce and select the fastest driving route.

Core Process 3: Self-Correction

  • Definition: The feedback-driven iterative process wherein an AI system evaluates its prediction errors or sub-optimal decisions and adjusts its algorithmic weights or logic parameters to maximize accuracy.

  • Example: Speech-to-text engines in Siri or Alexa continuously refine their acoustic models as they receive larger volumes of user-specific voice recordings.

Advantages and Disadvantages of Artificial Intelligence

Advantages of AI

  • High Performance with Detailed Data: Rapidly parses complex, multi-dimensional, structured or unstructured datasets. In healthcare, AI scans thousands of diagnostic records to isolate pathological signatures faster than human clinicians.

  • Reduced Processing Time: Automates labor-intensive, repetitive routines at superhuman speeds (e.g., enterprise chatbots resolving thousands of simultaneous customer queries).

  • Consistency and Accuracy: Operates without fatigue, emotional bias, or physical exhaustion, delivering objective results across extended durations (e.g., automated medical imaging analysis).

  • 24/7 Operational Availability: Continuous uptime without operational downtime, critical for manufacturing, emergency support, and infrastructure monitoring.

  • Resource Optimization: Identifies structural bottlenecks in supply networks to optimize delivery schedules, reducing fuel consumption and operational costs.

  • Automation of Complex Processes: Handles high-dimensional control systems and decision matrices that exceed manual human bandwidth.

  • Predictive Maintenance: Forecasts industrial equipment failures prior to structural breakdown, drastically lowering enterprise downtime.

  • Innovation and Design: Accelerates product development via generative algorithms (e.g., AI-driven structural engineering optimization).

Disadvantages of AI

  • High Development and Maintenance Cost: Requires massive financial capital for compute hardware (GPUs/TPUs), data acquisition, infrastructure scaling, and ongoing model maintenance.

  • Need for Specialized Technical Expertise: Demands advanced skills in software engineering, applied mathematics, linear algebra, and data science.

  • Global Shortage of Skilled Professionals: Deficit in qualified AI researchers and practitioners restricts enterprise adoption, particularly in developing nations.

  • Dependency on High-Quality Data: AI models are highly sensitive to training data quality; corrupted, biased, or incomplete data results in inaccurate or unethical decisions (e.g., algorithmic bias in automated hiring software).

  • Limited Generalization and Lack of Common Sense: Systems remain highly domain-specific and cannot apply general knowledge across unrelated tasks or display genuine human creativity.

Chronological History and Milestones of AI
  • 1943 – First Neural Network Model: Warren McCulloch and Walter Pitts publish A Logical Calculus of the Ideas Immanent in Nervous Activity, introducing the mathematical abstraction of an artificial neuron and laying the ground for Artificial Neural Networks (ANNs).

  • 1950 – Turing Test Formulated: Alan Turing publishes Computing Machinery and Intelligence, setting forth operational criteria for machine intelligence.

  • 1955 / 1956 – Term "Artificial Intelligence" Coined: John McCarthy (widely regarded as the Father of Artificial Intelligence) organizes the Dartmouth Conference and officially coins the term Artificial Intelligence. Early logic programs such as the Logic Theorist and General Problem Solver (GPS) emerge shortly thereafter.

  • 1966 – ELIZA Chatbot: Developed to simulate a Rogerian psychotherapist, demonstrating early rule-based natural language interaction.

  • 1970s – 1980s – The First AI Winter: Periods characterized by reduced funding and research slowdowns due to unmet over-hyped expectations.

  • 1997 – IBM Deep Blue Victory: IBM's Deep Blue supercomputer defeats world chess champion Garry Kasparov in a six-game match, leveraging parallel computing and search algorithms evaluating millions of moves per second.

  • 2011 – Siri and IBM Watson:

    • Apple integrates Siri as a native voice assistant in mobile devices.

    • IBM Watson supercomputer beats human champions Brad Rutter and Ken Jennings on the quiz show Jeopardy!.

  • 2014 – Amazon Alexa: Commercial release of smart home virtual assistants.

  • 2016 – Tay Chatbot & AlphaGo breakthrough:

    • Microsoft's conversational bot Tay is withdrawn shortly after deployment due to inappropriate output generated from malicious user inputs.

    • DeepMind's AlphaGo defeats world champion Lee Sedol in the game of Go, demonstrating modern deep reinforcement learning and Monte Carlo tree search.

  • 2017 – AlphaGo Master & Zero: DeepMind further refines reinforcement learning architectures.

  • 2018 – EU AI Ethics Guidelines: The European Union establishes formal ethical guidelines and compliance standards for AI development.

  • 2023 onwards – Generative AI Era: Large-scale Transformer models (e.g., ChatGPT) popularize consumer-facing generative text, code, and media tools.

Structural Foundations of Artificial Intelligence

AI is anchored upon three fundamental pillars: Logic, Probability, and Cognitive Science.

Logic in Artificial Intelligence

  • Logic is the formal study of valid reasoning, providing a structured mathematical language to represent domain knowledge and draw deterministic conclusions.

  • Importance of Logic:

    • Foundation of Reasoning: Guarantees that every inferred statement logically follows from established premises.

    • Knowledge Representation: Formally encodes facts about the world into symbolic structures: ∀x(Human(x)→Mortal(x))\forall x (\text{Human}(x) \rightarrow \text{Mortal}(x))

    • Inference and Chaining: Systematically generates new knowledge from established facts. Forward chaining and backward chaining enable multi-step reasoning.

    • Transparency and Explainability: Provides auditable step-by-step decision trails essential for critical safety systems (e.g., medical diagnostics, aviation control).

  • Practical Applications of Logic:

    • Knowledge-based Expert Systems (e.g., clinical diagnosis rules).

    • Automated Theorem Proving and Planning Robotics.

    • Natural Language Parsing and Grammar Validation.

Chaining Rule Example

  • Rule 1: If it rains, the ground becomes wet.

  • Rule 2: If the ground is wet, the road becomes slippery.

  • Fact: It rains.

  • Logical Inference: The road is slippery.

Scenario Example: Smart Door Security System

  • A smart door unlocks (D=1D = 1) if and only if both the facial recognition module succeeds (F=1F = 1) AND the entered security code is correct (C=1C = 1):   D=F∧CD = F \land C

Truth Table for Smart Door Logic

Face Recognized (FF)

Code Correct (CC)

Door Unlocks (D=F∧CD = F \land C)

00

00

00

00

11

00

11

00

00

11

11

11

Probability in Artificial Intelligence

  • Probability provides the mathematical methodology for quantifying uncertainty, measuring the likelihood of events on a continuous scale from 00 (impossible) to 11 (certain).

  • Importance in AI:

    • Real-World Uncertainty: Physical environments contain noisy sensor telemetry, incomplete observations, and stochastic outcomes.

    • Decision-Making Under Ambiguity: Enables agents to make optimal choices when complete factual certainty is impossible.

    • Risk Assessment: Calculates expected costs and safety boundaries (e.g., autonomous vehicle collision avoidance).

Probabilistic Diagnosis Example

  • Given a population where 10%10\% have flu, if a patient presents with a fever, a probabilistic system assigns confidence distributions:

    • P(Flu∣Fever)=0.60P(\text{Flu} \mid \text{Fever}) = 0.60

    • P(Cold∣Fever)=0.30P(\text{Cold} \mid \text{Fever}) = 0.30

    • P(Other∣Fever)=0.10P(\text{Other} \mid \text{Fever}) = 0.10

Probabilistic Weather Assistant Example

Definition and Overview of Artificial Intelligence

  • Artificial Intelligence (AI) is defined as the science and engineering of making intelligent machines, especially intelligent computer programs. It is a major branch of computer science focused on creating machines and software capable of performing tasks that typically require human intelligence.

  • According to John McCarthy (2004), AI is explicitly defined as: "the science and engineering of making intelligent machines, especially intelligent computer programs."

  • Functionally, AI enables computers to reason, learn, and make decisions by leveraging a combination of algorithms, logic, and data to simulate human-like intelligence.

  • From a research perspective, AI consists of a set of algorithms or step-by-step instructions that allow a system to make decisions or execute actions autonomously without requiring explicit programming for every scenario.

  • From a layman's perspective, AI refers to intelligence demonstrated by machines designed to mimic human actions, adjust to new sensory inputs, and learn from experience.

  • Historical origin: In 1950, Alan Turing (a British mathematician and computer scientist) published his paper Computing Machinery and Intelligence, posing the foundational question: "Can machines think?" This paper introduced the Turing Test, a standard benchmark used to evaluate whether a machine can exhibit intelligent behavior indistinguishable from that of a human.

Applications and Examples of AI

  • Chess-Playing Computers: Advanced software systems that analyze millions of potential moves, sequences, and game strategies per second to challenge and defeat human grandmasters.

  • Autonomous Vehicles (Self-Driving Cars): Mobile robotic systems equipped with multi-sensor arrays and vision systems to perceive ambient surroundings, execute trajectory planning, and navigate safely without human intervention.

  • Modern AI applications heavily integrate Deep Learning (a subfield of machine learning based on multi-layered artificial neural networks designed to mimic biological brain function) and Natural Language Processing (NLP), enabling systems to comprehend, parse, and generate natural human language.

  • Virtual Voice Assistants: Systems like Apple Siri, Amazon Alexa, and Google Assistant leverage NLP and speech recognition to process spoken commands, answer questions, and perform automated daily tasks.

Core Operational Mechanisms of AI Systems

  • AI operates by processing massive datasets, identifying underlying patterns, and making real-time decisions using mathematical and statistical models.

  • The execution pipeline of AI rests upon three major continuous processes: Learning, Reasoning, and Self-Correction.

Core Process 1: Learning

  • Definition: The phase where an AI system takes in data to discover structural relationships, correlations, and feature attributes, subsequently storing them within a mathematical model.

  • Example: In image recognition, an AI model analyzes thousands of labeled images to learn distinct visual markers separating cats from dogs.

  • Learning Paradigms:

    • Supervised Learning

    • Unsupervised Learning

    • Reinforcement Learning

Core Process 2: Reasoning

  • Definition: The computational capability of an AI agent to draw logical conclusions, make decisions, and choose optimal actions based on learned representations.

  • Types of Reasoning:

    • Inductive Reasoning: The process of deriving generalized principles, rules, or predictive models from specific historical observations or instances.

    • Deductive Reasoning: The process of deriving specific, logically guaranteed conclusions from generalized premises, rules, or known facts.

  • Example: GPS navigation platforms like Google Maps analyze live traffic data and historical user data to deduce and select the fastest driving route.

Core Process 3: Self-Correction

  • Definition: The feedback-driven process wherein an AI system evaluates its prediction errors or sub-optimal decisions and adjusts its algorithmic parameters to maximize accuracy.

  • Example: Speech-to-text engines in Siri or Alexa continuously refine their acoustic models as they receive larger volumes of user-specific voice recordings.

Advantages and Disadvantages of Artificial Intelligence

Advantages of AI

  • High Performance with Detailed Data: Rapidly parses complex, multi-dimensional, structured or unstructured datasets. In healthcare, AI scans thousands of diagnostic records to isolate disease patterns faster than human doctors.

  • Reduced Processing Time: Automates labor-intensive, repetitive routines at high speeds (e.g., enterprise chatbots resolving thousands of simultaneous customer queries).

  • Consistency and Accuracy: Operates without fatigue, emotional bias, or physical exhaustion, delivering objective results across extended durations (e.g., automated medical imaging analysis).

  • 24/7 Operational Availability: Continuous uptime without downtime, critical for manufacturing, emergency support, and infrastructure monitoring.

  • Resource Optimization: Identifies bottlenecks in supply networks to optimize delivery schedules, reducing fuel consumption and operational costs.

  • Automation of Complex Processes: Handles complex control systems and decision matrices that exceed manual human bandwidth.

  • Predictive Maintenance: Forecasts industrial equipment failures prior to breakdown, drastically lowering downtime.

  • Innovation and Design: Accelerates product development via generative algorithms (e.g., AI-driven structural engineering optimization).

Disadvantages of AI

  • High Development and Maintenance Cost: Requires significant financial capital for compute hardware (GPUs/TPUs), data acquisition, infrastructure scaling, and ongoing model maintenance.

  • Need for Specialized Technical Expertise: Demands advanced skills in software engineering, applied mathematics, linear algebra, and data science.

  • Global Shortage of Skilled Professionals: Deficit in qualified AI researchers and practitioners restricts enterprise adoption, particularly in developing nations.

  • Dependency on High-Quality Data: AI models are highly sensitive to training data quality; corrupted, biased, or incomplete data results in inaccurate or unethical decisions (e.g., algorithmic bias in automated hiring software).

  • Limited Generalization and Lack of Common Sense: Systems remain highly domain-specific and cannot apply general knowledge across unrelated tasks or display genuine human creativity.

Chronological History and Milestones of AI

  • 1943 – First Neural Network Model: Warren McCulloch and Walter Pitts publish A Logical Calculus of the Ideas Immanent in Nervous Activity, introducing the mathematical model of an artificial neuron and laying the ground for Artificial Neural Networks (ANNs).

  • 1950 – Turing Test Formulated: Alan Turing publishes Computing Machinery and Intelligence, setting forth operational criteria for machine intelligence.

  • 1955 / 1956 – Term "Artificial Intelligence" Coined: John McCarthy (widely regarded as the Father of Artificial Intelligence) organizes the Dartmouth Conference and officially coins the term Artificial Intelligence. Early logic programs such as the Logic Theorist and General Problem Solver (GPS) emerge shortly thereafter.

  • 1966 – ELIZA Chatbot: Developed to simulate a Rogerian psychotherapist, demonstrating early rule-based natural language interaction.

  • 1970s – 1980s – The First AI Winter: Periods characterized by reduced funding and research slowdowns due to unmet over-hyped expectations.

  • 1997 – IBM Deep Blue Victory: IBM's Deep Blue supercomputer defeats world chess champion Garry Kasparov in a six-game match, leveraging parallel computing and search algorithms evaluating millions of moves per second.

  • 2011 – Siri and IBM Watson:

    • Apple integrates Siri as a native voice assistant in mobile devices.

    • IBM Watson supercomputer beats human champions Brad Rutter and Ken Jennings on the quiz show Jeopardy!.

  • 2014 – Amazon Alexa: Commercial release of smart home virtual assistants.

  • 2016 – Tay Chatbot & AlphaGo breakthrough:

    • Microsoft's conversational bot Tay is withdrawn shortly after deployment due to inappropriate output generated from malicious user inputs.

    • DeepMind's AlphaGo defeats world champion Lee Sedol in the game of Go, demonstrating modern deep reinforcement learning and Monte Carlo tree search.

  • 2017 – AlphaGo Master & Zero: DeepMind further refines reinforcement learning architectures.

  • 2018 – EU AI Ethics Guidelines: The European Union establishes formal ethical guidelines and compliance standards for AI development.

  • 2023 onwards – Generative AI Era: Large-scale Transformer models (e.g., ChatGPT) popularize consumer-facing generative text, code, and media tools.

Structural Foundations of Artificial Intelligence

AI is anchored upon three fundamental pillars: Logic, Probability, and Cognitive Science.

Logic in Artificial Intelligence

  • Logic is the formal study of valid reasoning, providing a structured mathematical language to represent domain knowledge and draw deterministic conclusions.

  • Importance of Logic:

    • Foundation of Reasoning: Guarantees that every inferred statement logically follows from established premises.

    • Knowledge Representation: Formally encodes facts about the world into symbolic structures: ∀x(Human(x)→Mortal(x))\forall x (\text{Human}(x) \rightarrow \text{Mortal}(x))

    • Inference and Chaining: Systematically generates new knowledge from established facts. Forward chaining and backward chaining enable multi-step reasoning.

    • Transparency and Explainability: Provides step-by-step decision trails essential for safety-critical systems (e.g., medical diagnostics, aviation control).

  • Practical Applications of Logic:

    • Knowledge-based Expert Systems (e.g., clinical diagnosis rules).

    • Automated Theorem Proving and Planning Robotics.

    • Natural Language Parsing and Grammar Validation.

Chaining Rule Example:

  • Rule 1: If it rains, the ground becomes wet.

  • Rule 2: If the ground is wet, the road becomes slippery.

  • Fact: It rains.

  • Logical Inference: The road is slippery.

Scenario Example: Smart Door Security System:

  • A smart door unlocks (D=1D = 1) if and only if both the facial recognition module succeeds (F=1F = 1) AND the entered security code is correct (C=1C = 1): D=F∧CD = F \land C

Truth Table for Smart Door Logic:

Face Recognized (FF)

Code Correct (CC)

Door Unlocks (D=F∧CD = F \land C)

00

00

00

00

11

00

11

00

00

11

11

11

Probability in Artificial Intelligence

  • Probability provides the mathematical methodology for measuring uncertainty, giving values on a scale from 00 (impossible) to 11 (certain).

  • Importance in AI:

    • Real-World Uncertainty: Physical environments contain noisy sensor data, incomplete observations, and uncertain outcomes.

    • Decision-Making Under Ambiguity: Enables agents to make optimal choices when complete factual certainty is impossible.

    • Risk Assessment: Calculates expected costs and safety boundaries (e.g., autonomous vehicle collision avoidance).

Probabilistic Diagnosis Example:

  • Given a population where 10%10\% have flu, if a patient presents with a fever, a probabilistic system assigns confidence distributions:

    • P(Flu∣Fever)=0.60P(\text{Flu} \mid \text{Fever}) = 0.60

    • P(Cold∣Fever)=0.30P(\text{Cold} \mid \text{Fever}) = 0.30

    • P(Other∣Fever)=0.10P(\text{Other} \mid \text{Fever}) = 0.10

Probabilistic Weather Assistant Example:

  • Historical Data:

    • On cloudy days, rain occurs with 70%70\% probability (P=0.70P = 0.70).

    • On clear days, rain occurs with 10%10\% probability (P=0.10P = 0.10).

  • Decision Rule: If current observation = Cloudy, system recommends carrying an umbrella because 0.70>0.500.70 > 0.50 threshold.

Cognitive Science and its Role in AI

  • Cognitive Science is the interdisciplinary study of the human mind, brain, and intelligence, drawing across six primary fields:

    • Psychology (behavior and mental processes)

    • Neuroscience (biological brain structures)

    • Linguistics (language structures and syntax)

    • Philosophy (reasoning, consciousness, and logic)

    • Anthropology (human evolution and social cognition)

    • Computer Science (computation and algorithms)

  • Strategic Roles in AI:

    • Bio-inspired Architectures: Biological neural networks directly inspired Artificial Neural Networks (ANNs) and weight updating mechanisms.

    • Human-Computer Interaction (HCI): Models human emotional context, conversational nuance, and intent to construct intuitive conversational agents.

    • Explainable AI (XAI): Translates complex computational mechanics into human-interpretable concepts.

Synthesis of the Three Foundations

  • Logic ensures correct deterministic reasoning.

  • Probability manages non-deterministic and noisy environments.

  • Cognitive Science provides human-aligned interaction, perception models, and cognitive abstractions.

Real-World Integrated Applications:

  • Autonomous Vehicles:

    • Logic: Follows traffic rules (e.g., Stop at a red light).

    • Probability: Evaluates sensor inputs (e.g., 85%85\% probability an object in a blind spot is a pedestrian).

    • Cognitive Science: Models pedestrian crossing behavior and generates driver-friendly interface alerts.

  • Medical Diagnostic Assistant:

    • Logic: Applies strict clinical guidelines.

    • Probability: Computes disease likelihood based on statistical patient histories.

    • Cognitive Science: Structures diagnostic explanations in accordance with doctor workflows.

Taxonomy and Classification of AI Systems

Classification Based on Capabilities

Weak AI (Narrow AI)

  • Designed and trained to execute a single, highly specific task.

  • Operates under strict boundaries without true generalized awareness or self-consciousness.

  • Key Characteristics:

    • Task-specific specialization (cannot transfer knowledge to distinct tasks).

    • Driven by pattern recognition and targeted optimization.

  • Examples: Apple Siri, Google Translate, Netflix recommendation algorithms.

Strong AI (Artificial General Intelligence - AGI)

  • Theoretical system possessing generalized human-level intelligence across all cognitive domains.

  • Key Characteristics:

    • Abstract reasoning, cross-domain knowledge transfer, self-awareness, and moral judgment.

  • Conceptual Examples: Autonomous multi-domain robots, HAL 9000, Jarvis.

Artificial Superintelligence (ASI)

  • Theoretical evolution beyond AGI where machine cognitive capacity greatly surpasses combined human intelligence in creative, scientific, and social domains.

Classification Based on Functionalities

Reactive Machines

  • The most basic functional class; operates purely on real-time inputs without storing past experiences or maintaining memory.

  • Example: IBM Deep Blue.

Limited Memory

  • Maintains short-term historical state representations to inform immediate decision-making.

  • Example: Self-driving cars monitoring recent positions and speeds of surrounding traffic.

Theory of Mind

  • Theoretical systems capable of understanding human mental states, emotions, beliefs, and expectations to adapt behavior dynamically.

Self-Awareness

  • Ultimate theoretical stage of machine intelligence featuring complete self-conscious existence, internal feelings, and independent agency.

Agents and Environments

  • Agent: Anything that perceives its external environment via sensors and acts upon that environment using actuators.

  • Formally, an agent function maps any given percept sequence to an action: f:P∗→Af : P^* \rightarrow A where P∗P^* is the set of all possible percept sequences and AA is the set of all available actions.

  • Environment: The surrounding external world in which the agent operates, providing sensory inputs (percepts) and receiving operational outputs (actions).

Taxonomic Classes of Agents

  • Human Agent: Uses physical biological sensors (eyes, ears, nose, skin) and biological effectors (hands, legs, vocal cords).

  • Robotic Agent: Uses hardware sensors (cameras, sonar, LIDAR, infrared rangefinders) and mechanical effectors (electric motors, hydraulic limbs, wheels).

  • Software Agent: Uses digital inputs (bitstrings, network packets, database queries) and programmatic effectors (file writes, API calls, displaying visual output).

Case Study: Vacuum-Cleaner World……………………………………..

  • Environment: Two spatial locations, Square AA and Square B$.\n- Percepts: Location tag and surface condition, e.g., [A, \text{Clean}]oror[A, \text{Dirty}].\n- Actions: Move \text{Left},Move, Move\text{Right},,\text{Suck}(cleandirt),or(clean dirt), or\text{NoOp} (do nothing).\n\nPartial Agent Function Mapping:\n| Percept Sequence | Action |\n| :--- | :--- |\n| [A, \text{Clean}]∣|\text{Right} |\n| [A, \text{Dirty}]∣|\text{Suck} |\n| [B, \text{Clean}]∣|\text{Left} |\n| [B, \text{Dirty}]∣|\text{Suck} |\n| [A, \text{Clean}], [A, \text{Clean}]∣|\text{Right} |\n| [A, \text{Clean}], [A, \text{Dirty}]∣|\text{Suck} |\n\n###### Distinction: Agent Function vs. Agent Program\n\n- Agent Function: The theoretical mathematical mapping (f : P^* \rightarrow A) defining optimal responses for all conceivable percept histories.\n- Agent Program: The concrete software implementation executed on the agent's computing architecture that converts the current real-time percept into an actuator signal.\n\n##### Properties and Typology of Environments\n\n1. Discrete vs. Continuous:\n - Discrete: Contains a finite, countable set of distinct states, percepts, and actions (e.g., Chess).\n - Continuous: State variables and action choices vary smoothly along real-valued ranges (e.g., Autonomous taxi steering and speed control).\n\n2. Known vs. Unknown:\n - Known: The state transition dynamics and outcome rules of the environment are fully understood by the agent.\n - Unknown: The agent possesses no initial domain model and must explore via trial-and-error (e.g., Reinforcement learning applications).\n\n3. Observable vs. Partially Observable:\n - Fully Observable: Sensors capture the complete state of the environment at any point in time (e.g., Chess).\n - Partially Observable: Sensor coverage is restricted, noisy, or incomplete (e.g., Driving with blind spots, Poker).\n\n4. Static vs. Dynamic vs. Semi-Dynamic:\n - Static: The environment does not change while the agent is deliberating (e.g., Crossword puzzle).\n - Dynamic: The environment continuously transforms while the agent decides (e.g., Traffic navigation).\n - Semi-Dynamic: The environment state does not alter over time, but the agent's performance score decreases with delay (e.g., Chess played with a timed clock).\n\n5. Single-Agent vs. Multi-Agent:\n - Single-Agent: An isolated agent acting independently (e.g., Solitaire, solitary robotic vacuuming).\n - Multi-Agent: Multiple interacting agents operating competitively (e.g., Chess) or cooperatively (e.g., Multi-robot swarm logistics).\n\n6. Accessible vs. Inaccessible:\n - Accessible: Complete sensor data can be directly extracted without noise.\n - Inaccessible: Environmental state must be inferred through probabilistic estimation due to significant noise or missing data.\n\n##### The Principle of Rationality\n\n- Definition: A rational agent is one that acts to maximize its expected performance measure, given the percept sequence received so far and built-in domain knowledge.\n- Performance Measure: The objective metric evaluating the sequence of environment states produced by the agent's actions.\n- Designing Performance Measures: Performance criteria must be defined based on desired environmental states rather than intended agent behavior. For example, rewarding a vacuum agent for maintaining a clean floor rather than rewarding the amount of dirt collected (which could encourage an agent to repeatedly dump dirt to clean it again).\n- Determinants of Rationality:\n 1. The explicit Performance Measure standard.\n 2. The agent's prior knowledge of the domain environment.\n 3. The set of valid actions the agent can perform.\n 4. The complete percept sequence recorded to date.\n\n##### The PEAS Framework for Task Environments\n\n- PEAS stands for Performance measure, Environment, Actuators, and Sensors. It forms the standard specification blueprint used to construct intelligent agents.\n\n###### PEAS Matrix: Automated Taxi Driver\n\n- Performance Measure: Safe transport, fast delivery, legal driving compliance, passenger comfort, fuel efficiency, profit maximization.\n- Environment: Public road networks, varying weather conditions, surrounding traffic, pedestrians, street obstacles, customers.\n- Actuators: Steering mechanism, accelerator pedal, brake system, turn signals, horn, cabin display interface.\n- Sensors: Video cameras, LIDAR/sonar sensors, GPS receiver, speedometer, accelerometer, engine diagnostic sensors, passenger touch-screen/microphone.\n\n##### Agent Structure and Architectures\n\n- Core Equation: \text{Agent} = \text{Architecture} + \text{Program}\n - Architecture: The underlying hardware system (computing units, physical sensors, mechanical actuators).\n - Program: The software function processing input percepts to produce control outputs.\n- Characteristics of Intelligent Agents:\n - Autonomy: Functions independently without human oversight.\n - Reactivity: Detects and responds to dynamic environmental changes.\n - Pro-activeness: Takes goal-oriented initiative beyond simple reaction.\n - Social Ability: Communicates and coordinates with other intelligent agents.\n\n###### Table-Driven Agent Strategy\n\n- Program Structure: Keeps a comprehensive log of all historical percepts and indexes a lookup table to select actions.\n- Fundamental Limitations:\n - Exponential Memory Growth: State-action space explodes exponentially with timeline length.\n - Physical Storage Limits: Exceeds physical storage boundaries for any non-trivial application.\n - Structural Inflexibility: Fails completely in unencountered states; lacks adaptability and learning capability.\n- Engineering Analogy: Historical reliance on printed mathematical tables vs. dynamic algorithms (e.g., Newton's Method for computing square roots dynamically without lookup storage).\n\n##### Core Architectures of Intelligent Agent Programs\n\n###### 1. Simple Reflex Agents\n\n- Operates strictly on the current percept using Condition-Action Rules (If-Then statements), entirely ignoring historical percept logs.\n- Rule Example (Vacuum Agent):\n - If \text{Status} == \text{Dirty}thenthen\text{Suck}\n - Else If \text{Location} == Athenthen\text{Right}\n - Else If \text{Location} == Bthenthen\text{Left}\n- Limitations: Structural failure in partially observable environments; prone to infinite loops (e.g., endless oscillation between clean rooms when location sensors fail).\n- Workaround: Randomization of actions can break deterministic infinite loops, but does not constitute genuine rational planning.\n\n###### 2. Model-Based Reflex Agents\n\n- Solves partial observability by maintaining an internal state (memory) representing unobserved aspects of the current world.\n- Required Knowledge Models:\n - World Dynamics: Knowledge of how the world evolves independently over time.\n - Action Effects: Knowledge of how the agent's own actions alter the world state.\n- Operational Loop: Perceive input \rightarrowUpdateinternalstatemodelUpdate internal state model\rightarrowMatchCondition−ActionruleMatch Condition-Action rule\rightarrow Execute action.\n\n###### 3. Goal-Based Agents\n\n- Combines current state estimation with explicit Goal Representations defining desirable target states.\n- Deliberative Decision-Making: Integrates Search Algorithms and Planning techniques to evaluate multi-step action paths leading to goal states.\n- Primary Advantage: High flexibility; altering the targeted destination requires updating the goal variable without rewriting core control rules.\n\n###### 4. Utility-Based Agents\n\n- Extends goal-based reasoning by incorporating a continuous Utility Function mapping world states to real numbers, measuring the degree of desirability, happiness, or efficiency.\n- Decision Metric: Evaluates choices using Expected Utility (EU), selecting actions that maximize score under uncertainty.\n\nRoute Evaluation Matrix Example:\n| Possible Action | Expected Outcome | Utility Score (Higher = Better) |\n| :--- | :--- | :---: |\n| Route A | Fast but risky | 60 |\n| Route B | Moderate speed, safe | 85 |\n| Route C | Very safe but slow | 70 |\n\n*Selection*: Route B is selected because it yields the maximum overall utility score (85).\n\nComparison: Goal-Based vs. Utility-Based Agents:\n| Feature | Goal-Based Agent | Utility-Based Agent |\n| :--- | :--- | :--- |\n| Evaluation | Binary (Goal met / not met) | Continuous (graded satisfaction) |\n| Handles Uncertainty | No | Yes |\n| Decision Quality | Sufficient | Optimized |\n| Example | Reach destination | Choose fastest and safest route |\n\n###### 5. Learning Agents\n\n- Architecture built specifically to operate in unfamiliar environments and improve performance over time through experience.\n- Core Subcomponents:\n 1. Performance Element: The operational decision engine that selects real-time actions based on percepts.\n 2. Critic: Evaluates the agent's actions against an objective performance standard and delivers evaluation feedback.\n 3. Learning Element: Modifies the rules and weights inside the Performance Element based on feedback from the Critic.\n 4. Problem Generator: Recommends novel exploratory actions to gather diverse, informative training experiences.\n\nSummary Comparison Matrix of Agent Architectures:\n| Agent Type | Definition (Simple) | Example in Self-Driving Car | Key Point |\n| :--- | :--- | :--- | :--- |\n| Reflex Agent | Reacts instantly to input; no memory | Stops immediately when obstacle detected | Uses condition-action (if-then) rules |\n| Model-based Agent | Uses internal world model to decide | Predicts road curvature and tracks hidden vehicles ahead | Maintains internal state / knowledge of world changes |\n| Goal-based Agent | Acts to achieve a specific goal | Plans fastest route from origin to destination | Focused on reaching a target state |\n| Utility-based Agent | Balances performance trade-offs | Balances speed, fuel efficiency, and passenger safety | Chooses optimal outcome using continuous utility function |\n| Learning Agent | Improves with experience over time | Learns better lane detection and driving control from data | Adapts automatically via feedback without reprogramming |\n\n##### Problem Formulation and Problem-Solving Agents\n\n- Problem-Solving Agents represent a class of goal-based agents that formulate structured plans through offline atomic search prior to executing actions in deterministic, observable, static, and discrete environments.\n- Three Execution Stages:\n 1. Problem Formulation: Formally defining states, valid actions, transition rules, goal criteria, and cost structures.\n 2. Search Process: Simulating sequence paths across state space to locate a valid goal state.\n 3. Solution Identification & Execution: Isolating the lowest-cost action sequence and executing steps sequentially.\n- Search Taxonomy:\n - Uninformed (Blind) Search: Uses no problem-specific domain heuristics (e.g., Breadth-First Search [BFS], Depth-First Search [DFS], Uniform-Cost Search [UCS]).\n - Informed (Heuristic) Search: Uses domain-specific estimates to prioritize promising paths (e.g., Greedy Best-First Search, A^* Search Algorithm).\n\n##### Mathematical Definition of a Problem\n\nAn AI search problem is defined by five formal components:\n1. Initial State: The state where the agent begins its search: \text{In}(\text{Arad})\n2. Actions Function: Returns the set of valid actions accessible from state s::\text{ACTIONS}(s).Forexample:. For example:\text{ACTIONS}(\text{In}(\text{Arad})) = {\text{Go}(\text{Sibiu}), \text{Go}(\text{Timisoara}), \text{Go}(\text{Zerind})}.\n3. Transition Model: Defines the state resulting from executing action ainstatein states::\text{RESULT}(s, a).Forexample:. For example:\text{RESULT}(\text{In}(\text{Arad}), \text{Go}(\text{Zerind})) = \text{In}(\text{Zerind}).\n4. Goal Test: A logical predicate assessing whether state ssatisfiesalltargetgoalconditions:Checkifsatisfies all target goal conditions: Check ifs == \text{In}(\text{Bucharest}).\n5. Path Cost Function: Assigns a numeric cost score to a path, accumulated as the sum of step costs c(s, a, s').\n\nAn optimal solution is an action sequence yielding the lowest total path cost among all valid paths from initial to goal state.\n\nComparison: Toy Problems vs. Real-World Problems:\n| Problem Type | Purpose | Example | Key Point |\n| :--- | :--- | :--- | :--- |\n| Toy Problems | Designed for research or teaching; simple and fully defined | Vacuum Cleaner World, 8-puzzle | Illustrates key problem-solving concepts (states, actions, goal, cost) |\n| Real-World Problems | Solves complex, dynamic, and practical real-world tasks | GPS Navigation, Delivery Routing, Airline Scheduling | Demonstrates scalability and practical applicability of search algorithms |\n\nCase Study: Vacuum World State Space:\n- State Space Calculation: With 2 spatial locations and 2 binary dirt states (\text{Clean}/\text{Dirty}),totaldistinctworldstatesequal:), total distinct world states equal:2 \times 2^2 = 8 \text{ total states}\n- Valid Actions: {\text{Left}, \text{Right}, \text{Suck}}.\n- Goal Test: All locations present \text{Clean} status.\n- Step Cost: Each discrete action costs 1unit;totalcostequalstotalstepstaken.</p></li></ul><p>HistoricalData:</p><ul><li><p></p><ul><li><p>Oncloudydays,rainoccurswithunit; total cost equals total steps taken.</p></li></ul><p>Historical Data:</p><ul><li><p></p><ul><li><p>On cloudy days, rain occurs with70\%probability(probability (P = 0.70).</p></li><li><p>Oncleardays,rainoccurswith).</p></li><li><p>On clear days, rain occurs with10\%probability(probability (P = 0.10).</p></li></ul></li><li><p>DecisionRule:Ifcurrentobservation=Cloudy,systemrecommendscarryinganumbrellabecause).</p></li></ul></li><li><p>Decision Rule: If current observation = Cloudy, system recommends carrying an umbrella because0.70 > 0.50threshold.</p></li></ul><p>CognitiveScienceanditsRoleinAI</p><ul><li><p>CognitiveScienceistheinterdisciplinarystudyofthehumanmind,brain,andintelligence,drawingacrosssixprimaryfields:</p><ul><li><p>Psychology(behaviorandmentalprocesses)</p></li><li><p>Neuroscience(biologicalneuralstructures)</p></li><li><p>Linguistics(languageformalismsandsyntax)</p></li><li><p>Philosophy(epistemology,consciousness,andlogic)</p></li><li><p>Anthropology(humanevolutionandsocialcognition)</p></li><li><p>ComputerScience(computationandalgorithms)</p></li></ul></li><li><p>StrategicRolesinAI:</p><ul><li><p>Bio−inspiredArchitectures:BiologicalneuralnetworksdirectlyinspiredArtificialNeuralNetworks(ANNs)andsynapticweightupdatingmechanisms.</p></li><li><p>Human−ComputerInteraction(HCI):Modelshumanemotionalcontext,conversationalnuance,andintenttoconstructintuitiveconversationalagents.</p></li><li><p>ExplainableAI(XAI):Translatesblack−boxcomputationalmechanicsintohuman−interpretablementalconcepts.</p></li></ul></li></ul><p>SynthesisoftheThreeFoundations</p><ul><li><p>Logicensurescorrectdeterministicreasoning.</p></li><li><p>Probabilitymanagesnon−deterministicandnoisyenvironments.</p></li><li><p>CognitiveScienceprovideshuman−alignedinteraction,perceptionmodels,andcognitiveabstractions.</p></li></ul><p>Real−WorldIntegratedApplications</p><ul><li><p>AutonomousVehicles:</p><ul><li><p>Logic:Followsdeterministicrules(e.g.,Stopataredlight).</p></li><li><p>Probability:Evaluatessensorinputs(e.g.,threshold.</p></li></ul><p>Cognitive Science and its Role in AI</p><ul><li><p>Cognitive Science is the interdisciplinary study of the human mind, brain, and intelligence, drawing across six primary fields:</p><ul><li><p>Psychology (behavior and mental processes)</p></li><li><p>Neuroscience (biological neural structures)</p></li><li><p>Linguistics (language formalisms and syntax)</p></li><li><p>Philosophy (epistemology, consciousness, and logic)</p></li><li><p>Anthropology (human evolution and social cognition)</p></li><li><p>Computer Science (computation and algorithms)</p></li></ul></li><li><p>Strategic Roles in AI:</p><ul><li><p>Bio-inspired Architectures: Biological neural networks directly inspired Artificial Neural Networks (ANNs) and synaptic weight updating mechanisms.</p></li><li><p>Human-Computer Interaction (HCI): Models human emotional context, conversational nuance, and intent to construct intuitive conversational agents.</p></li><li><p>Explainable AI (XAI): Translates black-box computational mechanics into human-interpretable mental concepts.</p></li></ul></li></ul><p>Synthesis of the Three Foundations</p><ul><li><p>Logic ensures correct deterministic reasoning.</p></li><li><p>Probability manages non-deterministic and noisy environments.</p></li><li><p>Cognitive Science provides human-aligned interaction, perception models, and cognitive abstractions.</p></li></ul><p>Real-World Integrated Applications</p><ul><li><p>Autonomous Vehicles:</p><ul><li><p>Logic: Follows deterministic rules (e.g., Stop at a red light).</p></li><li><p>Probability: Evaluates sensor inputs (e.g.,85\%probabilityanobjectinablindspotisapedestrian).</p></li><li><p>CognitiveScience:Modelspedestriancrossingbehaviorandgeneratesdriver−friendlyinterfacealerts.</p></li></ul></li><li><p>MedicalDiagnosticAssistant:</p><ul><li><p>Logic:Appliesstrictclinicalguidelines.</p></li><li><p>Probability:Computesdiseaselikelihoodbasedonstatisticalpatienthistories.</p></li><li><p>CognitiveScience:Structuresdiagnosticexplanationsinaccordancewithclinicianthoughtworkflows.</p></li></ul></li></ul><h5id="93ff91dc−e3b6−4a3b−921a−8b75167f44bb"data−toc−id="93ff91dc−e3b6−4a3b−921a−8b75167f44bb"collapsed="false"seolevelmigrated="true">TaxonomyandClassificationofAISystems</h5><p>ClassificationBasedonCapabilities</p><p>WeakAI(NarrowAI)</p><ul><li><p>Designedandtrainedtoexecuteasingle,highlyspecifictask.</p></li><li><p>Operatesunderstrictboundarieswithouttruegeneralizedawarenessorself−consciousness.</p></li><li><p>KeyCharacteristics:</p><ul><li><p>Task−specificspecialization(cannottransferknowledgetodistincttasks).</p></li><li><p>Drivenbypatternrecognitionandtargetedoptimization.</p></li></ul></li><li><p>Examples:AppleSiri,GoogleTranslate,Netflixrecommendationalgorithms.</p></li></ul><p>StrongAI(ArtificialGeneralIntelligence−AGI)</p><ul><li><p>Theoreticalsystempossessinggeneralizedhuman−levelintelligenceacrossallcognitivedomains.</p></li><li><p>KeyCharacteristics:</p><ul><li><p>Abstractreasoning,cross−domainknowledgetransfer,self−awareness,andmoraljudgment.</p></li></ul></li><li><p>ConceptualExamples:Autonomousmulti−domainrobots,HAL9000,Jarvis.</p></li></ul><p>ArtificialSuperintelligence(ASI)</p><ul><li><p>TheoreticalevolutionbeyondAGIwheremachinecognitivecapacityexponentiallysurpassescombinedhumanintelligenceincreative,scientific,andsocialdomains.</p></li></ul><p>ClassificationBasedonFunctionalities</p><p>ReactiveMachines</p><ul><li><p>Themostbasicfunctionalclass;operatespurelyonreal−timeinputswithoutstoringpastexperiencesormaintainingmemory.</p></li><li><p>Example:IBMDeepBlue.</p></li></ul><p>LimitedMemory</p><ul><li><p>Maintainsshort−termhistoricalstaterepresentationstoinformimmediatedecision−making.</p></li><li><p>Example:Self−drivingcarsmonitoringrecentpositionsandvelocitiesofsurroundingtraffic.</p></li></ul><p>TheoryofMind</p><ul><li><p>Theoreticalsystemscapableofunderstandinghumanpsychologicalstates,emotions,beliefs,andexpectationstoadaptbehaviordynamically.</p></li></ul><p>Self−Awareness</p><ul><li><p>Ultimatetheoreticalstageofmachineintelligencefeaturingcompleteself−consciousexistence,internalfeelings,andindependentagency.</p></li></ul><h5id="b83ab31d−2f52−4928−8d70−fef76ec2660d"data−toc−id="b83ab31d−2f52−4928−8d70−fef76ec2660d"collapsed="false"seolevelmigrated="true">AgentsandEnvironments</h5><ul><li><p>Agent:Anythingthatperceivesitsexternalenvironmentviasensorsandactsuponthatenvironmentusingactuators.</p></li><li><p>Formally,anagentfunctionmapsanygivenperceptsequencetoanaction:  probability an object in a blind spot is a pedestrian).</p></li><li><p>Cognitive Science: Models pedestrian crossing behavior and generates driver-friendly interface alerts.</p></li></ul></li><li><p>Medical Diagnostic Assistant:</p><ul><li><p>Logic: Applies strict clinical guidelines.</p></li><li><p>Probability: Computes disease likelihood based on statistical patient histories.</p></li><li><p>Cognitive Science: Structures diagnostic explanations in accordance with clinician thought workflows.</p></li></ul></li></ul><h5 id="93ff91dc-e3b6-4a3b-921a-8b75167f44bb" data-toc-id="93ff91dc-e3b6-4a3b-921a-8b75167f44bb" collapsed="false" seolevelmigrated="true">Taxonomy and Classification of AI Systems</h5><p>Classification Based on Capabilities</p><p>Weak AI (Narrow AI)</p><ul><li><p>Designed and trained to execute a single, highly specific task.</p></li><li><p>Operates under strict boundaries without true generalized awareness or self-consciousness.</p></li><li><p>Key Characteristics:</p><ul><li><p>Task-specific specialization (cannot transfer knowledge to distinct tasks).</p></li><li><p>Driven by pattern recognition and targeted optimization.</p></li></ul></li><li><p>Examples: Apple Siri, Google Translate, Netflix recommendation algorithms.</p></li></ul><p>Strong AI (Artificial General Intelligence - AGI)</p><ul><li><p>Theoretical system possessing generalized human-level intelligence across all cognitive domains.</p></li><li><p>Key Characteristics:</p><ul><li><p>Abstract reasoning, cross-domain knowledge transfer, self-awareness, and moral judgment.</p></li></ul></li><li><p>Conceptual Examples: Autonomous multi-domain robots, HAL 9000, Jarvis.</p></li></ul><p>Artificial Superintelligence (ASI)</p><ul><li><p>Theoretical evolution beyond AGI where machine cognitive capacity exponentially surpasses combined human intelligence in creative, scientific, and social domains.</p></li></ul><p>Classification Based on Functionalities</p><p>Reactive Machines</p><ul><li><p>The most basic functional class; operates purely on real-time inputs without storing past experiences or maintaining memory.</p></li><li><p>Example: IBM Deep Blue.</p></li></ul><p>Limited Memory</p><ul><li><p>Maintains short-term historical state representations to inform immediate decision-making.</p></li><li><p>Example: Self-driving cars monitoring recent positions and velocities of surrounding traffic.</p></li></ul><p>Theory of Mind</p><ul><li><p>Theoretical systems capable of understanding human psychological states, emotions, beliefs, and expectations to adapt behavior dynamically.</p></li></ul><p>Self-Awareness</p><ul><li><p>Ultimate theoretical stage of machine intelligence featuring complete self-conscious existence, internal feelings, and independent agency.</p></li></ul><h5 id="b83ab31d-2f52-4928-8d70-fef76ec2660d" data-toc-id="b83ab31d-2f52-4928-8d70-fef76ec2660d" collapsed="false" seolevelmigrated="true">Agents and Environments</h5><ul><li><p>Agent: Anything that perceives its external environment via sensors and acts upon that environment using actuators.</p></li><li><p>Formally, an agent function maps any given percept sequence to an action:   f : P^* \rightarrow A  where  whereP^*isthesetofallpossibleperceptsequencesandis the set of all possible percept sequences andAisthesetofallavailableactions.</p></li><li><p>Environment:Thesurroundingexternalworldinwhichtheagentoperates,providingsensoryinputs(percepts)andreceivingoperationaloutputs(actions).</p></li></ul><p>TaxonomicClassesofAgents</p><ul><li><p>HumanAgent:Usesphysicalbiologicalsensors(eyes,ears,nose,skin)andbiologicaleffectors(hands,legs,vocalcords).</p></li><li><p>RoboticAgent:Useshardwaresensors(cameras,sonar,LIDAR,infraredrangefinders)andmechanicaleffectors(electricmotors,hydrauliclimbs,wheels).</p></li><li><p>SoftwareAgent:Usesdigitalinputs(bitstrings,networkpackets,databasequeries)andprogrammaticeffectors(filewrites,APIcalls,displayingvisualoutput)………………………………………………………………………………………..</p></li></ul><p>CaseStudy:Vacuum−CleanerWorld</p><ul><li><p>Environment:Twospatiallocations,Squareis the set of all available actions.</p></li><li><p>Environment: The surrounding external world in which the agent operates, providing sensory inputs (percepts) and receiving operational outputs (actions).</p></li></ul><p>Taxonomic Classes of Agents</p><ul><li><p>Human Agent: Uses physical biological sensors (eyes, ears, nose, skin) and biological effectors (hands, legs, vocal cords).</p></li><li><p>Robotic Agent: Uses hardware sensors (cameras, sonar, LIDAR, infrared rangefinders) and mechanical effectors (electric motors, hydraulic limbs, wheels).</p></li><li><p>Software Agent: Uses digital inputs (bitstrings, network packets, database queries) and programmatic effectors (file writes, API calls, displaying visual output)………………………………………………………………………………………..</p></li></ul><p>Case Study: Vacuum-Cleaner World</p><ul><li><p>Environment: Two spatial locations, SquareAandSquareand SquareB.</p></li><li><p>Percepts:Locationtagandsurfacecondition,e.g.,.</p></li><li><p>Percepts: Location tag and surface condition, e.g.,[A, \text{Clean}]oror[A, \text{Dirty}].</p></li><li><p>Actions:Move.</p></li><li><p>Actions: Move\text{Left},Move, Move\text{Right},,\text{Suck}(cleandirt),or(clean dirt), or\text{NoOp}(donothing).</p></li></ul><p>PartialAgentFunctionMapping</p><tablestyle="min−width:50px;"><colgroup><colstyle="min−width:25px;"><colstyle="min−width:25px;"></colgroup><tbody><tr><thcolspan="1"rowspan="1"style="text−align:left;"><p>PerceptSequence</p></th><thcolspan="1"rowspan="1"style="text−align:left;"><p>Action</p></th></tr><tr><tdcolspan="1"rowspan="1"style="text−align:left;"><p>(do nothing).</p></li></ul><p>Partial Agent Function Mapping</p><table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1" style="text-align: left;"><p>Percept Sequence</p></th><th colspan="1" rowspan="1" style="text-align: left;"><p>Action</p></th></tr><tr><td colspan="1" rowspan="1" style="text-align: left;"><p>[A, \text{Clean}]</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p></p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>\text{Right}</p></td></tr><tr><tdcolspan="1"rowspan="1"style="text−align:left;"><p></p></td></tr><tr><td colspan="1" rowspan="1" style="text-align: left;"><p>[A, \text{Dirty}]</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p></p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>\text{Suck}</p></td></tr><tr><tdcolspan="1"rowspan="1"style="text−align:left;"><p></p></td></tr><tr><td colspan="1" rowspan="1" style="text-align: left;"><p>[B, \text{Clean}]</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p></p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>\text{Left}</p></td></tr><tr><tdcolspan="1"rowspan="1"style="text−align:left;"><p></p></td></tr><tr><td colspan="1" rowspan="1" style="text-align: left;"><p>[B, \text{Dirty}]</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p></p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>\text{Suck}</p></td></tr><tr><tdcolspan="1"rowspan="1"style="text−align:left;"><p></p></td></tr><tr><td colspan="1" rowspan="1" style="text-align: left;"><p>[A, \text{Clean}], [A, \text{Clean}]</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p></p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>\text{Right}</p></td></tr><tr><tdcolspan="1"rowspan="1"style="text−align:left;"><p></p></td></tr><tr><td colspan="1" rowspan="1" style="text-align: left;"><p>[A, \text{Clean}], [A, \text{Dirty}]</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p></p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>\text{Suck}</p></td></tr></tbody></table><p>Distinction:AgentFunctionvs.AgentProgram</p><ul><li><p>AgentFunction:Thetheoreticalmathematicalmapping(</p></td></tr></tbody></table><p>Distinction: Agent Function vs. Agent Program</p><ul><li><p>Agent Function: The theoretical mathematical mapping (f : P^* \rightarrow A)definingoptimalresponsesforallconceivablepercepthistories.</p></li><li><p>AgentProgram:Theconcretephysicalsoftwareimplementationexecutedontheagent′scomputingarchitecturethatconvertsthecurrentreal−timeperceptintoanactuatorsignal.</p></li></ul><h5id="330eba03−d1b0−421c−b217−29f543e2b81f"data−toc−id="330eba03−d1b0−421c−b217−29f543e2b81f"collapsed="false"seolevelmigrated="true">PropertiesandTypologyofEnvironments</h5><ol><li><p>Discretevs.Continuous:</p><ul><li><p>Discrete:Containsafinite,countablesetofdistinctstates,percepts,andactions(e.g.,Chess).</p></li><li><p>Continuous:Statevariablesandactionchoicesvarysmoothlyalongreal−valuedranges(e.g.,Autonomoustaxisteeringandvelocitycontrol).</p></li></ul></li><li><p>Knownvs.Unknown:</p><ul><li><p>Known:Thestatetransitiondynamicsandoutcomerulesoftheenvironmentarefullyunderstoodbytheagent.</p></li><li><p>Unknown:Theagentpossessesnoinitialdomainmodelandmustexploreviatrial−and−error(e.g.,Reinforcementlearningapplications).</p></li></ul></li><li><p>Observablevs.PartiallyObservable:</p><ul><li><p>FullyObservable:Sensorscapturethecompletestateoftheenvironmentatanypointintime(e.g.,Chess).</p></li><li><p>PartiallyObservable:Sensorcoverageisrestricted,noisy,orincomplete(e.g.,Drivingwithblindspots,Poker).</p></li></ul></li><li><p>Staticvs.Dynamicvs.Semi−Dynamic:</p><ul><li><p>Static:Theenvironmentdoesnotchangewhiletheagentisdeliberating(e.g.,Crosswordpuzzle).</p></li><li><p>Dynamic:Theenvironmentcontinuouslytransformswhiletheagentdecides(e.g.,Trafficnavigation).</p></li><li><p>Semi−Dynamic:Theenvironmentstatedoesnotalterovertime,buttheagent′sperformancescoredecreaseswithdelay(e.g.,Chessplayedwithatimedclock).</p></li></ul></li><li><p>Single−Agentvs.Multi−Agent:</p><ul><li><p>Single−Agent:Anisolatedagentactingindependently(e.g.,Solitaire,solitaryroboticvacuuming).</p></li><li><p>Multi−Agent:Multipleinteractingagentsoperatingcompetitively(e.g.,Chess)orcooperatively(e.g.,Multi−robotswarmlogistics).</p></li></ul></li><li><p>Accessiblevs.Inaccessible:</p><ul><li><p>Accessible:Completesensordatacanbedirectlyextractedwithoutnoise.</p></li><li><p>Inaccessible:Environmentalstatemustbeinferredthroughprobabilisticestimationduetosignificantnoiseormissingdata.</p></li></ul></li></ol><h5id="b23effaf−db53−4c1e−9bb2−8fccc56569ca"data−toc−id="b23effaf−db53−4c1e−9bb2−8fccc56569ca"collapsed="false"seolevelmigrated="true">ThePrincipleofRationality</h5><ul><li><p>Definition:Arationalagentisonethatactstomaximizeitsexpectedperformancemeasure,giventheperceptsequencereceivedsofarandbuilt−indomainknowledge.</p></li><li><p>PerformanceMeasure:Theobjectivemetricevaluatingthesequenceofenvironmentstatesproducedbytheagent′sactions.</p></li><li><p>DesigningPerformanceMeasures:Performancecriteriamustbedefinedbasedondesiredenvironmentalstatesratherthanintendedagentbehavior.Forexample,rewardingavacuumagentformaintainingacleanfloorratherthanrewardingtheamountofdirtcollected(whichcouldencourageanagenttorepeatedlydumpdirttocleanitagain).</p></li><li><p>DeterminantsofRationality:</p><ol><li><p>TheexplicitPerformanceMeasurestandard.</p></li><li><p>Theagent′spriorknowledgeofthedomainenvironment.</p></li><li><p>Thesetofvalidactionstheagentcanperform.</p></li><li><p>Thecompleteperceptsequencerecordedtodate.</p></li></ol></li></ul><h5id="0d389ab0−4912−42ce−8ac7−fb2541a220c2"data−toc−id="0d389ab0−4912−42ce−8ac7−fb2541a220c2"collapsed="false"seolevelmigrated="true">ThePEASFrameworkforTaskEnvironments</h5><ul><li><p>PEASstandsforPerformancemeasure,Environment,Actuators,andSensors.Itformsthestandardspecificationblueprintusedtoconstructintelligentagents.</p></li></ul><p>PEASMatrix:AutomatedTaxiDriver</p><ul><li><p>PerformanceMeasure:Safetransport,fastdelivery,legaldrivingcompliance,passengercomfort,fuelefficiency,profitmaximization.</p></li><li><p>Environment:Publicroadnetworks,varyingweatherconditions,surroundingtraffic,pedestrians,streetobstacles,customers.</p></li><li><p>Actuators:Steeringmechanism,acceleratorpedal,brakesystem,turnsignals,horn,cabindisplayinterface.</p></li><li><p>Sensors:Videocameras,LIDAR/sonarsensors,GPSreceiver,speedometer,accelerometer,enginediagnosticsensors,passengertouch−screen/microphone.</p></li></ul><h5id="e57f1be5−3788−4d2f−a7a8−25c97c315fa6"data−toc−id="e57f1be5−3788−4d2f−a7a8−25c97c315fa6"collapsed="false"seolevelmigrated="true">AgentStructureandArchitectures</h5><ul><li><p>CoreEquation:  ) defining optimal responses for all conceivable percept histories.</p></li><li><p>Agent Program: The concrete physical software implementation executed on the agent's computing architecture that converts the current real-time percept into an actuator signal.</p></li></ul><h5 id="330eba03-d1b0-421c-b217-29f543e2b81f" data-toc-id="330eba03-d1b0-421c-b217-29f543e2b81f" collapsed="false" seolevelmigrated="true">Properties and Typology of Environments</h5><ol><li><p>Discrete vs. Continuous:</p><ul><li><p>Discrete: Contains a finite, countable set of distinct states, percepts, and actions (e.g., Chess).</p></li><li><p>Continuous: State variables and action choices vary smoothly along real-valued ranges (e.g., Autonomous taxi steering and velocity control).</p></li></ul></li><li><p>Known vs. Unknown:</p><ul><li><p>Known: The state transition dynamics and outcome rules of the environment are fully understood by the agent.</p></li><li><p>Unknown: The agent possesses no initial domain model and must explore via trial-and-error (e.g., Reinforcement learning applications).</p></li></ul></li><li><p>Observable vs. Partially Observable:</p><ul><li><p>Fully Observable: Sensors capture the complete state of the environment at any point in time (e.g., Chess).</p></li><li><p>Partially Observable: Sensor coverage is restricted, noisy, or incomplete (e.g., Driving with blind spots, Poker).</p></li></ul></li><li><p>Static vs. Dynamic vs. Semi-Dynamic:</p><ul><li><p>Static: The environment does not change while the agent is deliberating (e.g., Crossword puzzle).</p></li><li><p>Dynamic: The environment continuously transforms while the agent decides (e.g., Traffic navigation).</p></li><li><p>Semi-Dynamic: The environment state does not alter over time, but the agent's performance score decreases with delay (e.g., Chess played with a timed clock).</p></li></ul></li><li><p>Single-Agent vs. Multi-Agent:</p><ul><li><p>Single-Agent: An isolated agent acting independently (e.g., Solitaire, solitary robotic vacuuming).</p></li><li><p>Multi-Agent: Multiple interacting agents operating competitively (e.g., Chess) or cooperatively (e.g., Multi-robot swarm logistics).</p></li></ul></li><li><p>Accessible vs. Inaccessible:</p><ul><li><p>Accessible: Complete sensor data can be directly extracted without noise.</p></li><li><p>Inaccessible: Environmental state must be inferred through probabilistic estimation due to significant noise or missing data.</p></li></ul></li></ol><h5 id="b23effaf-db53-4c1e-9bb2-8fccc56569ca" data-toc-id="b23effaf-db53-4c1e-9bb2-8fccc56569ca" collapsed="false" seolevelmigrated="true">The Principle of Rationality</h5><ul><li><p>Definition: A rational agent is one that acts to maximize its expected performance measure, given the percept sequence received so far and built-in domain knowledge.</p></li><li><p>Performance Measure: The objective metric evaluating the sequence of environment states produced by the agent's actions.</p></li><li><p>Designing Performance Measures: Performance criteria must be defined based on desired environmental states rather than intended agent behavior. For example, rewarding a vacuum agent for maintaining a clean floor rather than rewarding the amount of dirt collected (which could encourage an agent to repeatedly dump dirt to clean it again).</p></li><li><p>Determinants of Rationality:</p><ol><li><p>The explicit Performance Measure standard.</p></li><li><p>The agent's prior knowledge of the domain environment.</p></li><li><p>The set of valid actions the agent can perform.</p></li><li><p>The complete percept sequence recorded to date.</p></li></ol></li></ul><h5 id="0d389ab0-4912-42ce-8ac7-fb2541a220c2" data-toc-id="0d389ab0-4912-42ce-8ac7-fb2541a220c2" collapsed="false" seolevelmigrated="true">The PEAS Framework for Task Environments</h5><ul><li><p>PEAS stands for Performance measure, Environment, Actuators, and Sensors. It forms the standard specification blueprint used to construct intelligent agents.</p></li></ul><p>PEAS Matrix: Automated Taxi Driver</p><ul><li><p>Performance Measure: Safe transport, fast delivery, legal driving compliance, passenger comfort, fuel efficiency, profit maximization.</p></li><li><p>Environment: Public road networks, varying weather conditions, surrounding traffic, pedestrians, street obstacles, customers.</p></li><li><p>Actuators: Steering mechanism, accelerator pedal, brake system, turn signals, horn, cabin display interface.</p></li><li><p>Sensors: Video cameras, LIDAR/sonar sensors, GPS receiver, speedometer, accelerometer, engine diagnostic sensors, passenger touch-screen/microphone.</p></li></ul><h5 id="e57f1be5-3788-4d2f-a7a8-25c97c315fa6" data-toc-id="e57f1be5-3788-4d2f-a7a8-25c97c315fa6" collapsed="false" seolevelmigrated="true">Agent Structure and Architectures</h5><ul><li><p>Core Equation:   \text{Agent} = \text{Architecture} + \text{Program}</p><ul><li><p>Architecture:Theunderlyinghardwaresystem(computingunits,physicalsensors,mechanicalactuators).</p></li><li><p>Program:Thesoftwarefunctionprocessinginputperceptstoproducecontroloutputs.</p></li></ul></li><li><p>CharacteristicsofIntelligentAgents:</p><ul><li><p>Autonomy:Functionsindependentlywithouthumanoversight.</p></li><li><p>Reactivity:Detectsandrespondstodynamicenvironmentalchanges.</p></li><li><p>Pro−activeness:Takesgoal−orientedinitiativebeyondsimplereaction.</p></li><li><p>SocialAbility:Communicatesandcoordinateswithotherintelligentagents.</p></li></ul></li></ul><p>Table−DrivenAgentStrategy</p><ul><li><p>Programstructure:Keepsacomprehensivelogofallhistoricalperceptsandindexesalookuptabletoselectactions.</p></li><li><p>FundamentalLimitations:</p><ul><li><p>ExponentialMemoryGrowth:State−actionspaceexplodesexponentiallywithtimelinelength.</p></li><li><p>PhysicalStorageLimits:Exceedsphysicalstorageboundariesforanynon−trivialapplication.</p></li><li><p>StructuralInflexibility:Failscompletelyinunencounteredstates;lacksadaptabilityandlearningcapability.</p></li></ul></li><li><p>EngineeringAnalogy:Historicalrelianceonprintedmathematicaltablesvs.dynamicalgorithms(e.g.,Newton′sMethodforcomputingsquarerootsdynamicallywithoutlookupstorage).</p></li></ul><h5id="5ca2a47e−446a−47c9−8827−c680ae0d3f99"data−toc−id="5ca2a47e−446a−47c9−8827−c680ae0d3f99"collapsed="false"seolevelmigrated="true">CoreArchitecturesofIntelligentAgentPrograms</h5><p>1.SimpleReflexAgents</p><ul><li><p>OperatesstrictlyonthecurrentperceptusingCondition−ActionRules(If−Thenstatements),entirelyignoringhistoricalperceptlogs.</p></li><li><p>RuleExample(VacuumAgent):</p><ul><li><p>If</p><ul><li><p>Architecture: The underlying hardware system (computing units, physical sensors, mechanical actuators).</p></li><li><p>Program: The software function processing input percepts to produce control outputs.</p></li></ul></li><li><p>Characteristics of Intelligent Agents:</p><ul><li><p>Autonomy: Functions independently without human oversight.</p></li><li><p>Reactivity: Detects and responds to dynamic environmental changes.</p></li><li><p>Pro-activeness: Takes goal-oriented initiative beyond simple reaction.</p></li><li><p>Social Ability: Communicates and coordinates with other intelligent agents.</p></li></ul></li></ul><p>Table-Driven Agent Strategy</p><ul><li><p>Program structure: Keeps a comprehensive log of all historical percepts and indexes a lookup table to select actions.</p></li><li><p>Fundamental Limitations:</p><ul><li><p>Exponential Memory Growth: State-action space explodes exponentially with timeline length.</p></li><li><p>Physical Storage Limits: Exceeds physical storage boundaries for any non-trivial application.</p></li><li><p>Structural Inflexibility: Fails completely in unencountered states; lacks adaptability and learning capability.</p></li></ul></li><li><p>Engineering Analogy: Historical reliance on printed mathematical tables vs. dynamic algorithms (e.g., Newton's Method for computing square roots dynamically without lookup storage).</p></li></ul><h5 id="5ca2a47e-446a-47c9-8827-c680ae0d3f99" data-toc-id="5ca2a47e-446a-47c9-8827-c680ae0d3f99" collapsed="false" seolevelmigrated="true">Core Architectures of Intelligent Agent Programs</h5><p>1. Simple Reflex Agents</p><ul><li><p>Operates strictly on the current percept using Condition-Action Rules (If-Then statements), entirely ignoring historical percept logs.</p></li><li><p>Rule Example (Vacuum Agent):</p><ul><li><p>If\text{Status} == \text{Dirty}thenthen\text{Suck}</p></li><li><p>ElseIf</p></li><li><p>Else If\text{Location} == Athenthen\text{Right}</p></li><li><p>ElseIf</p></li><li><p>Else If\text{Location} == Bthenthen\text{Left}</p></li></ul></li><li><p>Limitations:Structuralfailureinpartiallyobservableenvironments;pronetoinfiniteloops(e.g.,endlessoscillationbetweencleanroomswhenlocationsensorsfail).</p></li><li><p>Workaround:Randomizationofactionscanbreakdeterministicinfiniteloops,butdoesnotconstitutegenuinerationalplanning.</p></li></ul><p>2.Model−BasedReflexAgents</p><ul><li><p>Solvespartialobservabilitybymaintaininganinternalstate(memory)representingunobservedaspectsofthecurrentworld.</p></li><li><p>RequiredKnowledgeModels:</p><ul><li><p>WorldDynamics:Knowledgeofhowtheworldevolvesindependentlyovertime.</p></li><li><p>ActionEffects:Knowledgeofhowtheagent′sownactionsaltertheworldstate.</p></li></ul></li><li><p>OperationalLoop:Perceiveinput</p></li></ul></li><li><p>Limitations: Structural failure in partially observable environments; prone to infinite loops (e.g., endless oscillation between clean rooms when location sensors fail).</p></li><li><p>Workaround: Randomization of actions can break deterministic infinite loops, but does not constitute genuine rational planning.</p></li></ul><p>2. Model-Based Reflex Agents</p><ul><li><p>Solves partial observability by maintaining an internal state (memory) representing unobserved aspects of the current world.</p></li><li><p>Required Knowledge Models:</p><ul><li><p>World Dynamics: Knowledge of how the world evolves independently over time.</p></li><li><p>Action Effects: Knowledge of how the agent's own actions alter the world state.</p></li></ul></li><li><p>Operational Loop: Perceive input\rightarrowUpdateinternalstatemodelUpdate internal state model\rightarrowMatchCondition−ActionruleMatch Condition-Action rule\rightarrowExecuteaction.</p></li></ul><p>3.Goal−BasedAgents</p><ul><li><p>CombinescurrentstateestimationwithexplicitGoalRepresentationsdefiningdesirabletargetstates.</p></li><li><p>DeliberativeDecision−Making:IntegratesSearchAlgorithmsandPlanningtechniquestoevaluatemulti−stepactionpathsleadingtogoalstates.</p></li><li><p>PrimaryAdvantage:Highflexibility;alteringthetargeteddestinationrequiresupdatingthegoalvariablewithoutrewritingcorecontrolrules.</p></li></ul><p>4.Utility−BasedAgents</p><ul><li><p>Extendsgoal−basedreasoningbyincorporatingacontinuousUtilityFunctionmappingworldstatestorealnumbers,measuringthedegreeofdesirability,happiness,orefficiency.</p></li><li><p>DecisionMetric:EvaluateschoicesusingExpectedUtility(Execute action.</p></li></ul><p>3. Goal-Based Agents</p><ul><li><p>Combines current state estimation with explicit Goal Representations defining desirable target states.</p></li><li><p>Deliberative Decision-Making: Integrates Search Algorithms and Planning techniques to evaluate multi-step action paths leading to goal states.</p></li><li><p>Primary Advantage: High flexibility; altering the targeted destination requires updating the goal variable without rewriting core control rules.</p></li></ul><p>4. Utility-Based Agents</p><ul><li><p>Extends goal-based reasoning by incorporating a continuous Utility Function mapping world states to real numbers, measuring the degree of desirability, happiness, or efficiency.</p></li><li><p>Decision Metric: Evaluates choices using Expected Utility (EU),selectingactionsthatmaximizescoreunderuncertainty.</p></li></ul><p>RouteEvaluationMatrixExample</p><tablestyle="min−width:75px;"><colgroup><colstyle="min−width:25px;"><colstyle="min−width:25px;"><colstyle="min−width:25px;"></colgroup><tbody><tr><thcolspan="1"rowspan="1"style="text−align:left;"><p>PossibleAction</p></th><thcolspan="1"rowspan="1"style="text−align:left;"><p>ExpectedOutcome</p></th><thcolspan="1"rowspan="1"style="text−align:center;"><p>UtilityScore(Higher=Better)</p></th></tr><tr><tdcolspan="1"rowspan="1"style="text−align:left;"><p>RouteA</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p>Fastbutrisky</p></td><tdcolspan="1"rowspan="1"style="text−align:center;"><p>), selecting actions that maximize score under uncertainty.</p></li></ul><p>Route Evaluation Matrix Example</p><table style="min-width: 75px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1" style="text-align: left;"><p>Possible Action</p></th><th colspan="1" rowspan="1" style="text-align: left;"><p>Expected Outcome</p></th><th colspan="1" rowspan="1" style="text-align: center;"><p>Utility Score (Higher = Better)</p></th></tr><tr><td colspan="1" rowspan="1" style="text-align: left;"><p>Route A</p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>Fast but risky</p></td><td colspan="1" rowspan="1" style="text-align: center;"><p>60</p></td></tr><tr><tdcolspan="1"rowspan="1"style="text−align:left;"><p>RouteB</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p>Moderatespeed,safe</p></td><tdcolspan="1"rowspan="1"style="text−align:center;"><p></p></td></tr><tr><td colspan="1" rowspan="1" style="text-align: left;"><p>Route B</p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>Moderate speed, safe</p></td><td colspan="1" rowspan="1" style="text-align: center;"><p>85</p></td></tr><tr><tdcolspan="1"rowspan="1"style="text−align:left;"><p>RouteC</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p>Verysafebutslow</p></td><tdcolspan="1"rowspan="1"style="text−align:center;"><p></p></td></tr><tr><td colspan="1" rowspan="1" style="text-align: left;"><p>Route C</p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>Very safe but slow</p></td><td colspan="1" rowspan="1" style="text-align: center;"><p>70</p></td></tr></tbody></table><ul><li><p>Selection:RouteBisselectedbecauseityieldsthemaximumoverallutilityscore(</p></td></tr></tbody></table><ul><li><p>Selection: Route B is selected because it yields the maximum overall utility score (85).

Comparison: Goal-Based vs. Utility-Based Agents

Feature

Goal-Based Agent

Utility-Based Agent

Evaluation

Binary (Goal met / not met)

Continuous (graded satisfaction)

Handles Uncertainty

No

Yes

Decision Quality

Sufficient

Optimized

Example

Reach destination

Choose fastest and safest route

5. Learning Agents

  • Architecture built specifically to operate in unfamiliar environments and improve performance over time through experience.

  • Core Subcomponents:

    1. Performance Element: The operational decision engine that selects real-time actions based on percepts.

    2. Critic: Evaluates the agent's actions against an objective performance standard and delivers evaluation feedback.

    3. Learning Element: Modifies the rules and weights inside the Performance Element based on feedback from the Critic.

    4. Problem Generator: Recommends novel exploratory actions to gather diverse, informative training experiences.

Summary Comparison Matrix of Agent Architectures

Agent Type

Definition (Simple)

Example in Self-Driving Car

Key Point

Reflex Agent

Reacts instantly to input; no memory

Stops immediately when obstacle detected

Uses condition-action (if-then) rules

Model-based Agent

Uses internal world model to decide

Predicts road curvature and tracks hidden vehicles ahead

Maintains internal state / knowledge of world changes

Goal-based Agent

Acts to achieve a specific goal

Plans fastest route from origin to destination

Focused on reaching a target state

Utility-based Agent

Balances performance trade-offs

Balances speed, fuel efficiency, and passenger safety

Chooses optimal outcome using continuous utility function

Learning Agent

Improves with experience over time

Learns better lane detection and driving control from data

Adapts automatically via feedback without reprogramming

Problem Formulation and Problem-Solving Agents
  • Problem-Solving Agents represent a class of goal-based agents that formulate structured plans through offline atomic search prior to executing actions in deterministic, observable, static, and discrete environments.

  • Three Execution Stages:

    1. Problem Formulation: Formally defining states, valid actions, transition rules, goal criteria, and cost structures.

    2. Search Process: Simulating sequence paths across state space to locate a valid goal state.

    3. Solution Identification & Execution: Isolating the lowest-cost action sequence and executing steps sequentially.

  • Search Taxonomy:

    • Uninformed (Blind) Search: Uses no problem-specific domain heuristics (e.g., Breadth-First Search [BFS], Depth-First Search [DFS], Uniform-Cost Search [UCS]).

    • Informed (Heuristic) Search: Uses domain-specific estimates to prioritize promising paths (e.g., Greedy Best-First Search, A^*SearchAlgorithm).</p></li></ul></li></ul><h5id="1c2e5e86−35cb−464c−9aa0−5cef4dce98b5"data−toc−id="1c2e5e86−35cb−464c−9aa0−5cef4dce98b5"collapsed="false"seolevelmigrated="true">MathematicalDefinitionofaProblem</h5><p>AnAIsearchproblemisdefinedbyfiveformalcomponents:</p><ol><li><p>InitialState:Thestatewheretheagentbeginsitssearch:Search Algorithm).</p></li></ul></li></ul><h5 id="1c2e5e86-35cb-464c-9aa0-5cef4dce98b5" data-toc-id="1c2e5e86-35cb-464c-9aa0-5cef4dce98b5" collapsed="false" seolevelmigrated="true">Mathematical Definition of a Problem</h5><p>An AI search problem is defined by five formal components:</p><ol><li><p>Initial State: The state where the agent begins its search:\text{In}(\text{Arad})</p></li><li><p>ActionsFunction:Returnsthesetofvalidactionsaccessiblefromstate</p></li><li><p>Actions Function: Returns the set of valid actions accessible from states::\text{ACTIONS}(s)   Forexample:   For example:\text{ACTIONS}(\text{In}(\text{Arad})) = \{\text{Go}(\text{Sibiu}), \text{Go}(\text{Timisoara}), \text{Go}(\text{Zerind})\}.</p></li><li><p>TransitionModel:Definesthestateresultingfromexecutingaction.</p></li><li><p>Transition Model: Defines the state resulting from executing actionainstatein states::\text{RESULT}(s, a)   Forexample:   For example:\text{RESULT}(\text{In}(\text{Arad}), \text{Go}(\text{Zerind})) = \text{In}(\text{Zerind}).</p></li><li><p>GoalTest:Alogicalpredicateassessingwhetherstate.</p></li><li><p>Goal Test: A logical predicate assessing whether statessatisfiesalltargetgoalconditions:   satisfies all target goal conditions:    \text{Check if } s == \text{In}(\text{Bucharest})</p></li><li><p>PathCostFunction:Assignsanumericcostscoretoapath,accumulatedasthesumofstepcosts</p></li><li><p>Path Cost Function: Assigns a numeric cost score to a path, accumulated as the sum of step costsc(s, a, s').</p><ul><li><p>Anoptimalsolutionisanactionsequenceyieldingthelowesttotalpathcostamongallvalidpathsfrominitialtogoalstate.</p></li></ul></li></ol><p>Comparison:ToyProblemsvs.Real−WorldProblems</p><tablestyle="min−width:100px;"><colgroup><colstyle="min−width:25px;"><colstyle="min−width:25px;"><colstyle="min−width:25px;"><colstyle="min−width:25px;"></colgroup><tbody><tr><thcolspan="1"rowspan="1"style="text−align:left;"><p>ProblemType</p></th><thcolspan="1"rowspan="1"style="text−align:left;"><p>Purpose</p></th><thcolspan="1"rowspan="1"style="text−align:left;"><p>Example</p></th><thcolspan="1"rowspan="1"style="text−align:left;"><p>KeyPoint</p></th></tr><tr><tdcolspan="1"rowspan="1"style="text−align:left;"><p>ToyProblems</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p>Designedforresearchorteaching;simpleandfullydefined</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p>VacuumCleanerWorld,8−puzzle</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p>Illustrateskeyproblem−solvingconcepts(states,actions,goal,cost)</p></td></tr><tr><tdcolspan="1"rowspan="1"style="text−align:left;"><p>Real−WorldProblems</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p>Solvescomplex,dynamic,andpracticalreal−worldtasks</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p>GPSNavigation,DeliveryRouting,AirlineScheduling</p></td><tdcolspan="1"rowspan="1"style="text−align:left;"><p>Demonstratesscalabilityandpracticalapplicabilityofsearchalgorithms</p></td></tr></tbody></table><p>CaseStudy:VacuumWorldStateSpace</p><ul><li><p>StateSpaceCalculation:With2spatiallocationsand2binarydirtstates(.</p><ul><li><p>An optimal solution is an action sequence yielding the lowest total path cost among all valid paths from initial to goal state.</p></li></ul></li></ol><p>Comparison: Toy Problems vs. Real-World Problems</p><table style="min-width: 100px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1" style="text-align: left;"><p>Problem Type</p></th><th colspan="1" rowspan="1" style="text-align: left;"><p>Purpose</p></th><th colspan="1" rowspan="1" style="text-align: left;"><p>Example</p></th><th colspan="1" rowspan="1" style="text-align: left;"><p>Key Point</p></th></tr><tr><td colspan="1" rowspan="1" style="text-align: left;"><p>Toy Problems</p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>Designed for research or teaching; simple and fully defined</p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>Vacuum Cleaner World, 8-puzzle</p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>Illustrates key problem-solving concepts (states, actions, goal, cost)</p></td></tr><tr><td colspan="1" rowspan="1" style="text-align: left;"><p>Real-World Problems</p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>Solves complex, dynamic, and practical real-world tasks</p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>GPS Navigation, Delivery Routing, Airline Scheduling</p></td><td colspan="1" rowspan="1" style="text-align: left;"><p>Demonstrates scalability and practical applicability of search algorithms</p></td></tr></tbody></table><p>Case Study: Vacuum World State Space</p><ul><li><p>State Space Calculation: With 2 spatial locations and 2 binary dirt states (\text{Clean}/\text{Dirty}),totaldistinctworldstatesequal:  ), total distinct world states equal:   2 \times 2^2 = 8 \text{ total states}</p></li><li><p>ValidActions:</p></li><li><p>Valid Actions:\{\text{Left}, \text{Right}, \text{Suck}\}.</p></li><li><p>GoalTest:Alllocationspresent.</p></li><li><p>Goal Test: All locations present\text{Clean}status.</p></li><li><p>StepCost:Eachdiscreteactioncostsstatus.</p></li><li><p>Step Cost: Each discrete action costs1$$ unit; total cost equals total steps taken.