• Data Structure & Algorithm Classes (Live)
  • System Design (Live)
  • DevOps(Live)
  • Explore More Live Courses
  • Interview Preparation Course
  • Data Science (Live)
  • GATE CS & IT 2024
  • Data Structure & Algorithm-Self Paced(C++/JAVA)
  • Data Structures & Algorithms in Python
  • Explore More Self-Paced Courses
  • C++ Programming - Beginner to Advanced
  • Java Programming - Beginner to Advanced
  • C Programming - Beginner to Advanced
  • Full Stack Development with React & Node JS(Live)
  • Java Backend Development(Live)
  • Android App Development with Kotlin(Live)
  • Python Backend Development with Django(Live)
  • Complete Data Science Program(Live)
  • Mastering Data Analytics
  • DevOps Engineering - Planning to Production
  • CBSE Class 12 Computer Science
  • School Guide
  • All Courses
  • Linked List
  • Binary Tree
  • Binary Search Tree
  • Advanced Data Structure
  • All Data Structures
  • Asymptotic Analysis
  • Worst, Average and Best Cases
  • Asymptotic Notations
  • Little o and little omega notations
  • Lower and Upper Bound Theory
  • Analysis of Loops
  • Solving Recurrences
  • Amortized Analysis
  • What does 'Space Complexity' mean ?
  • Pseudo-polynomial Algorithms
  • Polynomial Time Approximation Scheme
  • A Time Complexity Question
  • Searching Algorithms
  • Sorting Algorithms
  • Graph Algorithms
  • Pattern Searching
  • Geometric Algorithms
  • Mathematical
  • Bitwise Algorithms
  • Randomized Algorithms
  • Greedy Algorithms
  • Dynamic Programming
  • Divide and Conquer
  • Backtracking
  • Branch and Bound
  • All Algorithms
  • Company Preparation
  • Practice Company Questions
  • Interview Experiences
  • Experienced Interviews
  • Internship Interviews
  • Competitive Programming
  • Design Patterns
  • System Design Tutorial
  • Multiple Choice Quizzes
  • Go Language
  • Tailwind CSS
  • Foundation CSS
  • Materialize CSS
  • Semantic UI
  • Angular PrimeNG
  • Angular ngx Bootstrap
  • jQuery Mobile
  • jQuery EasyUI
  • React Bootstrap
  • React Rebass
  • React Desktop
  • React Suite
  • ReactJS Evergreen
  • ReactJS Reactstrap
  • BlueprintJS
  • TensorFlow.js
  • English Grammar
  • School Programming
  • Number System
  • Trigonometry
  • Probability
  • Mensuration
  • Class 8 Syllabus
  • Class 9 Syllabus
  • Class 10 Syllabus
  • Class 8 Notes
  • Class 9 Notes
  • Class 10 Notes
  • Class 11 Notes
  • Class 12 Notes
  • Class 8 Maths Solution
  • Class 9 Maths Solution
  • Class 10 Maths Solution
  • Class 11 Maths Solution
  • Class 12 Maths Solution
  • Class 7 Notes
  • History Class 7
  • History Class 8
  • History Class 9
  • Geo. Class 7
  • Geo. Class 8
  • Geo. Class 9
  • Civics Class 7
  • Civics Class 8
  • Business Studies (Class 11th)
  • Microeconomics (Class 11th)
  • Statistics for Economics (Class 11th)
  • Business Studies (Class 12th)
  • Accountancy (Class 12th)
  • Macroeconomics (Class 12th)
  • Machine Learning
  • Data Science
  • Mathematics
  • Operating System
  • Computer Networks
  • Computer Organization and Architecture
  • Theory of Computation
  • Compiler Design
  • Digital Logic
  • Software Engineering
  • GATE 2024 Live Course
  • GATE Computer Science Notes
  • Last Minute Notes
  • GATE CS Solved Papers
  • GATE CS Original Papers and Official Keys
  • GATE CS 2023 Syllabus
  • Important Topics for GATE CS
  • GATE 2023 Important Dates
  • Software Design Patterns
  • HTML Cheat Sheet
  • CSS Cheat Sheet
  • Bootstrap Cheat Sheet
  • JS Cheat Sheet
  • jQuery Cheat Sheet
  • Angular Cheat Sheet
  • Facebook SDE Sheet
  • Amazon SDE Sheet
  • Apple SDE Sheet
  • Netflix SDE Sheet
  • Google SDE Sheet
  • Wipro Coding Sheet
  • Infosys Coding Sheet
  • TCS Coding Sheet
  • Cognizant Coding Sheet
  • HCL Coding Sheet
  • FAANG Coding Sheet
  • Love Babbar Sheet
  • Mass Recruiter Sheet
  • Product-Based Coding Sheet
  • Company-Wise Preparation Sheet
  • Array Sheet
  • String Sheet
  • Graph Sheet
  • ISRO CS Original Papers and Official Keys
  • ISRO CS Solved Papers
  • ISRO CS Syllabus for Scientist/Engineer Exam
  • UGC NET CS Notes Paper II
  • UGC NET CS Notes Paper III
  • UGC NET CS Solved Papers
  • Campus Ambassador Program
  • School Ambassador Program
  • Geek of the Month
  • Campus Geek of the Month
  • Placement Course
  • Testimonials
  • Student Chapter
  • Geek on the Top
  • Geography Notes
  • History Notes
  • Science & Tech. Notes
  • Ethics Notes
  • Polity Notes
  • Economics Notes
  • UPSC Previous Year Papers
  • SSC CGL Syllabus
  • General Studies
  • Subjectwise Practice Papers
  • Previous Year Papers
  • SBI Clerk Syllabus
  • General Awareness
  • Quantitative Aptitude
  • Reasoning Ability
  • SBI Clerk Practice Papers
  • SBI PO Syllabus
  • SBI PO Practice Papers
  • IBPS PO 2022 Syllabus
  • English Notes
  • Reasoning Notes
  • Mock Question Papers
  • IBPS Clerk Syllabus
  • Apply for a Job
  • Apply through Jobathon
  • Hire through Jobathon
  • All DSA Problems
  • Problem of the Day
  • GFG SDE Sheet
  • Top 50 Array Problems
  • Top 50 String Problems
  • Top 50 Tree Problems
  • Top 50 Graph Problems
  • Top 50 DP Problems
  • Solving For India-Hackthon
  • GFG Weekly Coding Contest
  • Job-A-Thon: Hiring Challenge
  • BiWizard School Contest
  • All Contests and Events
  • Saved Videos
  • What's New ?
  • Data Structures
  • Interview Preparation
  • Topic-wise Practice
  • Latest Blogs
  • Write & Earn
  • Web Development

Related Articles

Problem Solving in Artificial Intelligence

The reflex agent of AI directly maps states into action. Whenever these agents fail to operate in an environment where the state of mapping is too large and not easily performed by the agent, then the stated problem dissolves and sent to a problem-solving domain which breaks the large stored problem into the smaller storage area and resolves one by one. The final integrated action will be the desired outcomes.

On the basis of the problem and their working domain, different types of problem-solving agent defined and use at an atomic level without any internal state visible with a problem-solving algorithm. The problem-solving agent performs precisely by defining problems and several solutions. So we can say that problem solving is a part of artificial intelligence that encompasses a number of techniques such as a tree, B-tree, heuristic algorithms to solve a problem.  

We can also say that a problem-solving agent is a result-driven agent and always focuses on satisfying the goals.

There are basically three types of problem in artificial intelligence:

1. Ignorable: In which solution steps can be ignored.

2. Recoverable: In which solution steps can be undone.

3. Irrecoverable: Solution steps cannot be undo.

Steps problem-solving in AI: The problem of AI is directly associated with the nature of humans and their activities. So we need a number of finite steps to solve a problem which makes human easy works.

These are the following steps which require to solve a problem :

Components to formulate the associated problem: 

Please Login to comment...

Improve your Coding Skills with Practice

Start your coding journey now.

An Introduction to Problem-Solving using Search Algorithms for Beginners

This article was published as a part of the  Data Science Blogathon

In computer science, problem-solving refers to artificial intelligence techniques, including various techniques such as forming efficient algorithms, heuristics, and performing root cause analysis to find desirable solutions.

The basic crux of artificial intelligence is to solve problems just like humans.

Examples of Problems in Artificial Intelligence

In today’s fast-paced digitized world, artificial intelligence techniques are used widely to automate systems that can use the resource and time efficiently. Some of the well-known problems experienced in everyday life are games and puzzles. Using AI techniques, we can solve these problems efficiently. In this sense, some of the most common problems resolved by AI are

Table of Contents

Problem solving techniques.

Types of search algorithms

Uninformed search algorithms, comparison of various uninformed search algorithms, informed search algorithms, comparison of uninformed and informed search algorithms.

In artificial intelligence, problems can be solved by using searching algorithms, evolutionary computations, knowledge representations, etc.

In this article, I am going to discuss the various searching techniques that are used to solve a problem.

In general, searching is referred to as finding information one needs.

The process of problem-solving using searching consists of the following steps.

Let’s discuss some of the essential properties of search algorithms.

Properties of search algorithms


A search algorithm is said to be complete when it gives a solution or returns any solution for a given random input.

If a solution found is best (lowest path cost) among all the solutions identified, then that solution is said to be an optimal one.

Time complexity

The time taken by an algorithm to complete its task is called time complexity. If the algorithm completes a task in a lesser amount of time, then it is an efficient one.

Space complexity

It is the maximum storage or memory taken by the algorithm at any time while searching.

These properties are also used to compare the efficiency of the different types of searching algorithms.

Now let’s see the types of the search algorithm.

Based on the search problems, we can classify the search algorithm as

The uninformed search algorithm does not have any domain knowledge such as closeness, location of the goal state, etc. it behaves in a brute-force way. It only knows the information about how to traverse the given tree and how to find the goal state. This algorithm is also known as the Blind search algorithm or Brute -Force algorithm.

The uninformed search strategies are of six types.

Let’s discuss these six strategies one by one.

1. Breadth-first search

It is of the most common search strategies. It generally starts from the root node and examines the neighbor nodes and then moves to the next level. It uses First-in First-out (FIFO) strategy as it gives the shortest path to achieving the solution.

BFS is used where the given problem is very small and space complexity is not considered.

Now, consider the following tree.

Breadth-First search | Problem-Solving using AI

Source: Author

Here, let’s take node A as the start state and node F as the goal state.

The BFS algorithm starts with the start state and then goes to the next level and visits the node until it reaches the goal state.

In this example, it starts from A and then travel to the next level and visits B and C and then travel to the next level and visits D, E, F and G. Here, the goal state is defined as F. So, the traversal will stop at F.

Traversal in BFS

The path of traversal is:

A —-> B —-> C —-> D —-> E —-> F

Let’s implement the same in python programming.

Python Code:

Advantages of BFS

Disadvantages of BFS

2. Depth-first search

The depth-first search uses Last-in, First-out (LIFO) strategy and hence it can be implemented by using stack. DFS uses backtracking. That is, it starts from the initial state and explores each path to its greatest depth before it moves to the next path.

DFS will follow

Root node —-> Left node —-> Right node

Now, consider the same example tree mentioned above.

Here, it starts from the start state A and then travels to B and then it goes to D. After reaching D, it backtracks to B. B is already visited, hence it goes to the next depth E and then backtracks to B. as it is already visited, it goes back to A. A is already visited. So, it goes to C and then to F. F is our goal state and it stops there.

DFS Example | Problem-Solving using AI

A —-> B —-> D —-> E —-> C —-> F

The output path is as follows.

Output Snippet

Advantages of DFS

Disadvantages of DFS

3. Depth-limited search

Depth-limited works similarly to depth-first search. The difference here is that depth-limited search has a pre-defined limit up to which it can traverse the nodes. Depth-limited search solves one of the drawbacks of DFS as it does not go to an infinite path.

DLS ends its traversal if any of the following conditions exits.

Standard Failure

It denotes that the given problem does not have any solutions.

Cut off Failure Value

It indicates that there is no solution for the problem within the given limit.

Now, consider the same example.

Let’s take A as the start node and C as the goal state and limit as 1.

The traversal first starts with node A and then goes to the next level 1 and the goal state C is there. It stops the traversal.

Depth-limited search example | Problem-Solving using AI

A —-> C

If we give C as the goal node and the limit as 0, the algorithm will not return any path as the goal node is not available within the given limit.

If we give the goal node as F and limit as 2, the path will be A, C, F.

Let’s implement DLS.

When we give C as goal node and 1 as limit the path will be as follows.

explain problem solving with an example in ai

Advantages of DLS

Disadvantages of DLS

4. Iterative deepening depth-first search

Iterative deepening depth-first search is a combination of depth-first search and breadth-first search. IDDFS find the best depth limit by gradually adding the limit until the defined goal state is reached.

Let me try to explain this with the same example tree.

Consider, A as the start node and E as the goal node. Let the maximum depth be 2.

The algorithm starts with A and goes to the next level and searches for E. If not found, it goes to the next level and finds E.

Iterative deepening depth-first search example

The path of traversal is

A —-> B —-> E

Let’s try to implement this.

The path generated is as follows.

Output snippet

Advantages of IDDFS

Disadvantages of IDDFS

5. Bidirectional search

The bidirectional search algorithm is completely different from all other search strategies. It executes two simultaneous searches called forward-search and backwards-search and reaches the goal state. Here, the graph is divided into two smaller sub-graphs. In one graph, the search is started from the initial start state and in the other graph, the search is started from the goal state. When these two nodes intersect each other, the search will be terminated.

Bidirectional search requires both start and goal start to be well defined and the branching factor to be the same in the two directions.

Consider the below graph.

Bidirectional Search Example | Problem-Solving using AI

Here, the start state is E and the goal state is G. In one sub-graph, the search starts from E and in the other, the search starts from G. E will go to B and then A. G will go to C and then A. Here, both the traversal meets at A and hence the traversal ends.

Bidirectional Search example | Problem-Solving using AI

E —-> B —-> A —-> C —-> G

Let’s implement the same in Python.

The path is generated as follows.

Output snippet

Advantages of bidirectional search

Disadvantages of bidirectional search

6. Uniform cost search

Uniform cost search is considered the best search algorithm for a weighted graph or graph with costs. It searches the graph by giving maximum priority to the lowest cumulative cost. Uniform cost search can be implemented using a priority queue.

Consider the below graph where each node has a pre-defined cost.

Uniform Cost Search example | Problem-Solving using AI

Here, S is the start node and G is the goal node.

From S, G can be reached in the following ways.

S, A, E, F, G -> 19

S, B, E, F, G -> 18

S, B, D, F, G -> 19

S, C, D, F, G -> 23

Here, the path with the least cost is S, B, E, F, G.

Uniform cost search example | Problem-Solving using AI

Let’s implement UCS in Python.

The optimal output path is generated.

Code Snippet

Advantages of UCS

Disadvantages of UCS

Now, let me compare the six different uninformed search strategies based on the time complexity.

This is all about uninformed search algorithms.

Let’s take a look at informed search algorithms.

The informed search algorithm is also called heuristic search or directed search. In contrast to uninformed search algorithms, informed search algorithms require details such as distance to reach the goal, steps to reach the goal, cost of the paths which makes this algorithm more efficient.

Here, the goal state can be achieved by using the heuristic function.

The heuristic function is used to achieve the goal state with the lowest cost possible. This function estimates how close a state is to the goal.

Let’s discuss some of the informed search strategies.

1. Greedy best-first search algorithm

Greedy best-first search uses the properties of both depth-first search and breadth-first search. Greedy best-first search traverses the node by selecting the path which appears best at the moment. The closest path is selected by using the heuristic function.

Consider the below graph with the heuristic values.

Greedy best-first search algorithm example | Problem-Solving using AI

Here, A is the start node and H is the goal node.

Greedy best-first search first starts with A and then examines the next neighbour B and C. Here, the heuristics of B is 12 and C is 4. The best path at the moment is C and hence it goes to C. From C, it explores the neighbours F and G. the heuristics of F is 8 and G is 2. Hence it goes to G. From G, it goes to H whose heuristic is 0 which is also our goal state.

Path of traversal in Greedy best-first search algorithm | Problem-Solving using AI

A —-> C —-> G —-> H

Let’s try this with Python.

The output path with the lowest cost is generated.

Output snippet

The time complexity of Greedy best-first search is O(b m ) in worst cases.

Advantages of Greedy best-first search

Disadvantages of Greedy best-first search

Next, let’s discuss the other informed search algorithm called the A* search algorithm.

2. A* search algorithm

A* search algorithm is a combination of both uniform cost search and greedy best-first search algorithms. It uses the advantages of both with better memory usage. It uses a heuristic function to find the shortest path. A* search algorithm uses the sum of both the cost and heuristic of the node to find the best path.

Consider the following graph with the heuristics values as follows.

A* search example | Problem-Solving using AI

Let A be the start node and H be the goal node.

First, the algorithm will start with A. From A, it can go to B, C, H.

Note the point that A* search uses the sum of path cost and heuristics value to determine the path.

Here, from A to B, the sum of cost and heuristics is 1 + 3 = 4.

From A to C, it is 2 + 4 = 6.

From A to H, it is 7 + 0 = 7.

Here, the lowest cost is 4 and the path A to B is chosen. The other paths will be on hold.

Now, from B, it can go to D or E.

From A to B to D, the cost is 1 + 4 + 2 = 7.

From A to B to E, it is 1 + 6 + 6 = 13.

The lowest cost is 7. Path A to B to D is chosen and compared with other paths which are on hold.

Here, path A to C is of less cost. That is 6.

Hence, A to C is chosen and other paths are kept on hold.

From C, it can now go to F or G.

From A to C to F, the cost is 2 + 3 + 3 = 8.

From A to C to G, the cost is 2 + 2 + 1 = 5.

The lowest cost is 5 which is also lesser than other paths which are on hold. Hence, path A to G is chosen.

From G, it can go to H whose cost is 2 + 2 + 2 + 0 = 6.

Here, 6 is lesser than other paths cost which is on hold.

Also, H is our goal state. The algorithm will terminate here.

Path of traversal in A* | Problem-Solving using AI

Let’s try this in Python.

The output is given as

Output snippet

The time complexity of the A* search is O(b^d) where b is the branching factor.

Advantages of A* search algorithm

Disadvantages of A* search algorithm

Now, let’s compare uninformed and informed search strategies.

Uninformed search is also known as blind search whereas informed search is also called heuristics search. Uniformed search does not require much information. Informed search requires domain-specific details. Compared to uninformed search, informed search strategies are more efficient and the time complexity of uninformed search strategies is more. Informed search handles the problem better than blind search.

Search algorithms are used in games, stored databases, virtual search spaces, quantum computers, and so on. In this article, we have discussed some of the important search strategies and how to use them to solve the problems in AI and this is not the end. There are several algorithms to solve any problem. Nowadays, AI is growing rapidly and applies to many real-life problems. Keep learning! Keep practicing!

explain problem solving with an example in ai

About the Author

Dhanya thailappan.

Data Science and AI enthusiast

Our Top Authors

Rahul Shah

Download Analytics Vidhya App for the Latest blog/Article

Leave a reply your email address will not be published. required fields are marked *.

Notify me of follow-up comments by email.

Notify me of new posts by email.

Top Resources

explain problem solving with an example in ai

30 Best Data Science Books to Read in 2023

explain problem solving with an example in ai

How to Read and Write With CSV Files in Python:..

explain problem solving with an example in ai

Understand Random Forest Algorithms With Examples (Updated 2023)

explain problem solving with an example in ai

Feature Selection Techniques in Machine Learning (Updated 2023)

Welcome to India's Largest Data Science Community

Back welcome back :), don't have an account yet register here, back start your journey here, already have an account login here.

A verification link has been sent to your email id

If you have not recieved the link please goto Sign Up page again

back Please enter the OTP that is sent to your registered email id

Back please enter the otp that is sent to your email id, back please enter your registered email id.

This email id is not registered with us. Please enter your registered email id.

back Please enter the OTP that is sent your registered email id

Please create the new password here, privacy overview.

Javatpoint Logo

Artificial Intelligence

Control System

Intelligent Agent

Problem-solving, adversarial search, knowledge represent, uncertain knowledge r., subsets of ai, artificial intelligence mcq, related tutorials.


Help Others, Please Share


Learn Latest Tutorials

Splunk tutorial


Tumblr tutorial

Reinforcement Learning

R Programming tutorial

R Programming

RxJS tutorial

React Native

Python Design Patterns

Python Design Patterns

Python Pillow tutorial

Python Pillow

Python Turtle tutorial

Python Turtle

Keras tutorial



Verbal Ability

Interview Questions

Interview Questions

Company Interview Questions

Company Questions

Trending Technologies

Artificial Intelligence

Cloud Computing

Hadoop tutorial

Data Science

Angular 7 Tutorial

Machine Learning

DevOps Tutorial

B.Tech / MCA

DBMS tutorial

Data Structures

DAA tutorial

Operating System

Computer Network tutorial

Computer Network

Compiler Design tutorial

Compiler Design

Computer Organization and Architecture

Computer Organization

Discrete Mathematics Tutorial

Discrete Mathematics

Ethical Hacking

Ethical Hacking

Computer Graphics Tutorial

Computer Graphics

Software Engineering

Software Engineering

html tutorial

Web Technology

Cyber Security tutorial

Cyber Security

Automata Tutorial

C Programming

C++ tutorial

Data Mining

Data Warehouse Tutorial

Data Warehouse

Javatpoint Services

JavaTpoint offers too many high quality services. Mail us on [email protected] , to get more information about given services.

Training For College Campus

JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected] Duration: 1 week to 2 week

RSS Feed

Problem Solving Techniques in Artificial Intelligence (AI)

Problem-solving is commonly known as the method to reach the desired goal or find a solution to a given situation. In computer science, problem-solving refers to artificial intelligence techniques, including various techniques such as forming efficient algorithms, heuristics, and performing root cause analysis to find desirable solutions. Problem-solving in Artificial Intelligence usually refers to researching a solution to a problem by performing logical algorithms, utilizing polynomial and differential equations, and executing them using modeling paradigms. There can be various solutions to a single problem, which are achieved by different heuristics. Also, some problems have unique solutions. It all rests on the nature of the given problem.

Table of contents:

Examples of Problems in Artificial Intelligence

What is a reflex agent, problem solving techniques, searching algorithms, types of uninformed searching algorithms, evolutionary computation, genetic algorithms, applications of ai in real world, why problem solving is important in ai.

Problem-solving agents in artificial intelligence

Steps of problem solving in ai, ai methods of problem solving.

Problem Solving Techniques in AI

Developers worldwide are using artificial intelligence to automate systems for efficient utilization of time and resources. Some of the most common problems encountered in day-to-day life are games and puzzles. These can be solved efficiently by using artificial intelligence algorithms. Ranging from mathematical puzzles including crypto-arithmetic and magic squares, logical puzzles including Boolean formulas and N-Queens to popular games like Sudoku and Chess, these problem-solving techniques are used to form a solution for all these. Therefore, some of the most prevalent problems that artificial intelligence has resolved are the following:

There are five primary agents used in Artificial Intelligence based on their capability of perceiving intelligence. These agents are the following:

These agents prove helpful in the mapping of states and actions. While solving a complex problem, these agents often fail to comprehend the next step adequately; thus, problem-solving agents solve such scenarios. These agents use techniques like B-tree and heuristic algorithms to solve problems using artificial intelligence.

Artificial Intelligence is beneficial for solving complex problems due to its efficient methods of solving. Following are some of the standard problem-solving techniques used in AI. You can explore about other problem-solving techniques apart from searching.

The heuristic method helps comprehend a problem and devises a solution based purely on experiments and trial and error methods. However, these heuristics do not often provide the best optimal solution to a specific problem. Instead, these undoubtedly offer efficient solutions to attain immediate goals. Therefore, the developers utilize these when classic methods do not provide an efficient solution for the problem. Since heuristics only provide time-efficient solutions and compromise accuracy, these are combined with optimization algorithms to improve efficiency.

Example: Travelling Salesman Problem

The most common example of using heuristic is the Travelling Salesman problem. There is a provided list of cities and their distances. The user has to find the optimal route for the Salesman to return to the starting city after visiting every city on the list. The greedy algorithms solve this NP-Hard problem by finding the optimal solution. According to this heuristic, picking the best next step in every current city provides the best solution.

Searching is one of the primary methods of solving any problem in AI. Rational agents or problem-solving agents use these searching algorithms to find optimal solutions. These problem-solving agents are often goal-based and utilize atomic representation. Moreover, these searching algorithms possess completeness, optimality, time complexity, and space complexity properties based on the quality of the solution provided by them.

Types of Searching Algorithms

There are following two main types of searching algorithms:

Informed Search

Uninformed search.

These algorithms use basic domain knowledge and comprehend available information regarding a specified problem as a guideline for optimal solutions. The solutions provided by informed search algorithms are more efficient than uninformed search algorithms.

Types of informed Search Algorithms

There are following main two types of informed search algorithms:

These algorithms do not have the privilege of using basic domain knowledge, such as the desired goal’s closeness. It contains information regarding traversing a tree and identifying leaf and goal nodes . Uninformed search also goes by the name of blind search because while traversing, there is no specific information about the initial state and test for the goal. This search goes through every node till reaching the desired destination.

There are the following main five types of uninformed search algorithms:

This problem-solving method utilizes the well-known evolution concept. The theory of evolution works on the principle of survival of the fittest. It states that the organism which can cope well with their environment in a challenging or changing environment and reproduce, their future generations gradually inherit the coping mechanism, generating the diversity in new child organisms. In this way, the new organisms are not mere copies of the old ones but have the mixes of characteristics that go along with that harsh environment. Humans are the most prominent example of the evolution process that has evolved and diversified because of the accumulation of favorable mutations over countless generations.

In AI, the evolution concept refers to the trial and error technique:

The evolution theory is the basis of genetic algorithms. These algorithms use the direct random search method. The developers calculate the fit function to cross the two fittest options to create a favorable child. The developers gather the population data and then evaluate each member to calculate everyone’s fitness. It is estimated by how well each member fits with the desired requirement. Then the developers use various selection methods to keep the best members. Some of the ways are the following:

Although genetic algorithms do not always work best, they do not break easily, and the inputs change slightly. The developers commonly use genetic algorithms to generate a high-level solution to optimization and search problems by relying on bio-inspired operations such as mutation, crossover, and selection.

The problem-solving techniques help in improving the performance of programs. The AI-based searching algorithms provide high precision and maximum accuracy to results. These algorithms are faster than others in execution and offer multiple searching methods depending upon the problem faced. Implementing heuristics allows the devising to conceptually more straightforward algorithms with cheaper computational costs compared to using optimal algorithms. Evolutionary computations also help in optimization and search problems. Overall, these techniques are the basis for solving high-level problems in AI such as chess algorithms, and hill-climbing problems.

One of the most critical advantages of AI is its ability to sift through large quantities of data in a limited period. These assist researchers in identifying areas of focus for their studies. A recent ground-breaking breakthrough on the condition of Amyotrophic Lateral Sclerosis (ALS) was made thanks to a collaboration between Barrow Neurological Institute and IBM Watson Health, an artificial intelligence firm. IBM Watson, an artificial intelligence computer, studied tens of thousands of research papers and identified new genes related to ALS.

The finding provides ALS researchers with new knowledge to create new drug targets and treatments to fight one of the world’s most deadly diseases.

Another promising application of AI in healthcare is its ability to predict drug treatment results. For example, cancer patients are often given the same medication and monitored to see if it is successful. AI uses data to predict which patients would benefit from a specific medication, resulting in a highly customized approach that saves time and money.

Transforming Learning Process

Students at Georgia Tech University in the United States were shocked to learn that their supportive teaching assistant had been a robot all along. Following some teething issues, the robot began answering students’ questions with 97 percent accuracy.

After conducting studies, the university discovered that one of the leading causes of student dropout is a lack of support.

People learn in various ways, at different speeds, and from different locations. Artificial intelligence can usher in a world in which humans learn in a far more personalized manner. However, no educational system can afford a tutor for every student that AI might help. Artificial tutors, designed to look and sound as human as possible, may lead the way in providing individualized education.

Helping Wildlife

The ability to analyze massive data, much like in healthcare, may help change wildlife conservation. Humans can see where animals go and what habitats need to preserve by monitoring their movements, for example. This research uses computer power to determine Montana’s best locations for creating wildlife corridors for wolverines and grizzly bears. Wildlife corridors are long stretches of protected land that connect biologically significant regions, allowing animals to travel safely through the wilderness.


Given the high-profile crashes involving self-driving cars this year, AI in this area has the potential to reduce fatalities and injuries on the highways significantly.

According to a Private University study, self-driving cars would not only minimize traffic-related deaths and injuries, but they may also change lifestyles. AI may have more time to work or entertain and may have more options for where humans base themselves. Per the report, Self-driving cars and shared transportation can influence where people choose to live due to increased comfort and reduced cognitive load.

Decoding any type of problem needs specific organized measures to be observed. Identical is the matter of solving issues by AI. The following are the details:

Problem Formulation in AI

It is one of the basic stages of problem-solving that determines what measure should be brought to fulfill the developed goal. Problem formulation is the stage in problem description that is utilized to comprehend and choose a course of activity that must be evaluated to reach a goal. If there is more than one method an agent can attain its objective, then it generates intricacy in terms of truly reaching the goal as there would be too numerous measures and courses that the AI entity can carry to achieve the goal that it induces chaos and a tremendous decline in the efficiency. Problem formulation can be accomplished in many stages such as the description of the initial condition of the agent, choosing probable steps that the agent can bear, and design of transition standards to define the efforts of the agent.

Here the issue is split into sub-issues. The effects of the different measures carried out in cracking the last sub-problem are delivered to the following subproblem and the integrated outcome of the subproblems ushers to the definitive solution. This needs appropriate planning and implementation of changes.

Performance benchmark is one of the vital things in AI problem solving which determines the value of the algorithm utilized to fix the issue. There are four methods in which the execution of an algorithm is calculated. These are as follows:

Based on the kind of problem, various agents utilize various methods like trees, heuristics, b-trees, etc mentioned above to achieve the goal of the problem. Basically, the steps involved are:

Problem-solving in AI is prevalent day by day. Computer researchers are utilizing Artificial Intelligence to automate their jobs in day-to-day practice to preserve their actions and duration. Games and riddles are real-time models of a current situation. These can be fixed by utilizing the most practical AI algorithms. Mathematical riddles such as magic squares and crypto arithmetic are being utilized in the most widespread competitions such as Chess. Problem-solving in AI is being utilized to embark on these all issues and make their solutions most efficacious.

Artificial Intelligence is helping developers in creating perfect software and design the software as per the conditions. The dead-end issues are also can be decrypted now with the service of Artificial Intelligence algorithms. In problem-solving AI utilize some of the agents. Various agents assist to specify movements and conditions. But they usually become ineffective when it comes to decrypting difficult issues of the real world.

Based on the issue and their functioning environment, various kinds of problem-solving agents are described and utilized at an atomic class without any inner condition perceptible with a problem-solving algorithm. The problem-solving agent functions specifically by determining issues and various solutions. So we can express that problem solving is a piece of artificial intelligence that contains several methods such as a tree, B-tree, and heuristic algorithms to fix an issue.

For more articles about TOP banks in the world , or the banking and finance sector – check our blog. Or learn how to extract data from banking documents .

Related Posts:

Neuralink – The Human-Machine Interface

Neuralink – The Human-Machine Interface

TOP AI and Machine Learning Trends for 2021

TOP AI and Machine Learning Trends for 2021

Quick links.


Zapier Plugin

On-Premise Version

Non-Developer Apps (PDFlite)

explain problem solving with an example in ai

Problem Searching

Steps : Solve Problem Using Artificial Intelligence

This image describe the procedure for problem solving in artificial intelligence.

Intellipaat Community

What is problem solving agent in Artificial Intelligence?

Could someone tell me what is the problem-solving agent in Artificial Intelligence?

Please log in or register to add a comment.

Please log in or register to answer this question..

Problem-solving agent in Artificial Intelligence is goal-based agents that focus on goals, is one embodiment of a group of algorithms, and techniques to solve a well-defined problem in the area of Artificial Intelligence. And these agents are different from reflex agents who just have to map states into actions and can’t map when storing and learning both are bigger. The different stages that Problem-solving agents perform, to arrive at a desired state or solution are:

You would know more of these jargons of  AI once you are well through into the domain. Considering the job prospects, just knowing a technology doesn’t have any impact on the interview, how well do you know? Are you well versed in the technology? And the work experience you have, things like these often matter. And for these, I would recommend you to enroll in and end-to-end AI course from Intellipaat to help. Also, I would like you to watch our YouTube video on Artificial Intelligence for Beginners to help you get a better understanding.

Related questions

29.2k questions

30.6k answers


Browse Categories


Trending University Programs

E&ICT MNIT - Data Science and Machine Learning | IIT Madras - Advance Certification in Data Science and AI | E&ICT IIT Guwahati - Cloud Computing & DevOps | E&ICT IIT Guwahati - Cyber Security | E&ICT IIT Guwahati - Software Engineering & Application Development | E&ICT IIT Guwahati - Big Data Analytics | E&ICT IIT Guwahati - Full Stack Web Development | E&ICT MNIT - AI and Machine Learning | E&ICT IIT Guwahati - UI UX Design Strategy | IIT Madras - Data Analytics for Business | E&ICT IIT Roorkee - Cloud Computing & DevOps | E&ICT MNIT - Cyber Security & Ethical Hacking | E&ICT MNIT - Business Analyst & Project Management

Browse By Domains

Big Data Analytics Courses | Data Science Courses | Business Intelligence courses | Best Salesforce Courses | Cloud Computing Courses | Best Digital Marketing Courses | Programming Courses Online | Database Certification Courses | Project Management Certification Courses | Best Web Development Certification courses | Automation Trainings | UI UX Course

Popular Courses

Data Science Courses | Best Artificial Certification Intelligence Course | Machine Learning Training | Python Course | DevOps Certification Course | AWS Training and Certification | Azure Certification | AWS DevOps Training | Azure DevOps Certification Course | Cyber Security Course | Ethical Hacking Course | Big Data Hadoop Certification | SQL Course | Salesforce Admin Certification | Online Salesforce Developer Certification | Selenium Training Online | Business Analyst Course Online | Data Analyst Certification course | Best Microsoft Power BI Certification Course | Tableau Course Online | Linux certification Course | Data Analytics Certification Course | Digital Marketing Course | Online Business Analytics Course | Online Investment Banking Course | Online Supply Chain Course | Online Electric Vehicle Course

Degree Courses

M. Tech in AI & ML | M. Sc. in Data Science | MBA in Big Data Management | M. Sc. in Artificial Intelligence | MBA in Business Administration | MBA in International Marketing | Master’s in Computer Science | MBA in Finance and Accounting | Master’s in Engineering Management | Master of Science in Data Science | MSC in Data Science


Download Salary Trends Now !

Learn how professionals like you got up to 100% Salary Hike.

Problem Solving


Searching is one of the classic areas of AI.

A problem is a tuple $(S, s, A, \rho, G, P)$ where

Example: A water jug problem

You have a two-gallon jug and a one-gallon jug; neither have any measuring marks on them at all. Initially both are empty. You need to get exactly one gallon into the two-gallon jug. Formally:

A graphical view of the transition function (initial state shaded, goal states outlined bold):


And a tabular view:

To solve this problem, an agent would start at the initial state and explore the state space by following links until it arrived in a goal state. A solution to the water jug problem is a path from the initial state to a goal state .

Example solutions

There are an infinite number of solutions. Sometimes we are interested in the solution with the smallest path cost; more on this later.

Awww Man.... Why are we studying this?

Even if they’re not completely right, there are still zillions of problems that can be formulated in problem spaces, e.g.

Problem Types

State finding vs. action sequence finding.

A fundamental distinction:

Offline vs. Online Problems

In an online problem, the agent doesn’t even know what the state space is, and has to build a model of it as it acts. In an offline problem, percepts don’t matter at all. An agent can figure out the entire action sequence before doing anything at all .

Offline Example : Vacuum World with two rooms, cleaning always works, a square once cleaned stays clean. States are 1 – 8, goal states are 1 and 5.


Sensorless (Conformant) Problems

The agent doesn’t know where it is. We can use belief states (sets of states that the agent might be in). Example from above deterministic, static, single-agent vacuum world:

Note the goal states are 1 and 5. If a state 15 was reachable, it would be a goal too.

Contingency Problems

Contingency Problem: The agent doesn’t know what effect its actions will have. This could be due to the environment being partially observable, or because of another agent. Ways to handle this:

Example: Partially observable vacuum world (meaning you don’t know the status of the other square) in which sucking in a clean square may make it dirty.

Can also model contingency problems is with "AND-OR graphs".

Example: find a winning strategy for Nim if there are only five stones in one row left. You are player square. You win if it is player circle’s turn with zero stones left.


In general then, a solution is a subtree in which

If the tree has only OR nodes, then the solution is just a path.

Search Algorithms

Hey, we know what a problem is, what a problem space is, and even what a solution is, but how exactly do we search the space ? Well there are zillions of approaches:

Types of Problem Solving Tasks

Agents may be asked to be

An algorithm is

Search Trees

Example: The water jug problem with 4 and 3 gallon jugs. Cost is 1 point per gallon used when filling, 1 point to make a transfer, 5 points per gallon emptied (since it makes a mess). The search tree might start off like this:


Search trees have

The complexity of most search algorithms can be written as a function of one or more of $b$, $d$ and $m$.

In general though there may be more states than there are fundamental particles in the universe. But we need to find a solution. Usually is helpful to



Home » Machine Learning/Artificial Intelligence

Problem Solving in Artificial Intelligence

In this article, you will study about the problem-solving approach in Artificial Intelligence . You will learn how an agent tackles the problem and what steps are involved in solving it? Submitted by Monika Sharma , on May 29, 2019

The aim of Artificial Intelligence is to develop a system which can solve the various problems on its own. But the challenge is, to understand a problem, a system must predict and convert the problem in its understandable form. That is, when an agent confronts a problem, it should first sense the problem, and this information that the agent gets through the sensing should be converted into machine-understandable form. For this, a particular sequence should be followed by the agent in which a particular format for the representation of agent's knowledge is defined and each time a problem arises, the agent can follow that particular approach to find a solution to it .

The steps involved in solving a problem (by an agent based on Artificial Intelligence ) are:

1) Define a problem

Whenever a problem arises, the agent must first define a problem to an extent so that a particular state space can be represented through it. Analyzing and defining the problem is a very important step because if the problem is understood something which is different than the actual problem, then the whole problem-solving process by the agent is of no use.

2) Form the state space

Convert the problem statement into state space. A state space is the collection of all the possible valid states that an agent can reside in. But here, all the possible states are chosen which can exist according to the current problem. The rest are ignored while dealing with this particular problem.

3) Gather knowledge

collect and isolate the knowledge which is required by the agent to solve the current problem. This knowledge gathering is done from both the pre-embedded knowledge in the system and the knowledge it has gathered through the past experiences in solving the same type of problem earlier.

4) Planning-(Decide data structure and control strategy)

A problem may not always be an isolated problem. It may contain various related problems as well or some related areas where the decision made with respect to the current problem can affect those areas. So, a well-suited data structure and a relevant control strategy must be decided before attempting to solve the problem.

5) Applying and executing

After all the gathering of knowledge and planning the strategies, the knowledge should be applied and the plans should be executed in a systematic way so s to reach the goal state in the most efficient and fruitful manner.

Related Tutorials


What's New (MCQs)

Top Interview Coding Problems/Challenges!

Comments and Discussions!

IncludeHelp's Blogs

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML Solved programs: » C » C++ » DS » Java » C# Aptitude que. & ans.: » C » C++ » Java » DBMS Interview que. & ans.: » C » Embedded C » Java » SEO » HR CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS More: » Articles » Puzzles » News/Updates

ABOUT SECTION » About us » Contact us » Feedback » Privacy policy

STUDENT'S SECTION » Internship » Certificates » Content Writers of the Month

SUBSCRIBE » Facebook » LinkedIn » Subscribe through email

© https://www.includehelp.com some rights reserved.


  1. Problem Solving with AI

    explain problem solving with an example in ai

  2. Problem Solving Techniques in Artificial Intelligence (AI)

    explain problem solving with an example in ai

  3. Is artificial intelligence mostly just deep learning?

    explain problem solving with an example in ai

  4. AI and Problem Solving

    explain problem solving with an example in ai

  5. 3 step problem solving approach

    explain problem solving with an example in ai

  6. Artificial intelligence problem solving. What is Artificial Intelligence (AI)?

    explain problem solving with an example in ai


  1. Joe Rogan on OpenAI Universities

  2. Project Explain problem ☺️😮‍💨

  3. Make AI Solve Problems, Not Just Art!

  4. People Fearing AI Takeover!! Meanwhile The AI... #shorts

  5. Resolution in Prepositional logic || Knowledge Representation || Artificial Intelligence

  6. AI L3 P1 A* algorithm: Modelling


  1. What Are the Six Steps of Problem Solving?

    The six steps of problem solving involve problem definition, problem analysis, developing possible solutions, selecting a solution, implementing the solution and evaluating the outcome. Problem solving models are used to address issues that...

  2. Robots and AI: The Future of Automation in Everyday Life

    Robots and artificial intelligence (AI) are getting faster and smarter than ever before. Even better, they make everyday life easier for humans. Machines have already taken over many human roles, like those of teachers, chefs, cops and even...

  3. AI solves complex biology problem from scratch

    An interdisciplinary, interuniversity group of scientists from Vanderbil...

  4. Problem Solving in Artificial Intelligence

    The problem-solving agent performs precisely by defining problems and several solutions. So we can say that problem solving is a part of

  5. An Introduction to Problem-Solving using Search Algorithms for

    In computer science, problem-solving refers to artificial intelligence techniques, including various techniques such as forming efficient

  6. Problem Solving Techniques in AI

    Artificial intelligence (AI) problem-solving often involves investigating potential solutions to problems through reasoning techniques, making use of polynomial

  7. Problem Solving Techniques in Artificial Intelligence (AI)

    Problem-solving in Artificial Intelligence usually refers to researching a solution to a problem by performing logical algorithms, utilizing polynomial and

  8. Problem Solving in AI

    Problem Solving in games such as “Sudoku” can be an example. It can be done by building an artificially intelligent system to solve that particular problem. To

  9. What is problem solving agent in Artificial Intelligence?

    Problem-solving agent in Artificial Intelligence is goal-based agents that focus on goals, is one embodiment of a group of algorithms

  10. Applications of AI Problem solving by searching

    CS 1571 Intro to AI. M. Hauskrecht. Example. N-queens problem. ... graph search problems can be defined in terms of:.

  11. AI Problem-Solving Methods Outline

    Describe. □ How objects are arranged e.g., left-of, above.

  12. Problem Solving

    Example: Partially observable vacuum world (meaning you don't know the status of the other square) in which sucking in a clean square may make it dirty. No way

  13. Problem Formulation-Artificial Intelligence-Unit-1-Problem Solving

    Subscribe this channel, comment and share with your friends.For Syllabus, Text Books, Materials and Previous University Question Papers and

  14. Problem Solving in Artificial Intelligence

    1) Define a problem · 2) Form the state space · 3) Gather knowledge · 4) Planning-(Decide data structure and control strategy) · 5) Applying and