Docsity

Artifical intelligence, Study notes of Artificial Intelligence

Toggle sidebar
bg1
What is Artificial Intelligence (AI)?
Definition
Artificial Intelligence (AI) is a branch of computer science that focuses on creating machines or
computer programs that can think, learn, and make decisions like humans.
In simple words, AI makes computers smart so they can perform tasks that normally require human
intelligence.
Why is AI needed?
Humans can think, learn from experience, solve problems, understand language, and make
decisions. AI tries to copy these abilities in machines so they can:
โ€ข
Work faster than humans
โ€ข
Reduce human effort
โ€ข
โ€ข
Work 24/7 without tiredness
How does AI work?
AI systems work using:
1.
Data โ€“Information given to the machine (text, images, numbers, etc.)
2.
Algorithms โ€“Step-by-step rules to process data
3.
Learning methods โ€“Machines improve performance by learning from experience
For example:
If you show many photos of cats and dogs to a computer, AI learns to identify patterns and later
tells whether a new photo is a cat or a dog.
Main abilities of AI
AI systems can:
โ€ข
Learn from data (Machine Learning)
โ€ข
Reason and solve problems
โ€ข
Understand language (Natural Language Processing)
โ€ข
Recognize images and speech
โ€ข
Make decisions and predictions
Types of Artificial Intelligence
1.
Narrow AI (Weak AI)
โ—‹
Designed for a specific task
โ—‹
Examples: Google Assistant, Chatbots, Face Recognition
โ—‹
Most AI today is Narrow AI
2.
General AI (Strong AI)
โ—‹
Can perform any task like a human
โ—‹
Think, learn, and reason independently
Still not developed
UNIT 1
18 January 2026
12:39
New Section 3 Page 1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Artifical intelligence and more Study notes Artificial Intelligence in PDF only on Docsity!

What is Artificial Intelligence (AI)?

Definition

Artificial Intelligence (AI) is a branch of computer science that focuses on creating machines or computer programs that can think, learn, and make decisions like humans. In simple words, AI makes computers smart so they can perform tasks that normally require human intelligence.

Why is AI needed?

Humans can think, learn from experience, solve problems, understand language, and make decisions. AI tries to copy these abilities in machines so they can:

  • Work faster than humans
  • Reduce human effort
  • Solve complex problems
  • Work 24/7 without tiredness

How does AI work?

AI systems work using:

  1. Data โ€“ Information given to the machine (text, images, numbers, etc.)
  2. Algorithms โ€“ Step-by-step rules to process data
  3. Learning methods โ€“ Machines improve performance by learning from experience For example: If you show many photos of cats and dogs to a computer, AI learns to identify patterns and later tells whether a new photo is a cat or a dog.

Main abilities of AI

AI systems can:

  • Learn from data (Machine Learning)
  • Reason and solve problems
  • Understand language (Natural Language Processing)
  • Recognize images and speech
  • Make decisions and predictions

Types of Artificial Intelligence

  1. Narrow AI (Weak AI) โ—‹ Designed for a specific task โ—‹ Examples: Google Assistant, Chatbots, Face Recognition โ—‹ Most AI today is Narrow AI
  2. General AI (Strong AI) โ—‹ Can perform any task like a human โ—‹ Think, learn, and reason independently Still not developed

UNIT 1

18 January 2026 12:

โ—‹ Still not developed

Applications of AI (Uses of AI)

AI is used in many areas:

  • Healthcare โ€“ Disease detection, medical diagnosis
  • Education โ€“ Smart learning apps, virtual tutors
  • Transportation โ€“ Self-driving cars, traffic control
  • Banking โ€“ Fraud detection, chatbots
  • Entertainment โ€“ Netflix recommendations, gaming
  • Daily Life โ€“ Voice assistants like Alexa and Siri

Advantages of AI

  • Works faster and more accurately
  • Reduces human error
  • Can handle repetitive tasks
  • Helps in decision making
  • Useful in dangerous situations (mines, space, disasters)

Limitations of AI

  • Expensive to develop
  • Depends on data quality
  • Cannot think emotionally like humans
  • May cause job replacement
  • Needs human supervision

Conclusion

Artificial Intelligence is a powerful technology that enables machines to think, learn, and act intelligently. It plays an important role in modern life and is transforming industries like healthcare, education, and transportation. However, AI should be used carefully and ethically to benefit society. โœ… Tip for exams (10 marks): Write definition โ†’ working โ†’ abilities โ†’ types โ†’ applications โ†’ advantages โ†’ limitations โ†’ conclusion for full marks. Foundations of Artificial Intelligence (AI)

Introduction

The Foundations of Artificial Intelligence (AI) are the basic disciplines and ideas on which AI is built. AI does not come from a single subject; instead, it is developed by combining knowledge from many fields such as philosophy, mathematics, psychology, computer science, and engineering. These foundations help machines think, learn, reason, and act intelligently.

7. Control Theory & Cybernetics

These fields deal with:

  • Feedback systems
  • Automatic control
  • Machine behavior in dynamic environments Contribution to AI: Robotics, automation, self-correcting systems.

8. Linguistics

Linguistics is the study of language. AI uses it to understand and generate human language. Contribution to AI: Natural Language Processing (NLP), speech recognition, chatbots. Summary Table (for Exams) Foundation Contribution to AI Philosophy Logic, reasoning, ethics Mathematics Algorithms, learning, prediction Economics Rational decisions Neuroscience Neural networks Psychology Learning & behavior Computer Science Programming & implementation Control Theory Robotics & automation Linguistics Language understanding

Conclusion

The foundations of AI combine human thinking, mathematical logic, and computer technology to create intelligent machines. Each foundation plays a vital role in making AI systems smart, efficient, and reliable. History of Artificial Intelligence (AI)

Introduction

Introduction

The history of Artificial Intelligence (AI) explains how the idea of making intelligent machines developed over time. AI did not appear suddenly; it evolved through research, experiments, successes, and failures over many decades. The goal has always been to make machines think and act like humans. Early Ideas (Before 1950)

  • Humans have dreamed of intelligent machines since ancient times.
  • Philosophers discussed logic, reasoning, and thinking machines.
  • In 1943 , the idea of an artificial neuron was introduced.
  • In 1950 , Alan Turing proposed the Turing Test to check if a machine can think like a human. This period laid the theoretical foundation of AI. Birth of AI (1956)
  • The term Artificial Intelligence was officially introduced in 1956.
  • A research workshop was held at Dartmouth College, USA.
  • Scientists believed that machines could soon perform human-level intelligence. 1956 is considered the birth year of AI. Early Growth of AI (1956โ€“1970)
  • AI programs were developed to solve math problems and play games.
  • Expert systems and problem-solving programs were created.
  • Researchers were very optimistic about AIโ€™s future. AI showed promise but was limited by computing power. First AI Winter (1970โ€“1980)
  • AI systems failed to meet high expectations.
  • Computers were slow and data was limited.
  • Funding and interest in AI research decreased. This slowdown period is called the โ€œAI Winterโ€. Expert Systems Era (1980โ€“1990)
  • Expert systems were developed to mimic human experts.
  • Used in medicine, industry, and decision-making.
  • These systems worked well but were expensive and difficult to maintain. AI regained popularity but still had limitations. Second AI Winter (1990โ€“2000)
  • Expert systems became less practical.
  • Maintenance costs were high.
  • Interest and funding again reduced. AI research slowed down once more. Modern AI Era (2000โ€“Present)
  • Growth of big data, powerful computers, and the internet boosted AI.
  • Machine Learning and Deep Learning became popular.
  • AI now performs tasks like speech recognition, image recognition, and self-driving cars. This is the most successful period of AI so far. Summary Timeline (For Exams) Period Key Event

6. AI in Real-World Applications

Modern AI is actively used in:

  • Healthcare โ€“ diagnosis, drug discovery
  • Education โ€“ personalized learning
  • Finance โ€“ fraud detection
  • Transportation โ€“ traffic control
  • Industry โ€“ automation and robotics Limitations of Current AI Even at the state of the art, AI still has limitations:
  • Lacks human-like common sense
  • Needs huge amounts of data
  • Can be biased if trained on biased data
  • Cannot fully understand emotions or ethics Future Direction
  • Explainable AI (transparent decision-making)
  • Humanโ€“AI collaboration
  • Ethical and responsible AI
  • Toward Artificial General Intelligence (AGI)

Conclusion

The state of the art in AI shows that machines today can learn, recognize, predict, and create with remarkable accuracy. While current AI is powerful, it is still task-specific and far from true human intelligence. Continuous research is making AI smarter, safer, and more useful. r cial ntelligence ec ni es

Introduction

AI techniques are the methods and strategies used to make machines intelligent. These techniques help computers solve problems, learn from experience, reason logically, and make decisions like humans. Different AI problems require different techniques. Major AI Techniques

1. Search Techniques

Search techniques help AI find a solution by exploring different possibilities.

  • Uninformed Search โ€“ No extra knowledge โ—‹ Breadth First Search (BFS) Depth First Search (DFS)

โ—‹ Depth First Search (DFS)

  • Informed Search โ€“ Uses heuristics (rules of thumb) โ—‹ A* Algorithm โ—‹ Best First Search Used in: Puzzle solving, path finding, games.

2. Knowledge Representation

This technique stores human knowledge in a form that machines can understand. Common methods:

  • Logic (Propositional & Predicate Logic)
  • Semantic Networks
  • Frames
  • Rules (IFโ€“THEN) Used in: Expert systems, decision-making systems.

3. Reasoning Techniques

Reasoning allows AI to draw conclusions from stored knowledge. Types:

  • Deductive Reasoning
  • Inductive Reasoning
  • Abductive Reasoning Used in: Medical diagnosis, legal systems.

4. Machine Learning (ML)

Machine Learning enables AI to learn automatically from data. Types of ML:

  1. Supervised Learning โ€“ Uses labeled data
  2. Unsupervised Learning โ€“ Finds patterns in unlabeled data
  3. Reinforcement Learning โ€“ Learns through rewards and penalties Used in: Recommendation systems, fraud detection.

5. Neural Networks

Neural networks are inspired by the human brain.

  • Made of artificial neurons
  • Used in deep learning
  • Excellent at handling complex data Used in: Image recognition, speech recognition.

6. Natural Language Processing (NLP)

NLP allows AI to understand and generate human language. Tasks include:

  • Speech recognition
  • Language translation
  • Text analysis Used in: Chatbots, voice assistants.

7. Computer Vision

Computer vision enables AI to interpret visual information. Tasks:

  • Image recognition
  • Object detection
  • Face recognition Used in: Medical imaging, surveillance, autonomous vehicles.
  • Observes the environment
  • Formulates a problem
  • Searches for a solution
  • Executes actions to achieve a goal It works in well-defined environments where the rules and outcomes are known. Steps of a Problem-Solving Agent

1. Goal Formulation

  • The agent decides what it wants to achieve.
  • A goal is a desired state of the environment. Example: Reach destination, solve a puzzle.

2. Problem Formulation

The agent defines the problem in a formal way using:

  • Initial State โ€“ starting position
  • Actions โ€“ possible moves
  • Transition Model โ€“ result of each action
  • Goal Test โ€“ checks if goal is reached
  • Path Cost โ€“ cost of actions This converts a real-world problem into a search problem.

3. Search for a Solution

  • The agent searches through different states to find a path to the goal.
  • Uses search algorithms like: โ—‹ Breadth First Search (BFS) โ—‹ Depth First Search (DFS) โ—‹ A* Algorithm Search is the core of problem solving.

4. Execution

  • The agent executes the action sequence found by the search.
  • If the environment changes, it may re-plan. Characteristics of Problem-Solving Agents
  • Operate in fully observable environments
  • Work in deterministic settings
  • Focus on goal-based behavior
  • Use offline planning (think first, then act) Example of a Problem-Solving Agent
  • 8 - Puzzle problem
  • Maze solving robot
  • Route planning (GPS systems)
  • Chess playing programs (basic level) Advantages
  • Systematic approach to problem solving
  • Guarantees solution (if exists)
  • Easy to design for structured problems Limitations
  • Not suitable for dynamic environments
  • Not suitable for dynamic environments
  • Can be slow for large state spaces
  • Requires complete knowledge of the problem Summary Diagram Explanation (for Exams) Environment โ†’ Percepts โ†’ Problem-Solving Agent โ†’ Goal Formulation โ†’ Problem Formulation โ†’ Search โ†’ Action Sequence โ†’ Goal Achieved

Conclusion

Problem-solving agents are the foundation of AI problem solving. They transform real-world problems into search problems and use algorithms to find optimal solutions. Though limited to structured environments, they are essential for understanding intelligent behavior in AI. Uninformed (Uniformed) Search Strategies in AI

Introduction

Uninformed search strategies (also called Uniformed search strategies) are search techniques that do not use any additional knowledge or heuristics about the problem. They explore the state space blindly, using only the problem definition (initial state, actions, goal test, and path cost). Main Uninformed Search Strategies

1. Breadth First Search (BFS)

  • Expands the shallowest node first
  • Uses queue (FIFO)
  • Finds the shortest path (if all costs are equal) Advantages
  • Complete (always finds solution if exists)
  • Optimal (for equal step cost) Disadvantages
  • High memory usage Used in: Shortest path problems.

2. Depth First Search (DFS)

  • Expands the deepest node first
  • Uses stack (LIFO) or recursion Advantages
  • Low memory usage
  • Simple to implement Disadvantages

Conclusion

Uninformed search strategies are basic AI search techniques that explore without guidance. They are simple and useful for small or structured problems, but inefficient for large state spaces. Informed Search Strategies in Artificial Intelligence

Introduction

Informed search strategies are AI search techniques that use additional knowledge called heuristics to guide the search toward the goal. Unlike uninformed search, these strategies reduce search time and cost by exploring the most promising paths first. What is a Heuristic Function? A heuristic function (h(n)) estimates the cost from the current node to the goal. Good heuristics make search faster and more efficient. Example:

  • Straight-line distance in route finding Main Informed Search Strategies

1. Best First Search

  • Expands the node with the lowest heuristic value
  • Uses priority queue Advantages
  • Faster than uninformed search Disadvantages
  • Not always optimal Uses: Greedy decisions.

2. Greedy Best First Search

  • Chooses node with minimum h(n) only Advantages
  • Very fast Disadvantages
  • Can choose wrong path
  • Not optimal Uses: Quick approximations.

3. A Search Algorithm *

  • Uses f(n) = g(n) + h(n) โ—‹ g(n): cost from start to node โ—‹ h(n): estimated cost to goal Advantages
  • Complete
  • Optimal (if heuristic is admissible) Disadvantages
  • High memory usage Uses: Pathfinding, navigation.

4. Hill Climbing

  • Moves toward state with better heuristic value
  • No backtracking Advantages

Advantages

  • Simple and fast Disadvantages
  • Local maxima problem
  • Not complete Uses: Optimization problems.

5. Beam Search

  • Expands only a fixed number of best nodes at each level Advantages
  • Memory efficient Disadvantages
  • May miss optimal solution Uses: Language processing, scheduling.

6. Simulated Annealing

  • Allows occasional worse moves to escape local maxima Advantages
  • Avoids local optimum Disadvantages
  • Slow Uses: Complex optimization problems. Comparison Table Strategy Complete Optimal Heuristic Best First No No Yes Greedy No No Yes A* Yes Yes Yes Hill Climbing No No Yes Beam Search No No Yes Simulated Annealing Yes No Yes

Conclusion

Informed search strategies make AI efficient and intelligent by using heuristics. Among them, A* is the most powerful and widely used due to its completeness and optimality. Constraint Satisfaction Problems (CSP) in Artificial Intelligence

Introduction

A Constraint Satisfaction Problem (CSP) is a special type of AI problem where the goal is to find values for variables that satisfy a set of constraints. Instead of searching for a path, CSP focuses on finding a valid combination of values. Components of a CSP A CSP is defined by three main elements:

  1. Variables (X) โ—‹ A set of variables: Xโ‚, Xโ‚‚, โ€ฆ, Xโ‚™
  2. Domains (D) Each variable has a domain of possible values
  • Least Constraining Value โ€“ choose value that restricts others least Advantages of CSP
  • Clear problem representation
  • Efficient for structured problems
  • Guarantees valid solution if exists Limitations of CSP
  • Not suitable for dynamic environments
  • Performance decreases with large variables
  • Requires exact constraints

Conclusion

Constraint Satisfaction Problems are powerful AI models for problems where rules are more important than paths. By using smart heuristics and constraint propagation, CSPs can solve complex real-world problems efficiently.