


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



























C O M P R E H E N S I V E S T U D Y G U I D E • U N I T S I – I V
Complete Merged Reference Notes • Clean Edition
Section Topic & Coverage Unit I: Foundations of Artificial Intelligence — Intelligence, Intelligent Agents, AI vs ML vs DL, Classical Problems & Ethics 1.1 Intelligence: Definition & Types 1.2 Human Intelligence vs. Artificial Intelligence 1.3 Features of Intelligence & Introduction to AI 1.4 AI Intelligent Agents & Five Agent Types 1.5 Goals, Features & Advantages of AI 1.6 Disadvantages & Real-World Applications of AI 1.7 Comparison: AI vs. Machine Learning vs. Deep Learning 1.8 Classical AI Problems (Water Jug, Monkey-Banana, Block World) 1.9 Ethical Considerations in AI & MYCIN Case Study Unit II: Search Strategies & Knowledge Representation — State-Space Search, Uninformed & Informed Search, Hill Climbing, A, Game Playing & Logic* 2.1 State-Space Search & Problem Formulation 2.2 Uninformed (Blind) Search: BFS & DFS 2.3 Informed (Heuristic) Search & Best-First Search 2.4 Generate and Test (British Museum Algorithm) 2.5 Hill Climbing Algorithm & Local Optima Issues 2.6 A* and AO* Search Algorithms 2.7 Game Playing in AI 2.8 Knowledge Representation: Logic, Rules, Semantic Nets, Frames & Scripts 2.9 Propositional Logic & Predicate Logic (FOL) Unit III: Machine Learning & Supervised Algorithms — ML Fundamentals, Overfitting/Underfitting, Feature Selection, Regression, Bayes, Trees & Neural Nets 3.1 Classic vs. Adaptive Machines
Section Topic & Coverage
3.2 Machine Learning: Definition, Features, Advantages & Disadvantages
3.3 Training Phase, Testing Phase, Overfitting & Underfitting
3.4 Types & Perspectives / Issues in Machine Learning
3.5 Feature Selection Techniques & Handling Missing Values
3.6 Independent vs. Dependent Variables & Supervised Learning
3.7 Linear Regression: Features, Advantages & Disadvantages
3.8 Logistic Regression: Sigmoid Function, Features & Trade-offs
3.9 Probability, Conditional Probability & Bayes' Theorem
3.10 Decision Trees & ID3 Algorithm (Entropy & Information Gain)
3.11 Regularization: Ridge (L2) vs. Lasso (L1) Regression
3.12 Artificial Neural Networks (ANN) & Feed-Forward Networks
3.13 Error Backpropagation Algorithm & Numerical Example
3.14 Unsupervised, Semi-Supervised & Reinforcement Learning Overview
Unit IV: Unsupervised Learning, PCA & Graphical Models — K-Means Clustering, EM Algorithm, Gaussian Mixture Models, Apriori, PCA & PGMs
4.1 Unsupervised Learning Recap
4.2 K-Means Clustering Algorithm & Euclidean Distance
4.3 Expectation-Maximization (EM) Algorithm & Coin-Toss Numerical
4.4 Gaussian Mixture Models (GMM) & Soft Clustering
4.5 Association Rule Mining (ARM) & Apriori Algorithm
4.6 Curse of Dimensionality & Dimensionality Reduction
4.7 Principal Component Analysis (PCA) & Solved Eigenvalue Example
4.8 Probabilistic Graphical Models (PGM): Bayesian Networks & MRFs
Aspect Human Intelligence Artificial Intelligence Origin Human intelligence originates from biological processes within the human brain, which is composed of billions of interconnected neurons that enable perception, reasoning, and emotional understanding.
Artificial intelligence, on the other hand, is a computational creation developed through algorithms, mathematical models, and data-driven learning implemented using computer systems.
Learning Method
Humans learn from experience, emotions, and social interactions, allowing them to form intuition, empathy, and moral judgment in the decision-making process.
AI systems learn primarily from data and pattern recognition, using machine learning and deep learning algorithms that adjust their parameters to improve performance over time. Adaptability Human intelligence is highly adaptable to new and unpredictable situations; people can apply knowledge flexibly in unfamiliar contexts and learn through reasoning and creativity.
Artificial intelligence is limited in adaptability, as it functions effectively only within the scenarios for which it has been programmed or trained, and struggles with entirely novel or ambiguous situations. Creativity Humans are capable of abstract thinking, imagination, and innovation, often generating new ideas, art, or theories that go beyond existing knowledge.
AI systems generally follow predefined algorithms and logical rules; while they can simulate creativity (e.g., by generating art or music), true innovation and abstract imagination remain beyond their capability. Decision Making
Human decisions are often influenced by emotions, ethics, morality, and intuition, allowing for compassion and context- sensitive judgments even in uncertain conditions.
AI decision-making is driven by logic, optimization, and statistical analysis, producing objective outcomes but lacking moral or emotional reasoning.
Memory Human memory is selective, associative, and context-dependent, meaning people remember what they find meaningful and connect memories through experience and emotion.
AI memory is precise, vast, and consistent, capable of storing and retrieving massive amounts of data without degradation or emotional bias.
Error Handling Humans learn from their mistakes through reflection, feedback, and emotional growth, often developing improved strategies for future challenges.
AI systems handle errors through retraining, debugging, and algorithm adjustments, which require external intervention or additional data to correct performance issues. Processing Speed
Humans process information at a slower pace, considering multiple perspectives, emotions, and rich experiences before reaching a conclusion.
AI systems process information at extremely high speeds, analyzing vast datasets and performing calculations far beyond human capability in seconds.
Aspect Human Intelligence Artificial Intelligence Emotional Intelligence
Human intelligence includes emotional awareness and empathy, allowing individuals to understand and respond appropriately to others' feelings and social cues.
AI lacks true emotional understanding and can only simulate empathy or emotion through pre-programmed responses without genuine feelings.
Consistency Humans may show inconsistency in their performance due to emotions, fatigue, or motivation levels, which can affect judgment and decision-making.
AI systems exhibit high consistency, performing repetitive tasks with uniform accuracy and without emotional variation or fatigue.
Features of Intelligence
Artificial Intelligence (AI)
Artificial Intelligence (AI) is one of the most transformative areas in computer science, concerned with the design and creation of systems capable of performing tasks that require human-like intelligence. It involves making computers think, learn, and act rationally.
AI is rooted in the belief that a machine can be programmed to mimic the cognitive functions that humans associate with intelligence, such as learning, reasoning, problem-solving, perception, and understanding natural language.
There is no universally accepted single definition of AI because the concept encompasses multiple dimensions. However, several scholars have given notable definitions:
Goals of Artificial Intelligence
The ultimate aim of AI is to develop intelligent agents that can perceive their environment and take actions to maximize their chances of success. Specific goals include:
Features of Artificial Intelligence
Advantages of Artificial Intelligence
Disadvantages / Limitations of Artificial Intelligence
Basis of Comparison Artificial Intelligence (AI)^ Machine Learning (ML)^ Deep Learning (DL) Definition Artificial Intelligence is a broad field of computer science that aims to build machines capable of performing tasks that require human intelligence.
Machine Learning is a subset of AI that allows systems to automatically learn and improve from experience without being explicitly programmed.
Deep Learning is a subset of Machine Learning that uses neural networks with multiple layers to automatically learn hierarchical representations from large amounts of data. Objective The main goal of AI is to create intelligent systems that can simulate human reasoning, perception, and problem-solving.
The goal of ML is to enable machines to learn from data and make accurate predictions or decisions based on it.
The goal of DL is to achieve end-to-end learning, where systems can automatically extract features and learn complex data representations with minimal human intervention. Scope AI is the most general concept that covers reasoning, learning, perception, and natural language understanding.
ML is narrower in scope, focusing primarily on algorithms that allow machines to learn patterns from data.
DL is the most specialized area within ML, concentrating on deep neural networks for complex pattern recognition. Dependency on Human Intervention
AI systems often require human-defined rules, logic, and symbolic reasoning to function effectively.
ML requires some level of human supervision for data labeling, model selection, and feature engineering.
DL reduces the need for human involvement as it automatically extracts and learns features from raw data. Approach AI uses both symbolic (rule-based) and data- driven approaches to achieve intelligence.
ML relies mainly on statistical and mathematical modeling of data to find patterns and relationships.
DL relies on neural networks with multiple hidden layers that perform nonlinear transformations of input data. Data Requirement
AI systems can sometimes work effectively with smaller, structured datasets if designed with strong logical rules.
ML systems generally require moderate amounts of data to train models effectively.
DL systems require very large datasets and high computational power to achieve accurate results.
Knowledge Representation
Knowledge in AI is explicitly represented using logic, rules, and symbols (e.g., knowledge bases or expert systems).
ML represents knowledge implicitly through learned model parameters based on training data.
DL represents knowledge in a distributed and hierarchical manner using artificial neural networks.
Basis of Comparison Artificial Intelligence (AI)^ Machine Learning (ML)^ Deep Learning (DL)
Execution Time AI systems may take more time for reasoning-based tasks as they use logical inference mechanisms.
ML models are relatively faster since they rely on optimized mathematical computations once trained.
DL models require longer training time due to the large number of layers, but are faster in prediction once trained. Complexity AI includes a wide variety of complex cognitive capabilities such as perception, reasoning, and language understanding.
ML is less complex compared to AI as it focuses mainly on data- based pattern learning.
DL is computationally the most complex as it involves large neural networks and massive computations. Hardware Dependency
AI systems can run on general-purpose computers with modest processing power.
ML models may require higher computational power, but can still run efficiently on CPUs.
DL models typically require GPUs or TPUs to handle parallel computations and large datasets. Applications AI is applied in expert systems, robotics, speech recognition, and decision support systems.
ML is used in spam filtering, fraud detection, recommendation systems, and predictive analytics.
DL powers advanced technologies like facial recognition, autonomous vehicles, and speech translation. Example Algorithms
AI algorithms include rule- based systems, search algorithms, and logic- based reasoning systems.
ML algorithms include linear regression, decision trees, random forests, and support vector machines.
DL algorithms include convolutional neural networks (CNNs), recurrent neural networks (RNNs), and deep belief networks (DBNs). Training Process AI may not require explicit training when rule-based; knowledge is embedded in logical form.
ML requires model training using labeled or unlabeled datasets to optimize predictions.
DL requires an extensive training phase involving thousands of iterations over massive datasets. Example Systems
IBM Watson, Expert Systems, Chatbots, Game- playing AI.
Netflix recommendation engine, Email spam filters, Credit scoring models.
Self-driving cars, Face recognition (FaceNet), Google Translate's neural engine.
Ethical considerations in AI development and deployment focus on ensuring fairness, transparency, accountability, privacy, human-centric design, and the avoidance of bias. These principles aim to align AI with human values, protect user rights, and prevent harm. MYCIN, an early AI expert system for medical diagnosis, raised ethical concerns such as data privacy, accountability for decisions or misdiagnoses, transparency of AI's reasoning, and the clear role of AI as a decision-support tool rather than a substitute for human doctors.
Key Ethical Considerations
Ensuring accountability for AI decisions and clear assignment of responsibility is crucial, especially when AI causes harm or errors. Transparency and explainability of AI processes help build trust and allow users to understand how AI outcomes are derived. Privacy protection and data security are fundamental throughout the AI lifecycle to safeguard sensitive personal information. AI systems must be designed with human-centric values, promoting dignity, autonomy, and societal well-being, with multi-stakeholder involvement. Continuous ethical evaluation, auditing, and adherence to frameworks and guidelines ensure AI remains aligned with ethical principles over time.
Ethical Issues Related to MYCIN
MYCIN, a pioneering expert system for infectious disease diagnosis, demonstrated the potential for AI in healthcare but raised significant ethical and legal concerns. These include patient data privacy, the accuracy of AI advice, and clarity about how AI decisions are made. Responsibility for incorrect diagnoses made by MYCIN led to questions about liability—whether the physician, developers, or AI system holds accountability. MYCIN was intended as a tool to aid, not replace, doctors, emphasizing AI's supportive rather than autonomous role in clinical decisions. Ethical oversight and collaboration among healthcare providers, AI creators, and regulators are necessary for responsible AI use in medicine.
UNIT II Search Strategies & Knowledge Representation
In Artificial Intelligence, search is one of the most fundamental techniques used for problem-solving. Most AI problems — like playing chess, planning robot movement, or route finding — can be represented as a search through a state space.
A search problem is one where an AI agent explores possible states (situations) to reach a goal state from an initial state by applying a sequence of actions. Searching for solutions means systematically exploring all possible states that can be reached from the initial state using valid operators (actions) until a goal state is found.
EXAMPLE — ROUTE FINDING FROM JAIPUR TO DELHI Initial state: Jaipur Goal state: Delhi Operators: Move along available highways (Jaipur → Gurugram → Delhi, etc.) Search: Explore possible paths and choose the best one.
The process of search involves: (1) Defining the state space, (2) Generating successors (next states), (3) Testing for the goal, and (4) Choosing which state to explore next.
A state-space is the set of all possible configurations (states) that can be reached in a given problem. A state-space search problem can be defined formally as a 5-tuple:
P = (S, A, s 0 , G, C) Where: S = Set of all possible states • A = Set of all actions • s 0 = Initial state • G = Set of goal states • C = Cost function for each action
Search Type Description Example Algorithms Uninformed (Blind) Search
No information about how close we are to the goal; explores blindly.
BFS, DFS, Uniform Cost, DLS, IDS Informed (Heuristic) Search
Uses domain knowledge or heuristics to guide search.
A*, Greedy Best-First, Hill Climbing Adversarial Search Multi-agent competitive environments where agents have conflicting goals.
Minimax, Alpha-Beta Pruning
Uninformed Search (also called Blind Search) refers to search methods that do not have any information about the goal's location or the cost to reach it. They rely purely on problem definition, initial state, operators, and goal test, and systematically explore the search space.
a. Breadth-First Search (BFS)
Breadth-First Search expands the shallowest (earliest) unexpanded node first, i.e., it explores all nodes at depth 0, then depth 1, and so on. It proceeds level by level in the search tree.
Maintains two lists: OPEN list (nodes yet to be expanded) and CLOSED list (nodes already expanded). Selects the node from the OPEN list with the best heuristic value (lowest estimated cost to goal). Expands the selected node to generate successors and adds them to OPEN if not in CLOSED. Repeats until the goal node is reached or OPEN is empty.
EXAMPLE — BEST-FIRST SEARCH PATH SELECTION (START A TO GOAL G) Start at A ( h = 40 ). From A, neighbors are B (30), C (25), and D (35). Choose C (smallest heuristic 25). From C, paths lead to F (20) and E (23); choose F (20). From F, options are D (35) and G (0); choose G (0) to reach the goal.
Generate and Test is a simple search technique in artificial intelligence that systematically generates possible solutions and tests each one to see if it satisfies the problem's goal. It is a brute-force approach that guarantees finding a solution if one exists, but it can be inefficient because it may generate many candidate solutions before success.
Similar to depth-first search with backtracking; solution space can be searched systematically or randomly. Can be improved by combining with heuristics or constraints to prune the search space. Known as the "British Museum" algorithm due to its exhaustive nature (like wandering randomly in a museum searching for one artifact). Example: To find a number between 1 and 100 divisible by 7, generate candidates sequentially (1, 2, 3, …) and test divisibility by 7 until 7 is found and returned.
Hill Climbing is a local search algorithm that continuously moves in the direction of increasing value (improving heuristic), like climbing uphill until the peak (maximum) is reached. It uses h(n) as a measure of state goodness (in minimization problems, smaller h(n) means closer to the goal).
Three Major Problems in Hill Climbing
1. Local Maximum: A peak that is higher than all its neighboring states, but lower than the global maximum. Once reached, Hill Climbing halts because every neighbor appears worse. 2. Plateau (Flat Maximum): A flat region of the search space where neighboring states have identical heuristic values, leaving the algorithm unable to determine an uphill direction. 3. Ridge: A narrow, elevated path leading toward the global optimum whose orientation is not aligned with the search axes, causing single-axis moves to step downhill.
Problems in Hill Climbing State-Space Landscape: 1) Local Maximum 2) Plateau / Flat Maximum 3) Ridge (3D Axes x, y, z) ^ ^ z ^ B (Global) | Global | /\ | / | Local /\ | / \ | A (Ridge Crest) | /\ / \ | +----+ \ | / \ | / \ / \ | / (Flat) \ +--------> y +----------------> +----------------> / x
A Algorithm*
A* is the most popular optimal heuristic search algorithm used in pathfinding and graph traversal. It combines the strengths of Uniform Cost Search (UCS) — actual cost so far g(n) — and Greedy Best-First Search — estimated cost to goal h(n) — to minimize the total estimated path cost:
f(n) = g(n) + h(n)
WORKED GRAPH EXAMPLE — FINDING OPTIMAL PATH FROM START S TO GOAL G Node Heuristic Values h(n) : S = 14, B = 12, C = 11, f = 11, d = 6, e = 4, G = 0. Directed Edge Costs c(u, v) : S→B (4), S→C (3), B→f (5), B→e (12), C→e (10), C→d (7), d→e (2), f→G (16), e→G (5). Step 1 (Start at S): Expand S → B: f(B) = 4 + 12 = 16 ; C: f(C) = 3 + 11 = 14. Choose C (lowest f = 14 ). Step 2 (Expand C): C→e: f(e) = (3 + 10) + 4 = 17 ; C→d: f(d) = (3 + 7) + 6 = 16. Choose d ( f = 16 ; ties with B, breaks toward deeper path). Step 3 (Expand d): d→e: f(e) = (3 + 7 + 2) + 4 = 16. Choose e ( f = 16 ). Step 4 (Expand e): e→G: f(G) = (3 + 7 + 2 + 5) + 0 = 17. Optimal path: S → C → d → e → G with total cost 17.
AO Algorithm*
The AO algorithm* is an advanced best-first search method used for problems modeled using AND- OR graphs , allowing efficient decision-making and problem reduction where tasks decompose into both conjunctive (AND) and disjunctive (OR) steps:
Propositional Logic
Propositional logic represents knowledge as atomic statements (propositions, e.g., P , Q ) that are either True or False , never both. Logical connectives combine propositions:
AND ( ∧ ): P ∧ Q is true only if both P and Q are true. OR ( ∨ ): P ∨ Q is true if at least one of P or Q is true. NOT ( ¬ ): ¬P is true if P is false. IMPLIES ( → ): P → Q asserts that if P is true, then Q must also be true (e.g., P ∧ Q → Refuel ). IF AND ONLY IF ( ↔ ): P ↔ Q is true when P and Q share the same truth value.
Predicate Logic / First-Order Logic (FOL)
Predicate logic extends propositional logic to express relationships and properties of objects, using Resolution as a core inference technique for automated proof generation:
Predicates: Describe properties or relations between objects — e.g., Father(John, Mary). Variables & Constants: Constants refer to specific objects (e.g., John , Mary ); variables stand in for general objects — e.g., Human(x). Universal Quantifier ( ∀ ): Statements true for all objects — e.g., ∀ x (Human(x) → Mortal(x)) ("All humans are mortal"). Existential Quantifier ( ∃ ): Statements satisfied by at least one object — e.g., ∃ x Human(x) ("There exists at least one human").
UNIT III Machine Learning & Supervised Algorithms
A machine is a man-made device that uses energy to perform work, reducing human effort by making tasks easier, faster, or more precise.
Aspect Classic Machines Adaptive Machines Definition Systems that work on explicitly programmed instructions.
Systems that improve performance by learning from data. Learning Capability Do not learn or adapt over time. Continuously learn and adapt from data or environment. Behavior Fixed, predictable, and static. Dynamic, flexible, and evolving. Programming Approach
Rule-based (if-then-else, logic). Data-driven (learning algorithms, optimization). Examples Traditional calculators, compilers, basic control systems.
Spam filters, self-driving cars, speech recognition systems. Error Handling Fails if a situation is not predefined. Learns from errors and improves over time. Human Intervention Needs reprogramming for changes. Minimal intervention; adapts automatically. Scalability Harder to scale for complex/ambiguous problems.
Scales well to high-dimensional, real- world problems. Data Usage Uses data for processing only. Uses data for both processing and learning. Use Case Fit Well-suited for repetitive, well-defined tasks.
Best for tasks requiring pattern recognition and prediction.
Machine Learning (ML) is a subfield of Artificial Intelligence that equips machines with the ability to learn patterns from data and make predictions or decisions without being explicitly programmed.
Tom Mitchell (1997) defines machine learning as: "A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E."
Paradigm Shift: Traditional Programming: [ Data (Input) + Program ] ----------> [ Output ] Machine Learning: [ Data (Input) + Output ] ----------> [ Program (Learned Model) ]