Artificial Intelligence

Problem As State Space Search

State space consists of all the problem solving tasks.

State space: A state space consists of all the states ,set of operators that shifts  from one state to another.

States are also known as nodes in a connected graph and the edges are denoted as operators. Problem solving can be formulated as search in state space. For example to find the solution of an 8 puzzle game which is represented as 3*3 matrix.             

123
45
678


 One of the tile is unoccupied by moving this tile to other positions we can create new states. For example if I move this unoccupied block to right then it becomes

123
4 5
678

            New state    

Here we can create ‘n’ number of states. The number of new states generated all together constitutes to a state space.

All of these states of the domain and all of these operators. In this case it could be 4 operators they are the tile can move towards right, left ,up and down. All these operators together constitute to asset of operators. Once the set of operators and actions are defined then move on to finding solution.

For suppose there are two states start state and end state. If the path from start state to end state is found then the problem is solved. State space is defined as the set of all possible configurations that one get from the relevant objects. This is also referred to problem space.

Let us take previous example 3*3 matrix having 8 elements and one empty space. This empty space is a problem state. Suppose the first matrix is start and the second is destination, the path from ‘S’ to ’D’ the total number of configurations is 9!.

123
45
678

       Start state ‘S’       

123
84
765

    Destination State ‘D’

Lakshmi Durga

Share
Published by
Lakshmi Durga

Recent Posts

Google Spam Update 2025: Impact, Recovery Guide & SpamBrain Explained

Google released a spam update on 26th of August 2025 and this is affecting a…

2 months ago

Google Experiments with Black Sitelink Colors instead of Blue

Google keeps on testing google search display all the time and this time we are…

1 year ago

What are Template Tags in WordPress? How to Use Template Tags

In wordpress if you are developing new or custom wordpress theme or wordpress plugin then…

2 years ago

Google Search Indexing Issues Started on 31st January to February 2024

If you are experiencing indexing issues of your website then you are not alone and…

2 years ago

Create QR Code for Pages & Post using Plugin in WordPress

On your wordpress website if you want to generate qr code for pages and posts…

2 years ago

Add Google Search Console HTML File Upload on WordPress

If you are trying to verify your WordPress website with google search console with html…

2 years ago