Lecture 1. Introduction to AI and it's applications.pptDebabrataPain1
This document provides an introduction to artificial intelligence, including definitions of AI, its goals, approaches, and applications. It defines AI as the science and engineering of making intelligent machines, and discusses goals like replicating human intelligence and developing systems that think and act rationally. The document outlines different approaches to AI like hard/strong AI, soft/weak AI, applied AI, and cognitive AI. It also discusses major components and applications of AI like perception, robotics, natural language processing, planning, and machine learning.
The document provides an introduction to artificial intelligence (AI), including definitions, concepts, and types of AI. It defines AI as the ability of computers to learn and think like humans. The key concepts discussed are machine learning, deep learning, and neural networks. It describes narrow/weak AI as able to perform specific tasks, general AI as able to perform any intellectual task, and super AI as able to surpass human intelligence. The document also outlines components of AI like learning, reasoning, problem-solving, perception, and language understanding. It presents a three-dimensional model of AI and discusses types based on functionality like reactive machines and those with limited memory.
This document provides an overview of an introductory course on general issues and artificial intelligence. It includes a list of textbooks and reference books, the course syllabus which covers topics like problem solving, search techniques, games and games of chance. It then details the introduction to AI, defining what AI is, the different approaches to AI like hard AI, soft AI, applied AI and cognitive AI. It discusses the goals of AI and the major components of an AI system. Finally, it provides a history of AI and discusses some applications of AI like perception, robotics, natural language processing and more.
1_Introduction to Artificial Intelligence.pdfasxc1
This document provides information about the CE623 - Artificial Intelligence course. It includes details about course credits, required textbooks, and an introduction to various topics in artificial intelligence including definitions of AI, characteristics of AI, advantages of AI, major areas of AI such as expert systems, robotics, machine learning, neural networks, fuzzy logic, and natural language processing. It also provides examples and descriptions of different problems that can be solved using state space search techniques, including the 8 puzzle problem and a water jug problem.
This document provides an introduction to artificial intelligence (AI) and related concepts. It defines key terms like data, information, knowledge and knowledge base. It discusses different views on defining AI, including thinking humanly, thinking rationally, acting humanly, and acting rationally. The document also covers the history of AI, applications of AI, knowledge representation, and the differences between human and artificial intelligence. It provides examples of expert systems like DENDRAL, MYCIN, PUFF and ELIZA to illustrate the concept.
The document discusses various topics related to artificial intelligence including definitions of AI, goals of AI, whether machines can think, the Turing test, types of AI tasks including mundane, formal and expert tasks, technologies based on AI such as machine learning, natural language processing, computer vision, and applications of AI such as in healthcare, gaming, finance, data security, social media, travel and more.
The document provides an overview of human-machine interaction and user interface design. It discusses the history and generations of user interfaces from machines that reduced physical labor to today's intelligent machines. The key aspects of user interface design discussed include input/output channels, visual and auditory human perception, hardware and software considerations, and principles of user-centered design like feedback, constraints, and affordances. It also covers reasoning, problem solving, and the psychology of human actions and interactions with devices.
This document provides an overview of an artificial intelligence course. The course aims to help students understand basic AI concepts, apply concepts to solve problems, and design algorithms to address real-world issues. Assessment includes assignments, quizzes, midterms, and a final exam. The textbook is "Artificial Intelligence: A Modern Approach." Topics covered include intelligent agents, problem solving, search techniques, constraint satisfaction, knowledge representation, planning, uncertainty, learning, neural networks, perception, and robotics.
Lecture 1. Introduction to AI and it's applications.pptDebabrataPain1
This document provides an introduction to artificial intelligence, including definitions of AI, its goals, approaches, and applications. It defines AI as the science and engineering of making intelligent machines, and discusses goals like replicating human intelligence and developing systems that think and act rationally. The document outlines different approaches to AI like hard/strong AI, soft/weak AI, applied AI, and cognitive AI. It also discusses major components and applications of AI like perception, robotics, natural language processing, planning, and machine learning.
The document provides an introduction to artificial intelligence (AI), including definitions, concepts, and types of AI. It defines AI as the ability of computers to learn and think like humans. The key concepts discussed are machine learning, deep learning, and neural networks. It describes narrow/weak AI as able to perform specific tasks, general AI as able to perform any intellectual task, and super AI as able to surpass human intelligence. The document also outlines components of AI like learning, reasoning, problem-solving, perception, and language understanding. It presents a three-dimensional model of AI and discusses types based on functionality like reactive machines and those with limited memory.
This document provides an overview of an introductory course on general issues and artificial intelligence. It includes a list of textbooks and reference books, the course syllabus which covers topics like problem solving, search techniques, games and games of chance. It then details the introduction to AI, defining what AI is, the different approaches to AI like hard AI, soft AI, applied AI and cognitive AI. It discusses the goals of AI and the major components of an AI system. Finally, it provides a history of AI and discusses some applications of AI like perception, robotics, natural language processing and more.
1_Introduction to Artificial Intelligence.pdfasxc1
This document provides information about the CE623 - Artificial Intelligence course. It includes details about course credits, required textbooks, and an introduction to various topics in artificial intelligence including definitions of AI, characteristics of AI, advantages of AI, major areas of AI such as expert systems, robotics, machine learning, neural networks, fuzzy logic, and natural language processing. It also provides examples and descriptions of different problems that can be solved using state space search techniques, including the 8 puzzle problem and a water jug problem.
This document provides an introduction to artificial intelligence (AI) and related concepts. It defines key terms like data, information, knowledge and knowledge base. It discusses different views on defining AI, including thinking humanly, thinking rationally, acting humanly, and acting rationally. The document also covers the history of AI, applications of AI, knowledge representation, and the differences between human and artificial intelligence. It provides examples of expert systems like DENDRAL, MYCIN, PUFF and ELIZA to illustrate the concept.
The document discusses various topics related to artificial intelligence including definitions of AI, goals of AI, whether machines can think, the Turing test, types of AI tasks including mundane, formal and expert tasks, technologies based on AI such as machine learning, natural language processing, computer vision, and applications of AI such as in healthcare, gaming, finance, data security, social media, travel and more.
The document provides an overview of human-machine interaction and user interface design. It discusses the history and generations of user interfaces from machines that reduced physical labor to today's intelligent machines. The key aspects of user interface design discussed include input/output channels, visual and auditory human perception, hardware and software considerations, and principles of user-centered design like feedback, constraints, and affordances. It also covers reasoning, problem solving, and the psychology of human actions and interactions with devices.
This document provides an overview of an artificial intelligence course. The course aims to help students understand basic AI concepts, apply concepts to solve problems, and design algorithms to address real-world issues. Assessment includes assignments, quizzes, midterms, and a final exam. The textbook is "Artificial Intelligence: A Modern Approach." Topics covered include intelligent agents, problem solving, search techniques, constraint satisfaction, knowledge representation, planning, uncertainty, learning, neural networks, perception, and robotics.
The document discusses several topics related to artificial intelligence including definitions of intelligence and AI, approaches to AI like symbolic AI and biological AI, applications of AI such as expert systems and game playing, and techniques like the Turing test. It also provides a brief history of AI from 1943 to the present day and discusses components of AI programs like knowledge bases, control strategies, and inference mechanisms.
This document provides an overview of artificial intelligence (AI) including definitions of AI, different approaches to AI (strong/weak, applied, cognitive), goals of AI, the history of AI, and comparisons of human and artificial intelligence. Specifically:
1) AI is defined as the science and engineering of making intelligent machines, and involves building systems that think and act rationally.
2) The main approaches to AI are strong/weak, applied, and cognitive AI. Strong AI aims to build human-level intelligence while weak AI focuses on specific tasks.
3) The goals of AI include replicating human intelligence, solving complex problems, and enhancing human-computer interaction.
4) The history of AI
The document discusses artificial intelligence and how it works. It defines intelligence and AI, explaining that AI aims to make computers as intelligent as humans. It describes how AI uses artificial neurons and networks to function similarly to the human brain. Examples of AI applications are given, like expert systems used in various domains. The document also compares human and artificial intelligence, noting their differing strengths and weaknesses.
This document provides an overview of artificial intelligence and discusses key concepts in AI search. It begins by defining an intelligent agent and its interaction with the environment. It then discusses uninformed search strategies like breadth-first search and depth-first search. It also covers iterative deepening depth-first search, uniform-cost search, searching backwards from the goal, and bidirectional search. The document aims to introduce foundational AI concepts like state spaces, actions, search trees, and strategies for traversing the problem space in an attempt to find a solution.
The document provides information on various topics related to artificial intelligence including:
- Examples of intelligence such as solving puzzles, performing complex math problems quickly, and following rules.
- Definitions of AI from early researchers such as John McCarthy who coined the term, and descriptions of AI as the study of intelligent behavior in machines.
- Key areas of AI research and applications such as game playing, reasoning, learning, robotics, and machine learning.
- Approaches to problem solving in AI like state space search, knowledge representation, and using heuristics to guide searches.
The document outlines the objectives, outcomes, and learning outcomes of a course on artificial intelligence. The objectives include conceptualizing ideas and techniques for intelligent systems, understanding mechanisms of intelligent thought and action, and understanding advanced representation and search techniques. Outcomes include developing an understanding of AI building blocks, choosing appropriate problem solving methods, analyzing strengths and weaknesses of AI approaches, and designing models for reasoning with uncertainty. Learning outcomes include knowledge, intellectual skills, practical skills, and transferable skills in artificial intelligence.
The document provides an overview of an artificial intelligence course. It includes recommended books, topics to be covered like problem solving, knowledge representation, machine learning, and applications. The goals of AI are discussed as engineering and scientific. Example applications are presented, including game playing, natural language processing, expert systems, robotics and more. An introduction to search problems, knowledge-based systems, neural networks, and artificial life is given.
EELU AI lecture 1- fall 2022-2023 - Chapter 01- Introduction.pptDaliaMagdy12
This document provides an overview of the ITF308-Artificial Intelligence course for 2022-2023. The course will cover foundations of symbolic intelligent systems including agents, search, problem solving, learning, knowledge representation, and reasoning. Programming experience in C++ or Java is required. The textbook is Artificial Intelligence: A Modern Approach by Russell and Norvig. Grading will be based on assignments, attendance, quizzes, a midterm, and a final exam. The course aims to understand intelligent behavior and build intelligent agents/systems through topics like search algorithms, knowledge representation, learning, and reasoning.
1. Artificial intelligence is the study of computer systems that attempt to model and apply human intelligence. It involves simulating intelligent behavior in computers and is a branch of computer science.
2. Some applications of AI include robotics, expert systems, speech recognition, games, and handwriting recognition. The goals of AI are to create expert systems that exhibit intelligent behavior and implement human intelligence in machines.
3. There are two main types of AI: weak/narrow AI which focuses on specific tasks, and strong AI which aims to build machines that can think and perform tasks like humans. The key differences between human and machine intelligence are that humans have feelings, consciousness, and can be original while machines just perform tasks as programmed
Introduction to AI (Artificial Intelligence).amolakkumar45
The document discusses the concepts of intelligence and logical thinking. It defines intelligence as the ability to learn, understand, reason, analyze problems and use language. Logical thinking is described as applying reasoning to solve problems by considering information in a step-by-step sequence. Examples provided include playing chess, math problems, and scientific experiments. The document also discusses artificial intelligence as simulating human intelligence through machine programming to think and act like humans. The goal of AI is to automate tasks requiring human intelligence.
The document provides an overview of artificial intelligence (AI) including definitions, techniques, and challenges. It discusses how AI aims to make computers intelligent like humans by giving them abilities such as perception, reasoning, learning, and problem solving. Some key techniques mentioned are search, knowledge representation, and abstraction. The document also discusses the Turing Test as a proposed method for determining if a machine can think like a human. It provides examples of problems AI aims to solve such as game playing, commonsense reasoning, and perception.
Applied Artificial Intelligence Unit 1 Semester 3 MSc IT Part 2 Mumbai Univer...Madhav Mishra
The document discusses Applied Artificial Intelligence and covers 5 topics:
1) A review of the history and foundations of AI including key developments from 1950-1980.
2) Expert systems and their applications, including the phases of building an expert system.
3) The typical architecture of an expert system including the knowledge base, inference engine, and user interface.
4) How expert systems differ from traditional systems in their use of knowledge versus just data.
5) Various applications of AI in areas like business, engineering, manufacturing, and education.
This course covers the basic concepts of artificial intelligence including search, game playing, knowledge-based systems, planning, and machine learning. Students will learn AI principles and techniques to synthesize solutions to AI problems and critically evaluate alternatives. They will also learn to use Prolog and build simple AI systems. Students are expected to attend lectures, supplement with textbook reading, and use references to fully understand the material. The key topics covered include search, vision, planning, machine learning, knowledge representation, logic, expert systems, robotics, and natural language processing.
This document provides an introduction to the key concepts of artificial intelligence (AI). It defines AI as the science and engineering of making intelligent machines, especially intelligent computer programs. It discusses definitions of AI, intelligence, and intelligent behavior. It outlines the goals of AI as developing systems that think and act like humans or rationally. It describes common AI approaches such as cognitive science, laws of thought, the Turing test, and rational agents. It also discusses techniques used in AI systems, including describe and match, goal reduction, and biology-inspired techniques like neural networks and genetic algorithms. Finally, it mentions several branches and applications of AI.
This document provides an introduction to an artificial intelligence course. The course aims to give students knowledge and understanding of core AI concepts like search, game playing, planning and machine learning. Students will learn how to apply these concepts to construct simple AI systems using a declarative language. The document outlines several core areas of AI including knowledge representation, reasoning, planning, learning, and interacting with the environment. It also discusses the history of AI and provides examples of modern AI applications.
Artificial Intelligence is a way of making a computer, a computer-controlled robot, or a software think intelligently, in the similar manner the intelligent humans think
1. The document provides an introduction to the philosophy of artificial intelligence, discussing definitions of AI, the nature of human vs artificial intelligence, and different approaches to AI such as systems that think or act like humans and systems that think or act rationally.
2. Key aspects of AI discussed include machine learning, natural language processing, computer vision, robotics, and the differences between strong and weak AI.
3. The document also examines how AI aims to build intelligent machines that can perform tasks requiring human intelligence through techniques like problem solving, perception, reasoning, and learning.
This document is a seminar report on artificial intelligence submitted by Yukyhi Raj S.N. to partially fulfill requirements for a BCA degree. The report includes an introduction to AI, its history and applications. It discusses goals of AI like problem solving. It also examines the differences between computer and human intelligence and early milestones in the field like the Turing test. The report provides details on natural language processing, voice synthesis and recognition. It concludes that AI has helped make businesses more efficient by assisting with difficult tasks.
Artificial intelligence (AI) is a broad field that combines computer science, psychology, and philosophy with the goal of creating machines that can think like humans. AI aims to develop intelligent agents that can perceive their environment and take actions to maximize their success. The main fields of AI include machine vision, expert systems, and creating machines that can think rationally or act like humans. The goals of AI include solving complex problems, enhancing human and computer interactions, and developing the theory and practice of building intelligent machines.
We have designed & manufacture the Lubi Valves LBF series type of Butterfly Valves for General Utility Water applications as well as for HVAC applications.
The document discusses several topics related to artificial intelligence including definitions of intelligence and AI, approaches to AI like symbolic AI and biological AI, applications of AI such as expert systems and game playing, and techniques like the Turing test. It also provides a brief history of AI from 1943 to the present day and discusses components of AI programs like knowledge bases, control strategies, and inference mechanisms.
This document provides an overview of artificial intelligence (AI) including definitions of AI, different approaches to AI (strong/weak, applied, cognitive), goals of AI, the history of AI, and comparisons of human and artificial intelligence. Specifically:
1) AI is defined as the science and engineering of making intelligent machines, and involves building systems that think and act rationally.
2) The main approaches to AI are strong/weak, applied, and cognitive AI. Strong AI aims to build human-level intelligence while weak AI focuses on specific tasks.
3) The goals of AI include replicating human intelligence, solving complex problems, and enhancing human-computer interaction.
4) The history of AI
The document discusses artificial intelligence and how it works. It defines intelligence and AI, explaining that AI aims to make computers as intelligent as humans. It describes how AI uses artificial neurons and networks to function similarly to the human brain. Examples of AI applications are given, like expert systems used in various domains. The document also compares human and artificial intelligence, noting their differing strengths and weaknesses.
This document provides an overview of artificial intelligence and discusses key concepts in AI search. It begins by defining an intelligent agent and its interaction with the environment. It then discusses uninformed search strategies like breadth-first search and depth-first search. It also covers iterative deepening depth-first search, uniform-cost search, searching backwards from the goal, and bidirectional search. The document aims to introduce foundational AI concepts like state spaces, actions, search trees, and strategies for traversing the problem space in an attempt to find a solution.
The document provides information on various topics related to artificial intelligence including:
- Examples of intelligence such as solving puzzles, performing complex math problems quickly, and following rules.
- Definitions of AI from early researchers such as John McCarthy who coined the term, and descriptions of AI as the study of intelligent behavior in machines.
- Key areas of AI research and applications such as game playing, reasoning, learning, robotics, and machine learning.
- Approaches to problem solving in AI like state space search, knowledge representation, and using heuristics to guide searches.
The document outlines the objectives, outcomes, and learning outcomes of a course on artificial intelligence. The objectives include conceptualizing ideas and techniques for intelligent systems, understanding mechanisms of intelligent thought and action, and understanding advanced representation and search techniques. Outcomes include developing an understanding of AI building blocks, choosing appropriate problem solving methods, analyzing strengths and weaknesses of AI approaches, and designing models for reasoning with uncertainty. Learning outcomes include knowledge, intellectual skills, practical skills, and transferable skills in artificial intelligence.
The document provides an overview of an artificial intelligence course. It includes recommended books, topics to be covered like problem solving, knowledge representation, machine learning, and applications. The goals of AI are discussed as engineering and scientific. Example applications are presented, including game playing, natural language processing, expert systems, robotics and more. An introduction to search problems, knowledge-based systems, neural networks, and artificial life is given.
EELU AI lecture 1- fall 2022-2023 - Chapter 01- Introduction.pptDaliaMagdy12
This document provides an overview of the ITF308-Artificial Intelligence course for 2022-2023. The course will cover foundations of symbolic intelligent systems including agents, search, problem solving, learning, knowledge representation, and reasoning. Programming experience in C++ or Java is required. The textbook is Artificial Intelligence: A Modern Approach by Russell and Norvig. Grading will be based on assignments, attendance, quizzes, a midterm, and a final exam. The course aims to understand intelligent behavior and build intelligent agents/systems through topics like search algorithms, knowledge representation, learning, and reasoning.
1. Artificial intelligence is the study of computer systems that attempt to model and apply human intelligence. It involves simulating intelligent behavior in computers and is a branch of computer science.
2. Some applications of AI include robotics, expert systems, speech recognition, games, and handwriting recognition. The goals of AI are to create expert systems that exhibit intelligent behavior and implement human intelligence in machines.
3. There are two main types of AI: weak/narrow AI which focuses on specific tasks, and strong AI which aims to build machines that can think and perform tasks like humans. The key differences between human and machine intelligence are that humans have feelings, consciousness, and can be original while machines just perform tasks as programmed
Introduction to AI (Artificial Intelligence).amolakkumar45
The document discusses the concepts of intelligence and logical thinking. It defines intelligence as the ability to learn, understand, reason, analyze problems and use language. Logical thinking is described as applying reasoning to solve problems by considering information in a step-by-step sequence. Examples provided include playing chess, math problems, and scientific experiments. The document also discusses artificial intelligence as simulating human intelligence through machine programming to think and act like humans. The goal of AI is to automate tasks requiring human intelligence.
The document provides an overview of artificial intelligence (AI) including definitions, techniques, and challenges. It discusses how AI aims to make computers intelligent like humans by giving them abilities such as perception, reasoning, learning, and problem solving. Some key techniques mentioned are search, knowledge representation, and abstraction. The document also discusses the Turing Test as a proposed method for determining if a machine can think like a human. It provides examples of problems AI aims to solve such as game playing, commonsense reasoning, and perception.
Applied Artificial Intelligence Unit 1 Semester 3 MSc IT Part 2 Mumbai Univer...Madhav Mishra
The document discusses Applied Artificial Intelligence and covers 5 topics:
1) A review of the history and foundations of AI including key developments from 1950-1980.
2) Expert systems and their applications, including the phases of building an expert system.
3) The typical architecture of an expert system including the knowledge base, inference engine, and user interface.
4) How expert systems differ from traditional systems in their use of knowledge versus just data.
5) Various applications of AI in areas like business, engineering, manufacturing, and education.
This course covers the basic concepts of artificial intelligence including search, game playing, knowledge-based systems, planning, and machine learning. Students will learn AI principles and techniques to synthesize solutions to AI problems and critically evaluate alternatives. They will also learn to use Prolog and build simple AI systems. Students are expected to attend lectures, supplement with textbook reading, and use references to fully understand the material. The key topics covered include search, vision, planning, machine learning, knowledge representation, logic, expert systems, robotics, and natural language processing.
This document provides an introduction to the key concepts of artificial intelligence (AI). It defines AI as the science and engineering of making intelligent machines, especially intelligent computer programs. It discusses definitions of AI, intelligence, and intelligent behavior. It outlines the goals of AI as developing systems that think and act like humans or rationally. It describes common AI approaches such as cognitive science, laws of thought, the Turing test, and rational agents. It also discusses techniques used in AI systems, including describe and match, goal reduction, and biology-inspired techniques like neural networks and genetic algorithms. Finally, it mentions several branches and applications of AI.
This document provides an introduction to an artificial intelligence course. The course aims to give students knowledge and understanding of core AI concepts like search, game playing, planning and machine learning. Students will learn how to apply these concepts to construct simple AI systems using a declarative language. The document outlines several core areas of AI including knowledge representation, reasoning, planning, learning, and interacting with the environment. It also discusses the history of AI and provides examples of modern AI applications.
Artificial Intelligence is a way of making a computer, a computer-controlled robot, or a software think intelligently, in the similar manner the intelligent humans think
1. The document provides an introduction to the philosophy of artificial intelligence, discussing definitions of AI, the nature of human vs artificial intelligence, and different approaches to AI such as systems that think or act like humans and systems that think or act rationally.
2. Key aspects of AI discussed include machine learning, natural language processing, computer vision, robotics, and the differences between strong and weak AI.
3. The document also examines how AI aims to build intelligent machines that can perform tasks requiring human intelligence through techniques like problem solving, perception, reasoning, and learning.
This document is a seminar report on artificial intelligence submitted by Yukyhi Raj S.N. to partially fulfill requirements for a BCA degree. The report includes an introduction to AI, its history and applications. It discusses goals of AI like problem solving. It also examines the differences between computer and human intelligence and early milestones in the field like the Turing test. The report provides details on natural language processing, voice synthesis and recognition. It concludes that AI has helped make businesses more efficient by assisting with difficult tasks.
Artificial intelligence (AI) is a broad field that combines computer science, psychology, and philosophy with the goal of creating machines that can think like humans. AI aims to develop intelligent agents that can perceive their environment and take actions to maximize their success. The main fields of AI include machine vision, expert systems, and creating machines that can think rationally or act like humans. The goals of AI include solving complex problems, enhancing human and computer interactions, and developing the theory and practice of building intelligent machines.
Similar to AN INTRODUCTION OF AI & SEARCHING TECHIQUES (20)
We have designed & manufacture the Lubi Valves LBF series type of Butterfly Valves for General Utility Water applications as well as for HVAC applications.
Covid Management System Project Report.pdfKamal Acharya
CoVID-19 sprang up in Wuhan China in November 2019 and was declared a pandemic by the in January 2020 World Health Organization (WHO). Like the Spanish flu of 1918 that claimed millions of lives, the COVID-19 has caused the demise of thousands with China, Italy, Spain, USA and India having the highest statistics on infection and mortality rates. Regardless of existing sophisticated technologies and medical science, the spread has continued to surge high. With this COVID-19 Management System, organizations can respond virtually to the COVID-19 pandemic and protect, educate and care for citizens in the community in a quick and effective manner. This comprehensive solution not only helps in containing the virus but also proactively empowers both citizens and care providers to minimize the spread of the virus through targeted strategies and education.
Better Builder Magazine brings together premium product manufactures and leading builders to create better differentiated homes and buildings that use less energy, save water and reduce our impact on the environment. The magazine is published four times a year.
An In-Depth Exploration of Natural Language Processing: Evolution, Applicatio...DharmaBanothu
Natural language processing (NLP) has
recently garnered significant interest for the
computational representation and analysis of human
language. Its applications span multiple domains such
as machine translation, email spam detection,
information extraction, summarization, healthcare,
and question answering. This paper first delineates
four phases by examining various levels of NLP and
components of Natural Language Generation,
followed by a review of the history and progression of
NLP. Subsequently, we delve into the current state of
the art by presenting diverse NLP applications,
contemporary trends, and challenges. Finally, we
discuss some available datasets, models, and
evaluation metrics in NLP.
Impartiality as per ISO /IEC 17025:2017 StandardMuhammadJazib15
This document provides basic guidelines for imparitallity requirement of ISO 17025. It defines in detial how it is met and wiudhwdih jdhsjdhwudjwkdbjwkdddddddddddkkkkkkkkkkkkkkkkkkkkkkkwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwioiiiiiiiiiiiii uwwwwwwwwwwwwwwwwhe wiqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq gbbbbbbbbbbbbb owdjjjjjjjjjjjjjjjjjjjj widhi owqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq uwdhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhwqiiiiiiiiiiiiiiiiiiiiiiiiiiiiw0pooooojjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj whhhhhhhhhhh wheeeeeeee wihieiiiiii wihe
e qqqqqqqqqqeuwiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiqw dddddddddd cccccccccccccccv s w c r
cdf cb bicbsad ishd d qwkbdwiur e wetwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww w
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffw
uuuuhhhhhhhhhhhhhhhhhhhhhhhhe qiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii iqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc ccccccccccccccccccccccccccccccccccc bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbu uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuum
m
m mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm m i
g i dijsd sjdnsjd ndjajsdnnsa adjdnawddddddddddddd uw
1. Prepared By- Dr Shikha Pandey
1
Bhilai Institute of Technology, Durg
DEPARTMENT OF COMPUTER SCIENCE &
ENGINEERING
Artificial Intelligence
UNIT I: Overview & Search Techniques
2. Syllabus :- UNIT 1
• Introduction to AI
• Well Defined Problem representation and solving
• State space search
• Blind search: Depth first search, Breadth first search
• Informed search: Heuristic function, Hill
climbing search, Best first search, A* & AO*Search
• Game tree, Evaluation function, Mini-Max search,
Alpha-beta pruning.
Prepared By- Dr Shikha Pandey 2
3. What is Artificial intelligence?
• It is the science and engineering of
making intelligent machines, especially
intelligent computer programs. It is related
to the similar task of using computers to
understand human intelligence.
• ―Intelligence implies that a machine must
be able to adapt to new situations‖
Prepared By- Dr Shikha Pandey 3
4. – Ability to learn
– Ability to think abstractly
– To solve problems
– To percieve relationship
– To adjust to one’s environment
– To profit by experience
Prepared By- Dr Shikha Pandey 4
5. Definition of AI
• ―John McCarthy ― gives in 1956 ―Developing computer
programs to solve complex problems by applications of
processes that are analogous to human reasoning
processes
• ―Ai is the branch of computer science that is concerned
with the automation of intelligent behavior.‖
• AI is the study of how to make computers do things
which, at the moment, people do better.
Prepared By- Dr Shikha Pandey 5
6. • the intelligent is behavior , when we call this man
Intelligent, we mean by that (he have the ability to Think,
understand, learn and make decision) so if we a
combine this word with system to become (Intelligent
System(IS))we mean by that , the system able to (Think,
understand, learn and make decision) in other word :
Prepared By- Dr Shikha Pandey 6
7. AI Tree
Prepared By- Dr Shikha Pandey 7
Fruits: Applications
Branches: Expert Systems, Natural
Language processing, Speech
Understanding, Robotics and Sensory
Systems, Computer Vision, Neural
Computing, Fuzzy Logic, GA
Roots: Psychology, Philosophy,
Electrical Engg, Management Science,
Computer science, Linguistics
8. Difference between AI & conventional S/W
Features AI programs Conventional
s/w
Processing type Symbolic type Numeric
Technique used Heuristic search Algorithm search
Solutions steps Indefinite definite
Answers sought Satisfactory Optimal
Knowledge Imprecise Precise
Modification Frequent Rare
Involves Large knowledge Large DB
Process Inferential repetitive
Prepared By- Dr Shikha Pandey 8
9. Areas of Artificial Intelligence
• . Perception
– Machine vision
– Speech understanding
– Touch ( tactile or haptic) sensation
• Robotics
• Natural Language Processing
– Natural Language Understanding
– Speech Understanding
– Language Generation
– Machine Translation
• Planning
• Expert Systems
• Machine Learning
• Theorem Proving
• Symbolic Mathematics
• Game Playing
Prepared By- Dr Shikha Pandey 9
10. Advantages of Artificial Intelligence
• High Accuracy with less errors: AI machines or systems are prone to less errors
and high accuracy as it takes decisions as per pre-experience or information.
• High-Speed: AI systems can be of very high-speed and fast-decision making,
because of that AI systems can beat a chess champion in the Chess game.
• High reliability: AI machines are highly reliable and can perform the same action
multiple times with high accuracy.
• Useful for risky areas: AI machines can be helpful in situations such as defusing a
bomb, exploring the ocean floor, where to employ a human can be risky.
• Digital Assistant: AI can be very useful to provide digital assistant to the users such
as AI technology is currently used by various E-commerce websites to show the
products as per customer requirement.
• Useful as a public utility: AI can be very useful for public utilities such as a self-
driving car which can make our journey safer and hassle-free, facial recognition for
security purpose, Natural language processing to communicate with the human in
human-language, etc.
•
Prepared By- Dr Shikha Pandey 10
13. Disadvantages of Artificial Intelligence
• High Cost: The hardware and software requirement of AI is very
costly as it requires lots of maintenance to meet current world
requirements.
• Can't think out of the box: Even we are making smarter machines
with AI, but still they cannot work out of the box, as the robot will
only do that work for which they are trained, or programmed.
• No feelings and emotions: AI machines can be an outstanding
performer, but still it does not have the feeling so it cannot make any
kind of emotional attachment with human, and may sometime be
harmful for users if the proper care is not taken.
• Increase dependency on machines: With the increment of
technology, people are getting more dependent on devices and
hence they are losing their mental capabilities.
• No Original Creativity: As humans are so creative and can imagine
some new ideas but still AI machines cannot beat this power of
human intelligence and cannot be creative and imaginative.
• Prepared By- Dr Shikha Pandey 13
14. Difference Between Rational and Irrational/Non-rational
Reasoning/Thinking
Rational Irrational/Non-rational
•Rational thinking can be defined as a
thinking process which is based on
reason and logic.
• It can be defined as a thinking
process where the individual
completely disregards reason and
logic in favour of emotion.
• based on Power of Emotions:
• Rational thinking is driven by
experience and facts.
• Rational thinking allows the person to
succeed.
•Based on power of brain
• Irrational thinking is driven by
emotion.
• Irrational thinking works as a barrier
which hinders the success of the
individual.
Prepared By- Dr Shikha Pandey 14
15. How problems can be represented in AI
• Before a solution can be found the prime
condition is that the problem must be very
precisely defined.
• So to build a system to solve a particular
problem, we need to do four things.
Prepared By- Dr Shikha Pandey 15
16. How problems can be represented in AI
1. Define the problem precisely. like what is
initial situation, what will be the final,
acceptable solutions.
2. Analyze the problem. various possible
techniques for solving the problem.
3. Isolate and represent the task knowledge
that is necessary to solve the problem.
4. Choose the best problem solving
technique and apply it
Prepared By- Dr Shikha Pandey 16
17. The most common methods of problem
representation in AI
State space representation
―A set of all possible states for a given
problem is known as the state space of the
problem.‖
or
―A state space represents a problem in
terms of states and operators that change
states.‖
Prepared By- Dr Shikha Pandey 17
18. A problem space consists of
1. Precondition/An initial state
2. Post condition/Final states
3. Actions
4. Total Cost
Prepared By- Dr Shikha Pandey 18
20. State Space Search: Summary
1. Define a state space that contains all the
possible configurations of the relevant
objects.
2. Specify the initial states.
3. Specify the goal states.
4. Specify a set of rules:
- What are unstated assumptions?
- How general should the rules be?
- How much knowledge for solutions should be in the
rules? Prepared By- Dr Shikha Pandey 20
21. For example
If one wants to make a cup of coffee.
What one have to do:
analyze the problem
check necessary ingredients are available or not.
if they are available.
Prepared By- Dr Shikha Pandey 21
23. Water jug problem?
• States– amount of water in both jugs.
• Actions—Empty large/small, pour from large/small
• Goal—specified amount of water in both jug
• Path cost—total no of actions applied
Prepared By- Dr Shikha Pandey 23
24. State Space Search: Playing
Chess
• State space is a set of legal positions.
• Starting at the initial state.
• Using the set of rules to move from one
state to another.
• Attempting to end up in a goal state.
Prepared By- Dr Shikha Pandey 24
25. State Space Search: Water Jug Problem
―You are given two jugs, a 4-litre one and a 3-litre
one. Neither has any measuring markers on it.
There is a pump that can be used to fill the jugs
with water. How can you get exactly 2 litres of
water into 4-litre jug.‖
Prepared By- Dr Shikha Pandey 25
26. State Space Search: Water Jug
Problem
• State: (x, y)
x = 0, 1, 2, 3, or 4 y = 0, 1, 2, 3
• Start state: (0, 0).
• Goal state: (2, n) for any n.
• Attempting to end up in a goal state.
Prepared By- Dr Shikha Pandey 26
27. State Space Search: Water Jug
Problem
1. (x, y) (4, y)
if x 4
2. (x, y) (x, 3)
if y 3
3. (x, y) (x - d, y)
if x 0
4. (x, y) (x, y - d)
if y 0
Prepared By- Dr Shikha Pandey 27
28. State Space Search: Water Jug
Problem
5. (x, y) (0, y)
if x 0
6. (x, y) (x, 0)
if y 0
7. (x, y) (4, y - (4 - x))
if x y 4, y 0
8. (x, y) (x - (3 - y), 3)
if x y 3, x 0
Prepared By- Dr Shikha Pandey 28
29. State Space Search: Water Jug
Problem
9. (x, y) (x y, 0)
if x y 4, y 0
10. (x, y) (0, x y)
if x y 3, x 0
11. (0, 2) (2, 0)
12. (2, y) (0, y)
Prepared By- Dr Shikha Pandey 29
30. State Space Search: Water Jug
Problem
1. current state = (0, 0)
2. Loop until reaching the goal state (2, 0)
- Apply a rule whose left side matches the current state
- Set the new current state to be the resulting state
(0, 0)
(0, 3)
(3, 0)
(3, 3)
(4, 2) Prepared By- Dr Shikha Pandey 30
31. State Space Search: Water Jug
Problem
The role of the condition in the left side of
a rule
restrict the application of the rule
more efficient
1. (x, y) (4, y)
if x 4
2. (x, y) (x, 3)
if y 3 Prepared By- Dr Shikha Pandey 31
32. Find a driving route from city A to city B
• States– location specified by city .
• Actions– driving along the roads between cities
• Goal— city B
• Path cost—total distance or expected travel time.
Prepared By- Dr Shikha Pandey 32
33. • Example: Consider a 4-puzzle
problem, where in a 4-cell board
there are 3 cells filled with digits
and 1 blank cell. The initial state of
the game represents a particular
orientation of the digits in the cells
and the final state to be achieved
is another orientation supplied to
the game player. The problem of
the game is to reach from the
given initial state to the goal (final)
state, if possible, with a minimum
of moves. Let the initial and the
final state be as shown in figures
1(a) and (b) respectively.
Prepared By- Dr Shikha Pandey 33
We now define two operations, blank-up
(BU) / blank-down (BD) and blank-left (BL)
/ blank-right (BR), and the state-space
(tree) for the problem is presented below
using these operators. The algorithm for
the above kind of problems is
straightforward. It consists of three steps,
described by steps 1, 2(a) and 2(b) below.
35. Pegs and Disks problem
• Consider the following problem. We have
3 pegs and 3 disks.
• Operators: one may move the topmost
disk on any needle to the topmost position
to any other needle
• In the goal state all the pegs are in the
needle B as shown in the figure below.
Prepared By- Dr Shikha Pandey 35
37. • Now we will describe a sequence of actions that
can be applied on the initial state.
• Step 1: Move A → C
• Step 2: Move A → B
• Step 3: Move A → C
• Step 4: Move B→ A
• Step 5: Move C → B
• Step 6: Move A → B
• Step 7: Move C→ B
Prepared By- Dr Shikha Pandey 37
38. 8 queens problem
• The problem is to place 8 queens on a
chessboard so that no two queens are in
the same row, column or diagonal
Prepared By- Dr Shikha Pandey 38
41. N queens problem formulation
• States: Any arrangement of 0 to 8 queens
on the board
• Initial state: 0 queens on the board
• Successor function: Add a queen in any
square
• Goal test: 8 queens on the board, none are
attacked
Prepared By- Dr Shikha Pandey 41
44. Missionaries & Cannibals Problem
• Missionaries & Cannibals problem: 3 missionaries & 3
cannibals are on one side of the river. 1 boat carries 2.
Missionaries must never be outnumbered by cannibals. Give a
plan for all to cross the river. State: <M, C, B>
• M: no of missionaries on the left bank
• C: no of cannibals on the left bank
• B: position of the boat: L or R
• Initial state: <3, 3, L>
• Goal state: <0, 0, R>
• Operators: <M,C> ► M: No of missionaries on the boat
• ► C: No of cannibals on the boat
• Valid operators: <1,0> <2,0>, <1,1>, <0,1> <0,2>
Prepared By- Dr Shikha Pandey 44
45. Homework
Assignment:
1: Explain the history of AI
2: Analyse each of them and solve using AI
problem solving techniques
(a) Missionaries and cannibals
(b) 8-puzzle
Prepared By- Dr Shikha Pandey 45
46. What is a Production System?
• A PS is a computer program typically
used to provide some form of AI, which
consists a set of rules about behavior.
• A PS provides the mechanism necessary
to execute productions in order to achieve
some goal for the system.
• Used as the basis for many rule-based
expert systems
Prepared By- Dr Shikha Pandey 46
47. What is a Production System?
• A production system consists of four
basic components:
1. A set of rules of the form Ci ® Ai or
C1, C2, … Cn => A1 A2 …Am
Left hand side (LHS) Right hand side (RHS)
Conditions/antecedents Conclusion/consequence
where Ci is the condition part and Ai is the action
part.
Prepared By- Dr Shikha Pandey 47
48. 1. The condition determines when a given rule is applied, and the
action determines what happens when it is applied.
2. knowledge databases/ working memory that contain whatever
information is relevant for the given problem & also maintains data
about current state or knowledge. Some parts of the database may
be permanent, while others may temporary and only exist during the
solution of the current problem. The information in the databases
may be structured in any appropriate manner.
3. A control strategy that determines the order in which the rules are
applied to the database, and provides a way of resolving any
conflicts that can arise when several rules match at once.
4. A rule applier which is the computational system that implements
the control strategy and applies the rules.
Prepared By- Dr Shikha Pandey 48
49. Production rule for water jug problem
1. (x, y) (4, y), If x < 4 fill the 4-gallon jug.
2. (x, y) (x,3), If y < 3 fill the 3-gallon jug.
3. (x, y) (x- d , y), If x > 0 pour some water out of the 4-gallon jug
4. (x, y) (x, y - d), If y > 0 pour some water out of the 4-gallon jug
5. (x, y) (0, y) If x > 0 empty the 4-gallon jug.
6. (x, y) (x, 0), If y > 0 empty the 3-gallon jug.
7. (x, y) (4, y – (4 – x) ), if x + y >= 4 & y > 0 pour water from the
3-gallon jug into the 4-gallon jug
until the 4-gallon jug is full.
8. (x, y) (x – (3 – y), 3 ), if x + y >= 4 & y > 0 pour water from the
4-gallon jug into the 3-gallon jug until
the 3-gallon jug is full.
Prepared By- Dr Shikha Pandey 49
50. Production rule for water jug problem
9. (x, y) (x + y, 0 ), if x + y <= 4 & y > 0 pour all the
water from the 3-gallon jug
into the 4-gallon jug.
10. (x, y) (0, x + y), if x + y <= 3 & x > 0 pour all the
water from the 4-gallon
jug into the 3-gallon jug.
11. (0, 2) (2, 0), pour 2-g from 3-g to 4-g
12. (2, y) (0, y)
Prepared By- Dr Shikha Pandey 50
51. One solution of water jug problem
Rule applied 4-Gallon 3-Gallon
Initial state 0 0
Rule 2 0 3
Rule 9 3 0
Rule 2 3 3
Rule 7 4 2
Rule 5 or 12 0 2
Rule 9 or 11 2 0
Prepared By- Dr Shikha Pandey 51
52. Problem of Conflict Resolution
• When there are more then one rule that
can be fired in a situation and the rule
interpreter can not be decide which is to
be fired, what is the order of triggering and
whether to apply it .
Prepared By- Dr Shikha Pandey 52
53. Some Resolution Strategies
• Perform the first. the system chooses the first rule that
matches.
• Sequencing techniques. adopt the rules in the
sequence they are.
• Perform the most specific. if there are two matching
rules and one rule is more specific than the other, activate the most
specific.
• Most recent policy. chooses newly added rule.
Prepared By- Dr Shikha Pandey 53
55. • Search process of locating a solution to a
problem by any method in a search tree or
search space until a goal node is found.
• Search Space A set of possible permutation
that can be examined by any search method in
order to find solution.
• Search Tree A tree that is used to represent a
search problem and is examined by search
method to search for a solution.
Prepared By- Dr Shikha Pandey 55
56. To do a search process the following are
needed :--
The initial state description.
A set of legal operators.
The final or goal state.
Prepared By- Dr Shikha Pandey 56
57. Search Tree – Terminology
• Root Node: The node from which the search starts.
• Leaf Node: A node in the search tree having no children.
• Ancestor/Descendant: X is an ancestor of Y is either X is Y’s parent
or X is an ancestor of the parent of Y. If S is an ancestor of Y, Y is
said to be a descendant of X.
• Branching factor: the maximum number of children of a non-leaf
node in the search tree
• Path: A path in the search tree is a complete path if it begins with
the start node and ends with a goal node. Otherwise it is a partial
path.
• We also need to introduce some data structures that will be used in
the search algorithms.
Prepared By- Dr Shikha Pandey 57
60. Evaluating Search strategies
• We will look at various search strategies
and evaluate their problem solving
performance. What are the characteristics
of the different search algorithms and what
is their efficiency? We will look at the
following three factors to measure this.
Prepared By- Dr Shikha Pandey 60
61. Search Strategy Evaluation
1. Completeness: We will say a search method is ―complete‖
if it has both the following properties:
if a goal exists then the search will always find it
if no goal exists then the search will eventually finish and be able
to say that no goal exists
2. Time complexity: how long does it take?( number of nodes
expanded)
3. Space complexity: how much memory is needed?
4. Optimality: is a high-quality solution found? Does the solution have
low cost or the minimal cost? What is the search cost associated
with the time and memory required to find a solution?
Prepared By- Dr Shikha Pandey 61
62. Types of Search
• Uninformed or blind or Brute force search
or Exhaustive Search
– No information about the number of steps
– No information about the path cost
– blind search or uninformed search that does
not use any extra information about the
problem domain.
• Informed or heuristic search
– Information about possible path costs or
number of steps is used
Prepared By- Dr Shikha Pandey 62
63. Uninformed Search
Breadth-first search
• Root node is expanded
first
• All nodes at depth d in the
search tree are expanded
before the nodes at depth
d+1
• Implemented by putting all
the newly generated
nodes at the end of the
queue
Prepared By- Dr Shikha Pandey 63
s
1 2
3 4
7 8 9 10 11 12 13 14
5 6
65. Algorithm of BFS
Step 1: put the initial node on a list S.
Step 2 : if ( S is empty) or (S = goal) terminate
search.
Step 3 : remove the first node from S. call this
node a.
Step 4 : if (a = goal) terminate search with
success.
Step 5 :Else if node a has successor, generate all
of them and add them at the tail of S.
Step 6 : go to to step 2.
Prepared By- Dr Shikha Pandey 65
66. A
C D E F
B
G H I J K L M N O P
Q R S T U V W X Y Z
The example node set
Initial state
Goal state
A
L
Press space to see a BFS of the example node set
Prepared By- Dr Shikha Pandey 66
67. A
C D E F
B
G H I J K L
Q R S T U
A
B C D
We begin with our initial state: the node
labeled A. Press space to continue
This node is then expanded to reveal
further (unexpanded) nodes. Press space
Node A is removed from the queue. Each
revealed node is added to the END of the
queue. Press space to continue the search.
The search then moves to the first node
in the queue. Press space to continue.
Node B is expanded then removed from the
queue. The revealed nodes are added to the
END of the queue. Press space.
Size of Queue: 0
Nodes expanded: 0 Current Action: Current level: n/a
Queue: Empty
Queue: A
Size of Queue: 1
Nodes expanded: 1
Queue: B, C, D, E, F
Press space to begin the search
Size of Queue: 5
Current level: 0
Current Action: Expanding
Queue: C, D, E, F, G, H
Size of Queue: 6
Nodes expanded: 2 Current level: 1
We then backtrack to expand node C,
and the process continues. Press space
Current Action: Backtracking Current level: 0
Current level: 1
Queue: D, E, F, G, H, I, J
Size of Queue: 7
Nodes expanded: 3 Current Action: Expanding
Current Action: Backtracking Current level: 0
Current level: 1
Queue: E, F, G, H, I, J, K, L
Size of Queue: 8
Nodes expanded: 4 Current Action: Expanding
Current Action: Backtracking Current level: 0
Current level: 1
Current Action: Expanding
N
M
Queue: F, G, H, I, J, K, L, M, N
Size of Queue: 9
Nodes expanded: 5
E
Current Action: Backtracking Current level: 0
Current Action: Expanding Current level: 1
O P
Queue: G, H, I, J, K, L, M, N, O, P
Size of Queue: 10
Nodes expanded: 6
F
Current Action: Backtracking Current level: 0
Current level: 1
Current level: 2
Current Action: Expanding
Queue: H, I, J, K, L, M, N, O, P, Q
Nodes expanded: 7
G
Current Action: Backtracking Current level: 1
Current Action: Expanding
Queue: I, J, K, L, M, N, O, P, Q, R
Nodes expanded: 8
H
Current Action: Backtracking Current level: 2
Current level: 1
Current level: 0
Current level: 1
Current level: 2
Current Action: Expanding
Queue: J, K, L, M, N, O, P, Q, R, S
Nodes expanded: 9
I
Current Action: Backtracking Current level: 1
Current level: 2
Current Action: Expanding
Queue: K, L, M, N, O, P, Q, R, S, T
Nodes expanded: 10
J
Current Action: Backtracking Current level: 1
Current level: 0
Current level: 1
Current level: 2
Current Action: Expanding
Queue: L, M, N, O, P, Q, R, S, T, U
Nodes expanded: 11
K
Current Action: Backtracking Current level: 1
L
L
L
L
Node L is located and the search returns
a solution. Press space to end.
FINISHED SEARCH
Queue: Empty
Size of Queue: 0
Current level: 2
BREADTH-FIRST SEARCH PATTERN
L
Press space to continue the search
Press space to continue the search
Press space to continue the search
Press space to continue the search
Press space to continue the search
Press space to continue the search
Press space to continue the search
Press space to continue the search
Press space to continue the search
Prepared By- Dr Shikha Pandey 67
68. Time Complexity :
1 + b + b2 + b3 +…+……bd.
Hence Time complexity = O (bd)
Space Complexity :
1 + b + b2 + b3 +…+……bd.
Hence Time complexity = O (bd)
Prepared By- Dr Shikha Pandey 68
69. Uninformed Search
Breadth-first search
• Breadth-first search merits
– Complete: If there is a solution, it will be found
– Optimal: Finds the nearest goal state
• Breadth-first search problem:
• Time complexity
• Memory intensive
• Remembers all unwanted nodes
Prepared By- Dr Shikha Pandey 69
70. show how breadth first search works on this graph.
Prepared By- Dr Shikha Pandey 70
71. • Breadth first search is:
• Complete. : The algorithm is optimal (i.e., admissible) if all
operators have the same cost. Otherwise, breadth first search finds
a solution with the shortest path length.
• The algorithm has exponential time and space complexity. Suppose
the search tree can be modeled as a b-ary tree as shown in Figure
3. Then the time and space complexity of the algorithm is O(bd)
where d is the depth of the solution and b is the branching factor
(i.e., number of children) at each node.
• A complete search tree of depth d where each non-leaf node has b
children, has a total of 1 + b + b2 + ... + bd = (b(d+1) - 1)/(b-1) nodes
Prepared By- Dr Shikha Pandey 71
72. Uninformed Search
Depth-first search
• Always expands one of
the node at the deepest
level of the tree
• Only returns when the
search hits a dead end
• Implemented by putting
the newly generated
nodes at the front of the
queue
Prepared By- Dr Shikha Pandey 72
s
1 2
3 4
5 6 7 8 11 12 13 14
9 10
74. Algorithm of DFS
Step 1: put the initial node on a list S.
Step 2 : if ( S is empty) or (S = goal) terminate
search.
Step 3 : remove the first node from S. call this
node a.
Step 4 : if (a = goal) terminate search with
success.
Step 5 :Else if node a has successor, generate all
of them and add them at the beginning of
S.
Step 6 : go to to step 2.
Prepared By- Dr Shikha Pandey 74
75. Time Complexity :
1 + b + b2 + b3 +…+……bd.
Hence Time complexity = O (bd)
Space Complexity :
Hence Time complexity = O (d)
Prepared By- Dr Shikha Pandey 75
76. Uninformed Search
Depth-first search
• Depth-first search merits
– Modest memory requirements: only the
current path from the root to the leaf node
needs to be stored.
– Time complexity
• With many solutions, depth-first search is often
faster than breadth-first search, but the worst
case is still O (bm)
Prepared By- Dr Shikha Pandey 76
78. ―It is defined as a method that provide a
better guess about the correct choice to
make at any junction that would be
achieved by random guessing.‖ OR
―It is defined as a method or as a rule or as
a trick. it is a piece of information that is
used to make search or another problem
solving method, more effective and more
efficient.‖
Prepared By- Dr Shikha Pandey 78
79. A heuristic is a method that
• Might not always find the best solution.
• But is guaranteed to find a good solution in
reasonable time.
• Heuristics are approximation used to minimize
the search process
• Useful in solving tough problems which
-- could not be solved any other way.
-- solutions take an infinite time or very long
time to compute.
Prepared By- Dr Shikha Pandey 79
80. • Heuristic function : a function that estimate
the value of a state, It is an approximation
used to minimize the search process .
• Heuristic Knowledge : knowledge of
approaches that are likely to work or of
properties that are likely to be true (but not
guaranteed).
Prepared By- Dr Shikha Pandey 80
81. Example of Heuristic Function
• A heuristic function at a node n is an estimate of the
optimum cost from the current node to a goal. It is
denoted by h(n).
h(n) = estimated cost of the cheapest path from node n to a
goal node
Example 1: We want a path from Kolkata to Guwahati
• Heuristic for Guwahati may be straight-line distance
between Kolkata and Guwahati
• h(Kolkata) = euclideanDistance(Kolkata, Guwahati)
Example 2: 8-puzzle: Misplaced Tiles Heuristics is the
number of tiles out of place.
Prepared By- Dr Shikha Pandey 81
83. • The first picture shows the current state n, and the
second picture the goal state.
• h(n) = 5
• because the tiles 2, 8, 1, 6 and 7 are out of place.
• Manhattan Distance Heuristic: Another heuristic for 8-
puzzle is the Manhattan distance heuristic. This heuristic
sums the distance that the tiles are out of place. The
distance of a tile is measured by the sum of the
differences in the x-positions and the y-positions.
• For the above example, using the Manhattan distance
heuristic,
• h(n) = 1 + 1 + 0 + 0 + 0 + 1 + 1 + 1 + 1 = 6
Prepared By- Dr Shikha Pandey 83
84. Hill Climbing Algorithm
• Hill climbing is a graph search algorithm where the current path is extended
with a successor node which is closer to the solution than the end of the
current path.
• In simple hill climbing, the first closer node is chosen whereas in steepest
ascent hill climbing all successors are compared and the closest to the
solution is chosen.
• Both forms fail if there is no closer node. This may happen if there are local
maxima in the search space which are not solutions. Steepest ascent hill
climbing is similar to best first search but the latter tries all possible
extensions of the current path in order whereas steepest ascent only tries
one.
• Hill climbing is sometimes called greedy local search because it grabs a
good neighbor state without thinking ahead about where to go next.
• Hill climbing often makes very rapid progress towards a solution, because it
is usually quite easy to improve a bad state. Unfortunately, hill climbing
often gets stuck for the following reasons:
Prepared By- Dr Shikha Pandey 84
85. 1. Local Maxima:
A local maximum is a peak that is higher than each of its
neighboring states, but lower than the global maximum.
Hill-climbing algorithms that reach the vicinity of a local
maximum will be drawn upwards towards the peak, but
will then be stuck with nowhere else to go.
2. Ridges:
Ridges result in a sequence of local maxima that is very
difficult for greedy algorithms to navigate.
Prepared By- Dr Shikha Pandey 85
86. 3. Plateaux:
A plateau is an area of the state space landscape where the evaluation
function is flat. It can be a flat local maximum, from which no uphill
exit exists, or from which it is possible to make progress.
Hill climbing operate on complete-state formulations, keeping only a
small number of nodes in memory
Hill climbing is used widely in artificial intelligence fields, for reaching a
goal state from a starting node. Choice of next node/ starting node
can be varied to give a list of related algorithms.
The problem with hill climbing is that it may find only local maxima.
Unless the heuristic is good / smooth, it doesn’t reach global
maxima.
Prepared By- Dr Shikha Pandey 86
87. Best first search
• A combination of DFS & BFS.
• DFS is good because a solution can be
found without computing all nodes and
BFS is good because it doesn’t get
trapped in dead ends.
• The best first search allows us to switch
between paths going the benefit of both
approaches.
Prepared By- Dr Shikha Pandey 87
88. How it works
• The algorithm maintains two list, one containing
a list of candidate yet to explore -- OPEN
• One containing a list of visited node – CLOSED
• Since all unvisited successor nodes of every
visited node are included in the OPEN list.
• It takes the advantage s of both DFS and
BrFS.—faster.
Prepared By- Dr Shikha Pandey 88
89. Prepared By- Dr Shikha Pandey 89
S
A
B
C
D
E
F
G
H
I
J
K
L
M
3
6
5
9
8
12
14
7
5
6
1
Q
2
90. Ste
p
Node
being
expan
ded
Children Available
Node
Node
chosen
1 S (A:3)(B:6)(c:5) (A:3)(B:6)(c:5) (A;3)
2 A (D:9)(E:8) (B:6)(c:5) (D:9)(E:8) (C:5)
3 C (H:7) (B:6) (D:9) (E:8) (H:7) (B:6)
4 B (E:12) (G:14) (E:12) (G:14) (D:9) (E:8) (H:7) (H:7)
5 H (I;5) (J:6) (E:12) (G:14) (D:9) (E:8) (I;5)
(J:6)
(I:5)
6 I K L M All L
Prepared By- Dr Shikha Pandey 90
91. A * algorithm
• This algorithm was given by hart Nilsson &
Rafael in 1968.
• A* is a best first search algorithm with
f(n) = g(n) + h(n)
Where
g(n) = sum of edge costs from start to n
h(n) = estimate of lowest cost path from n to goal
• f(n) = actual distanance so far + estimated
distance remaining
Prepared By- Dr Shikha Pandey 91
93. A* SEARCH TREE
Press space to begin the search
140
80
99
In terms of a search tree we could represent this as follows ....
5
The goal state is achieved.
In relation to path cost, A* has found
the optimal route with 5 expansions.
Press space to end.
S.
0+253
=253
P
177+98
=275
A
140+366
=506
F
99+178
=277
R
80+193
=273
B
310+0
=310
Maths:
“g + h = f”
2 3
4
1
B
278+0
=278
C
226+160
=386
C
315+160
=475
138
101
211
146
97
Prepared By- Dr Shikha Pandey 93
96. Memory Usage of A*
• We store the tree in order to
– to return the route
– avoid repeated states
• Takes a lot of memory
• But scanning a tree is better with DFS
Prepared By- Dr Shikha Pandey 96
98. What is a constraint problem?
• A constraint problem is a task where you have
to
– Arrange objects
– Schedule tasks
– Assign values
– …
– subject to a number of constraints
Prepared By- Dr Shikha Pandey 98
99. Example of constraint problems
Prepared By- Dr Shikha Pandey 99
S E N D
M O R E
M O N E Y
+
Each letter stands for a different
digit. Assign digits to the letters so
that the sum is correct.
Cryptarithmetic problems:
Constraint: when the values are assigned, the sum
must add up correctly.
101. Some easy examples
• AS + A = MOM
• I + DID = TOO
• A + FAT = ASS
• SO + SO = TOO
• US + AS = ALL
• ED + DI = DID
• DI + IS = ILL
Prepared By- Dr Shikha Pandey 101
102. U S
+ A S
A L L
8 5
+ 1 5
1 0 0
Prepared By- Dr Shikha Pandey 102
104. Another example
Prepared By- Dr Shikha Pandey 104
The 8 Queens puzzle
Place 8 queens on a chessboard
so that no two queens are
attacking one another.
Constraints: no two queens must be on the same row, the same
column, or the same diagonal
105. Example: Map-Coloring Problem
- Variables: WA, NT, Q, NSW, V, SA, T
- Domains: Di= {red, green, blue}
- Constraints: neighboring regions must have different colors
4
Prepared By- Dr Shikha Pandey 105
106. Example: Map-Coloring Problem
• Solutions: assignments satisfying all constraints, e.g.,
{WA=red, NT=green, Q=red, NSW=green, V=red, SA=blue, T=green}
5
Prepared By- Dr Shikha Pandey 106
107. A more practical example
• Timetabling/scheduling
– Assign classes to rooms so that
• Students aren’t required to be in two different rooms at the same
time
• Similarly for lecturers
• Two classes aren’t booked into the same room at the same time
• Rooms are sufficiently large to hold classes assigned to them
• Labs have enough computers for the classes assigned to them
• …
Prepared By- Dr Shikha Pandey 107
108. Formal definition of a constraint problem
• A constraint problem consists of
– A set of variables x1, x2,… xn
– For each variable xi a finite set Di of its possible
values (its domain)
– A set of constraints restricting the values that the
variables can take
• Goal: find an assignment of values to the
variables which satisfies all the constraints
Prepared By- Dr Shikha Pandey 108
109. Summary
• Constraint problem-solving can be applied to
a wide variety of real-world problems
• Formally, a constraint problem consists of
– A set of variables and their domains
– A set of constraints
• The goal
– Find a valid set of values
– Find all sets of values
– Find the best set of values
• The method
– Combine search and constraint propagation
Prepared By- Dr Shikha Pandey 109
111. Games and AI
Prepared By- Dr Shikha Pandey 111
• Games were one of the first tasks undertaken
by researchers in AI field
• A. Turing wrote chess playing program in 1950's
• Why research on games continues?
➢ Long-standing fascination for games
➢ Some difficult games remain to be won by computers
112. Game Trees
Prepared By- Dr Shikha Pandey 112
● Formal Description of Game :
• Initial State
• Successor function
• Terminal State
• Utility function
● Games are represented by game trees in which
● Each node represents a position
● Each link represents a legal move
● Leaf nodes are final positions(Win,Loss or Draw)
● The aim is to reach the goal node from the root node.
113. Types of Games
Prepared By- Dr Shikha Pandey 113
• Two player vs. Multiplayer
Tic-Tac-Toe vs. Bridge
• Zero-sum vs. General-sum
Chekers vs. Auction
• Perfect information vs. Imperfect information
Othello vs. Bridge
• Deterministic vs. Chance
Chess vs. Backgammon
114. Search Procedures
● Generate using simple legal-move generator will result
in very large testing space for the tester.
● So use plausible move generator.
● Now test procedure can spend more time evaluating
each of the moves, so more reliable results.
Prepared By- Dr Shikha Pandey 114
115. Search Procedures
● In order to choose the best move, the resulting board
position must be compared to discover which is most
advantageous -
● Use Static Evaluation Function (Utility
Function)
● It estimates how likely the particular state can
eventually lead to a win.
Prepared By- Dr Shikha Pandey 115
116. Minimax Search Procedure
● Depth-limited.
● Use plausible move generator to generate set of
possible successor positions.
● Apply static evaluation function to those positions &
choose the best one.
● Back up that value to the starting point.
Prepared By- Dr Shikha Pandey 116
118. Prepared By- Dr Shikha Pandey 118
Max
Max
Min
Min
7 9 6 9 8 8 5 6 7 5 2 3 2 5 4 9 3
7 6 2 6 3 4 5 1 2 5 4 1 2 6 3 4 3
Minimax Example
119. Prepared By- Dr Shikha Pandey 119
Max
Max
Min
Min
7 9 6 9 8 8 5 6 7 5 2 3 2 5 4 9 3
7 6 2 6 3 4 5 1 2 5 4 1 2 6 3 4 3
7 6 5 5 6 4
Minimax Example
120. Prepared By- Dr Shikha Pandey 120
Max
Max
Min
Min
7 9 6 9 8 8 5 6 7 5 2 3 2 5 4 9 3
7 6 2 6 3 4 5 1 2 5 4 1 2 6 3 4 3
7 6 5 5 6 4
5 3 4
Minimax Example
121. Prepared By- Dr Shikha Pandey 121
Max
Max
Min
Min
4 7 9 6 9 8 8 5 6 7 5 2 3 2 5 4 9 3
4 7 6 2 6 3 4 5 1 2 5 4 1 2 6 3 4 3
7 6 5 5 6 4
5 3 4
5
Minimax Example
122. Prepared By- Dr Shikha Pandey 122
Max
Max
Min
Min
7 9 6 9 8 8 5 6 7 5 2 3 2 5 4 9 3
7 6 2 6 3 4 5 1 2 5 4 1 2 6 3 4 3
7 6 5 5 6 4
5 3 4
5
Minimax Example
123. Adding Alpha-Beta Cutoffs
● Requires maintanence of 2 threshold values -
● Alpha – lower bound on the value that a
maximized node may be assigned.
● Beta – upper bound on the value that a
minimizing node may be assigned.
Prepared By- Dr Shikha Pandey 123
124. ● Search at the minimizing level can be terminated when
a value less than alpha is discovered.
● Search at the maximizing level can be terminated
when a value greater than beta is discovered.
● At maximizing levels, only beta is used to determine
whether to cut-off the search & similarly for minimizing
levels.
Prepared By- Dr Shikha Pandey 124
Adding Alpha-Beta Cutoffs
125. Alpha-beta pruning
• Alpha-beta pruning is a technique used in
artificial intelligence (AI) to reduce the number of
nodes that need to be evaluated in a search
tree. It is commonly applied in game-playing
algorithms, particularly in adversarial search
scenarios like chess or checkers.
• Alpha-beta pruning significantly reduces the
number of nodes that need to be evaluated,
making it much more efficient than a simple
minimax search, especially in large game trees.
Prepared By- Dr Shikha Pandey 125
126. The two-parameter can be defined as:
1. Alpha: The best (highest-value) choice we have found
so far at any point along the path of Maximizer. The
initial value of alpha is -∞.
2. Beta: The best (lowest-value) choice we have found so
far at any point along the path of Minimizer. The initial
value of beta is +∞.
• The Alpha-beta pruning to a standard minimax algorithm
returns the same move as the standard algorithm does,
but it removes all the nodes which are not really affecting
the final decision but making algorithm slow. Hence by
pruning these nodes, it makes the algorithm fast.
• The main condition which required for alpha-beta
pruning is: α>=β Prepared By- Dr Shikha Pandey 126
127. Key points about alpha-beta pruning
• The Max player will only update the value of
alpha.
• The Min player will only update the value of
beta.
• While backtracking the tree, the node values will
be passed to upper nodes instead of values of
alpha and beta.
• We will only pass the alpha, beta values to the
child nodes.
Prepared By- Dr Shikha Pandey 127