Artificial Intelligence: A Modern Approach
3rd Edition
ISBN: 9780136042594
Author: Stuart Russell, Peter Norvig
Publisher: Prentice Hall
expand_more
expand_more
format_list_bulleted
Question
Chapter 3, Problem 24E
Program Plan Intro
Graph search algorithms:
- The graph search algorithms are used to find a particular node of a graph easily by traversing through its nodes.
- There are two type of graph searching algorithms are available. That are, depth-first search
algorithm and breadth first search algorithm. - The depth-first search has a basic level which is uniformed search where, the algorithm searches in a path until it reaches the end of the graph. After the reaching the end, the search starts at the end and backtracks to the start node and tries a different path.
- The breadth-first search algorithms perform searches by exploring one layer of graph at a time. Here the search starts with one level away from the start node, followed by depth level two, followed by depth level three and so on until the entire graph is traversed.
Inconsistent heuristic:
- A heuristic function is said to be inconsistent in the analysis of path-finding problems in
artificial intelligence , if its approximation is always greater than to the approximate distance from any neighbouring vertex to the target. - Inconsistent heuristic can be represented as,
h(N) > c(N,P) + h(P)
where,
- h is the consistent heuristic function
- N is any node of the graph
- P is any decedent of N
- G is the goal node
- c(N,P) is the cost of reaching node P from N
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
In Computer Science a Graph is represented using an adjacency matrix. Ismatrix is a square matrix whose dimension is the total number of vertices.The following example shows the graphical representation of a graph with 5 vertices, its matrixof adjacency, degree of entry and exit of each vertex, that is, the total number ofarrows that enter or leave each vertex (verify in the image) and the loops of the graph, that issay the vertices that connect with themselvesTo program it, use Object Oriented Programming concepts (Classes, objects, attributes, methods), it can be in Java or in Python.-Declare a constant V with value 5-Declare a variable called Graph that is a VxV matrix of integers-Define a MENU procedure with the following textGRAPHS1. Create Graph2.Show Graph3. Adjacency between pairs4.Input degree5.Output degree6.Loops0.exit-Validate MENU so that it receives only valid options (from 0 to 6), otherwise send an error message and repeat the reading-Make the MENU call in the main…
comp science
Please help me with this practice problem in python : Implement two-level iterative method B = B_{TL} for graph Laplacian matrices. We want the symmetric B.
Components: Given a graph, construct its graph Laplacian matrix. Then using Luby's algorithm, construct the P matrix that ensures a prescribed coarsening factor, e.g., 2, 4, or 8 times smaller number of coarse vertices.
Since the graph Laplacian matrix is singular (it has the constants in its nullspace), to make it invertible, make its last row and columns zero, but keep the diagonal as it were (nonzero). The resulting modified graph Laplacian matrix A is invertible and s.p.d..
Form the coarse matrix A_c = P^TAP.
To implement symmetric two-level cycle use one of the following M and M^T:
(i) M is forward Gauss-Seidel, M^T - backward Gauss-Seidel (both corresponding to A)
(ii) M = M^T - the ell_1 smoother.
Compare the performance (convergence properties in terms of number of iterations) of B w.r.t. just using the smoother M…
Chapter 3 Solutions
Artificial Intelligence: A Modern Approach
Ch. 3 - Explain why problem formulation must follow goal...Ch. 3 - Prob. 2ECh. 3 - Prob. 3ECh. 3 - Prob. 4ECh. 3 - Prob. 5ECh. 3 - Prob. 6ECh. 3 - Prob. 8ECh. 3 - Prob. 9ECh. 3 - Prob. 10ECh. 3 - Prob. 11E
Ch. 3 - Prob. 12ECh. 3 - Prob. 13ECh. 3 - Prob. 14ECh. 3 - Prob. 15ECh. 3 - Prob. 16ECh. 3 - Prob. 17ECh. 3 - Prob. 18ECh. 3 - Prob. 20ECh. 3 - Prob. 21ECh. 3 - Prob. 22ECh. 3 - Trace the operation of A search applied to the...Ch. 3 - Prob. 24ECh. 3 - Prob. 25ECh. 3 - Prob. 26ECh. 3 - Prob. 27ECh. 3 - Prob. 28ECh. 3 - Prob. 29ECh. 3 - Prob. 31ECh. 3 - Prob. 32E
Knowledge Booster
Similar questions
- (V, E) be a connected, undirected graph. Let A = V, B = V, and f(u) = neighbours of u. Select all that are true. Let G = a) f: AB is not a function Ob) f: A B is a function but we cannot always apply the Pigeonhole Principle with this A, B Odf: A B is a function but we cannot always apply the extended Pigeonhole Principle with this A, B d) none of the abovearrow_forwardPart 2: Random GraphsA tournament T is a complete graph whose edges are all oriented. Given a completegraph on n vertices Kn, we can generate a random tournament by orienting each edgewith probability 12 in each direction.Recall that a Hamiltonian path is a path that visits every vertex exactly once. AHamiltonian path in a directed graph is a path that follows the orientations of thedirected edges (arcs) and visits every vertex exactly once. Some directed graphs havemany Hamiltonian paths.In this part, we give a probabilistic proof of the following theorem:Theorem 1. There is a tournament on n vertices with at least n!2n−1 Hamiltonian paths.For the set up, we will consider a complete graph Kn on n vertices and randomlyorient the edges as described above. A permutation i1i2 ...in of 1,2,...,n representsthe path i1 −i2 −···−in in Kn. We can make the path oriented by flipping a coin andorienting each edge left or right: i1 ←i2 →i3 ←···→in.(a) How many permutations of the vertices…arrow_forwardMinimize the following boolean function- F(A, B, C) = Σm(1, 2, 5, 7) + Σd(0, 4, 6) Fill the cells of the K Map using the given boolean function. Form groups based on k-map rules What is the minimized boolean expression?arrow_forward
- Consider the following graph and a heuristic fucntion h. Please check if h is admissiblearrow_forwardI need the algorithm, proof of correctness and runtime analysis for the problem. No code necessary ONLY algorithm. And runtime should be O(n + m) as stated in the question.arrow_forwardI have seen answers on chegg, I want newarrow_forward
- Q6. Given graph G = (V, E), the graph G'= (V', E') is defined such that (u,v) is in E' if and only if G contains a path with at most two edges between u and v. Describe an efficient algorithm for computing G' from G. Once develop the algorithm assuming G has an adjacency-matrix representation and once develop the algorithm assuming adjacency-list representation for the graph. Analyze the running times of your algorithms.arrow_forward2. Find the regular expression for the following Finite Automaton. For this you are requested to find first the generalized transition graph. b b qo q2 a boarrow_forwardLet A={+,x,a,b}. Show that (a*V ba)+ b is regular over A.arrow_forward
- In breadth-first and depth-first search, an undiscovered node is marked discovered when it is first encountered, and marked processed when it has been completely searched. At any given moment, several nodes might be simultaneously in the discovered state. (a) Describe a graph on n vertices and a particular starting vertex v such that Θ(n) nodes are simultaneously in the discovered state during a breadth-first search starting from v. (b) Describe a graph on n vertices and a particular starting vertex v such that Θ(n) nodes are simultaneously in the discovered state during a depth-first search starting from v.arrow_forwardAlgorithm DEGENERATIONSGiven a rational proper parametrization P(t) = χ1 1(t) χ1 2(t) , χ2 1(t) χ2 2(t)∈ L(t)2,where L is a computable subfield of R, of an affine rational curve C, the algorithm computes DParrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education