Lec-4: What is State Space Search | Introduction to Problem Solving in Artificial Intelligence — Transcript
Full transcript
- 0:00Hello friends welcome to Gate Smashers
- 0:02In today's video we are going to discuss
- 0:05State space searching
- 0:06It is one of the major application of artificial intelligence
- 0:09Problem solving
- 0:10That is how to solve a particular problem
- 0:12And if we talk about era of 1960-1970
- 0:15At that time the major research that was done in artificial intelligence
- 0:19That is done on problem solving
- 0:22And in which if we talk related to game
- 0:24Like tic tac toe game is there
- 0:26Water jug problem, 8 queen problem
- 0:28Chess game, Go
- 0:29How can we solve these problems
- 0:32Through machines
- 0:33Through agent
- 0:34As human being solves the problem
- 0:37In the same way we want that the machine should solve the problem
- 0:40So that is called a problem solving area
- 0:43In problem solving area
- 0:45State space searching is very important
- 0:48What is the reason
- 0:50What is it's meaning, what is the meaning of state space over here
- 0:53Number of states
- 0:55In which the problem can go
- 0:57All the different states
- 0:59If we normally talk on our level also
- 1:02Let's say if we start research on any topic
- 1:05If we start research
- 1:06Then obviously we will not reach at all the places in one time
- 1:10We start with a start state
- 1:12We have a goal state
- 1:14Now it is possible that between start and goal state there are some intermediate state
- 1:18We go level by level
- 1:20We achieve our goal state
- 1:22So all the set of states
- 1:24We use them in the form of representation
- 1:27Because in artificial intelligence we majorly talk
- 1:30How to represent the problem
- 1:34Precisely
- 1:35Because representing a problem is a major task
- 1:38Because if you are giving this problem to your machine or to your agents
- 1:42Then you cannot tell it verbally
- 1:45That this is the problem
- 1:47You see for yourself also
- 1:48If you start playing any new game
- 1:50You do not know anything about that game
- 1:51In your house your elders are playing your brothers and sisters are playing
- 1:54So obviously you want someone to tell you that how to play that game
- 1:57Tell me all the rules once
- 2:00Which are the set of states in it
- 2:03How will I play it
- 2:03All these points
- 2:04It is necessary for you to represent the problem precisely
- 2:09And other than that
- 2:12If we will represent it precisely
- 2:14Then we can also easily analyze it
- 2:17How we have to play the game
- 2:19How we can take steps one by one
- 2:22So to represent the problem precisely
- 2:25And if you want to represent the problem in all set of states
- 2:29Then we use the 'state space search'
- 2:33And over here we use this tupple
- 2:36In which S represents total number of states
- 2:39And which are the major states in S
- 2:42Start state
- 2:43Goal state
- 2:44Intermediate states are there
- 2:47Obviously between start and goal there will be some intermediate states
- 2:50Then A
- 2:52A is set of actions
- 2:54All possible actions
- 2:55Let's say we take an example
- 2:588 puzzle problem
- 3:01If we talk about 8 puzzle problem
- 3:03So obviously what I want in it first of all
- 3:05That I tell my machine or agent, the problem very clearly
- 3:09So what are you telling in 8 puzzle problem
- 3:11That we have a board of 3 * 3
- 3:14And we have 9 spaces in board of 3*3
- 3:18Obviusly the board is of 3*3 so how many places we will have
- 3:21We will have 9 places
- 3:23In which we have 8 tiles
- 3:25Which are numbered
- 3:26Lets say we have number 2
- 3:283, 4, 1, 6, 7, 8
- 3:375
- 3:38Let's say in this way
- 3:39Now I have random tiles numberd 1,2,3,4,5,6,7,8
- 3:43I have numbered tiles
- 3:45And I have one empty space
- 3:48Now over here first of all I have to represent the problem precisely
- 3:52That I have board of 3*3
- 3:54And these are the plates that I have
- 3:55Next what we have
- 3:57I know that this is my start state
- 4:01Now I want goal state
- 4:03Where I want to reach
- 4:04Otherwise you will keep on searching
- 4:06Obviously somewhere you should know your goal state
- 4:09So let's say if we define our goal state
- 4:11That this is my goal state
- 4:13Then you can easily start your search from goal state
- 4:18So that you can reach to goal state
- 4:20Let's say this is my goal state 1,2,3,4,5,6,7,8
- 4:26This is my goal state
- 4:28This is my start state
- 4:29Now when we start searching
- 4:32When we start exploring it
- 4:34Then obviously my intermediate states will start forming
- 4:37So I will compare each intermediate state with this
- 4:41Whether it is my goal state or not
- 4:43When I will get, then the searching will stop over there
- 4:45So this is the basic concept
- 4:47Of searching
- 4:47Actions
- 4:49If we talk about all possible actions
- 4:51What A? All possible actions
- 4:52What are all possible actions
- 4:54That my empty space
- 4:56Either I can move it upward
- 4:59I can move it downward
- 5:00I can move it left
- 5:02Or I can move it right
- 5:05These are my 4 possibilities
- 5:07These are the 4 possibilities I have
- 5:09You should know about legal and illegal moves
- 5:12Obviously, you will say that I can take 5 over here, and I will move 2 over here
- 5:16No
- 5:17That is a illegal state
- 5:18So you should know all the rules over here
- 5:22You will have to predefine them
- 5:23So over here what am I saying
- 5:25That the empty space can be replaced by left, right, up or down
- 5:31Now I will choose any one action from that
- 5:34I will have to choose any one action
- 5:36Let's say in this
- 5:38First of all move upward
- 5:41So what is the meaning of moving upward
- 5:43That this my new state
- 5:45Which you can say it is an intermediate state
- 5:48In which what I have done
- 5:49I have moved the space upward
- 5:51That means 3 came here
- 5:52Other places are as it is
- 5:57In this way
- 5:57What can be the second one
- 5:59Let's say if I move it downwards
- 6:01Then I can move it this way
- 6:03Like this
- 6:06I will take the space down
- 6:087 will come up
- 6:09Rest of the concept is the same
- 6:115, 1, 8, 6
- 6:14So this I ahve bought space downward
- 6:17In the same way if we keep the space on left side
- 6:19Then this will be formed over here like this
- 6:25If I do it on left then 5 will come here
- 6:262,3,4,1,6,7,8
- 6:31In the same way you can move it to right side
- 6:34What are doing actually
- 6:36You are starting to explore your searching
- 6:40And these are different branches
- 6:42These different branches are getting formed
- 6:44Then what you can do ahead in this
- 6:47Look here carefully
- 6:48You can either move the space in left
- 6:51Or you can move it right
- 6:52Or you can move it down
- 6:54You cannot move it up
- 6:55In the same way if we talk over here
- 6:57You cannot move down
- 6:58You can go up, left and right
- 6:59If we talk in this then, you can do up
- 7:01You can do right and down
- 7:03But you cannot do left
- 7:04So this is set of all possible
- 7:06But from that which one you have chosen
- 7:08In this which one you have chosen?
- 7:10You moved upward
- 7:12So which ever set of action you choose, it will be this Action(s)
- 7:17Then result
- 7:18Result means you are reaching on which result
- 7:21On which resultant state you are reaching
- 7:23So let's say these all are resultant only
- 7:26Now after this if you move it left side
- 7:29Then the next state
- 7:30That will be one of my resultant state
- 7:32Then comes cost
- 7:34We measure it in cost
- 7:35What is the meaning of cost
- 7:36Generally we consider that
- 7:38That I have moved this once on the left side
- 7:40Then let's say we will take its cost
- 7:421
- 7:43Generally in spanning tree we find the distance
- 7:46Then at the time of distance
- 7:47We generally use
- 7:49If I want to go from one place to another place or from one edge to another edge
- 7:52Or from One node I want to reach to another node
- 7:55Then how much distance I am covering
- 7:57That can be time
- 7:59Anything, we will consider a general constant value
- 8:01That is called a cost
- 8:03So obviously we want that our searching
- 8:06It should be in minimum cost
- 8:08The obviously that solution
- 8:11That we will count as best solution
- 8:14So what benefit you are getting from state based search
- 8:18One is that you are precisely defining
- 8:20Your agent can properly analyze that how we can move
- 8:24And we talk in artificial intelligence
- 8:27Next important point
- 8:29That when we start the searching
- 8:31In any problem
- 8:33Water jug or 8 queen
- 8:34Or you consider 8 puzzle
- 8:3615 puzzle, chess
- 8:37In any of them
- 8:38Now we have started exploring this
- 8:39Ahead of this also state will be formed in this
- 8:41Further states of this also will be formed
- 8:43So all the states that are formed
- 8:45That means you are going on searching
- 8:47You are searching for goal state
- 8:48So we do searching in how many ways?
- 8:51We do searching in 2 ways
- 8:53Either we do it uninformed
- 8:55Which we call as blind search
- 8:57What is the meaning of blind
- 8:59I don't know anything about the domain about my problem
- 9:02I just know start and goal
- 9:03I keep on exploring
- 9:05And I am matching each state with this
- 9:08Or we have informed search
- 9:11In informed search we use concept of heuristic
- 9:15Due to which we try to solve the problem quickly
- 9:19In which we go towards benefit towards local benefit
- 9:23So that my problem can get solved quickly
- 9:25Because uninformed takes exponential time
- 9:29Because in uninformed
- 9:30B^d
- 9:32Time complexity is O(b^d)
- 9:34In which b is branching factor
- 9:36If we talk about this when we started how many branches were formed
- 9:404 branches will be formed
- 9:42It is possible after this next there can be 3-4 branches
- 9:44In the same way the number of branches that are formed
- 9:47And depth
- 9:49Depth means till how much depth this will go
- 9:52Which is it's tree
- 9:53If we talk over here
- 9:54What is it's depth 1
- 9:56Then we explored it ahead
- 9:57Then over here this is one depth
- 9:58That means from root till leaf how much depth is going
- 10:03That is called depth
- 10:04So in this I will tell you about uninformed over here
- 10:07Although I have explained uninformed and informed in the next video
- 10:11Their all the differences
- 10:12Basically uninformed
- 10:14Non-polynomial that means it grows exponential time
- 10:18Like if we talk about this problem
- 10:21When you will make state spaces
- 10:23When you will make number of states
- 10:25Then it can grow upto 3^20 number of states
- 10:30That means more then 3.5 billion states can be covered
- 10:34Somewhere for a machine or agent
- 10:39It is more time consuming to cover so many states
- 10:42That's why we prefer to
- 10:44Use informed searching
About this transcript
This page contains the full transcript of Lec-4: What is State Space Search | Introduction to Problem Solving in Artificial Intelligence by Gate Smashers, generated from the public captions YouTube serves with the video. The transcript has 1,797 words across 271 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.