Artificial Intelligence: A Modern Approach
3rd Edition
ISBN: 9780136042594
Author: Stuart Russell, Peter Norvig
Publisher: Prentice Hall
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 5, Problem 12E
Explanation of Solution
Minimax and alpha-beta algorithms for two-player, non-zero games
- The minimax
algorithm for non-zero-sum games works exactly as for multiplayer games. - The evaluation function is a
vector of values, one for each player...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
In a lecture the professor said that for every minimum spanning tree T of G there is an execution of the algorithm of Kruskal which delivers T as a result. ( Input is G).
The algorithm he was supposedly talking about is:
Kruskal()
Precondition. N = (G, cost) is a connected network with n = |V| node and m = |E| ≥ n − 1 edges.All edges of E are uncolored.
postcondition: All edges are colored. The green-colored edges together with V form one MST by N.
Grand Step 1: Sort the edges of E in increasing weight: e1 , e2, . . . , em
Grand step 2: For t = 0.1, . . . , m − 1 execute: Apply Kruskal's coloring rule to the et+1 edge
i dont really understand this statement or how it is done. can someone explain me what he meant?
Write the algorithm that finds and returns how many paths in k units of length between any given two nodes (source node, destination node; source and target nodes can also be the same) in a non-directional and unweighted line of N nodes represented as a neighborhood matrix. (Assume that each side in the unweighted diagram is one unit long.)
Note: By using the problem reduction method of the Transform and Conquer strategy, you have to make the given problem into another problem.
Algorithm howManyPath (M [0..N-1] [0..N-1], source, target, k)// Input: NxN neighborhood matrix, source, target nodes, k value.// Ouput: In the given line, there are how many different paths of k units length between the given source and target node.
Suppose a biking environment consists of n ≥ 3 landmarks,which are linked by bike route in a cyclical manner. That is, thereis a bike route between landmark 1 and 2, between landmark 2 and 3,and so on until we link landmark n back to landmark 1. In the centerof these is a mountain which has a bike route to every single landmark.Besides these, there are no other bike routes in the biking environment.You can think of the landmarks and the single mountain as nodes, andthe bike routes as edges, which altogether form a graph G. A path is asequence of bike routes.What is the number of paths of length 2 in the graph in termsof n?What is the number of cycles of length 3 in the graph in termsof n?What is the number of cycles in the graph in terms of n?
Chapter 5 Solutions
Artificial Intelligence: A Modern Approach
Knowledge Booster
Similar questions
- n = 9. sign and Analysis of Algorithms (3rd ed.) [Levitin 2011-10-09].pdf ✓ 1 2 3 zoom O 4 O 5. How would you modify the dynamic programming algorithm for the coin- collecting problem if some cells on the board are inaccessible for the robot? Apply your algorithm to the board below, where the inaccessible cells are shown by X's. How many optimal paths are there for this board? 1 3 4 5 6 8.1 Three Basic Examples 2 X O 5 XXX 2 O Xo X O Search Fri May 12 291 6. Rod-cutting problem Design a dynamic programming algorithm for the fol- lowing problem. Find the maximum total sale price that can be obtained by cutting a rod of n units long into integer-length pieces if the sale price of a piece i units long is p; for i = 1, 2, ..., n. What are the time and space efficiencies of your algorithm? 7. Shortest-path counting A chess rook can move horizontally or vertically to any square in the same row or in the same column of a chessboard. Find the number of shortest paths by which a rook can move…arrow_forwardA weighted graph consists of 5 nodes and the connections are described by: i. ii. iii. iv. Node 1 is connected with nodes 2 and 3 using weights 2 and 6 respectively.Node 2 is connected with nodes 3, 4 and 5 using weights 7, 3 and 4 respectively.Node 3 is connected with nodes 4 and 5 using weights -2 and 2 respectively.Node 4 is connected with node 5 using weight -1. Solve the problem for finding the minimum path to reach each nodes from the first nodearrow_forwardYou are given a graph G = (V, E) with positive edge weights, and a minimum spanning tree T = (V, E') with respect to these weights; you may assume G and T are given as adjacency lists. Now suppose the weight of a particular edge e in E is modified from w(e) to a new value w̃(e). You wish to quickly update the minimum spanning tree T to reflect this change, without recomputing the entire tree from scratch. There are four cases. In each case give a linear-time algorithm for updating the tree. Note, you are given the tree T and the edge e = (y, z) whose weight is changed; you are told its old weight w(e) and its new weight w~(e) (which you type in latex by widetilde{w}(e) surrounded by double dollar signs). In each case specify if the tree might change. And if it might change then give an algorithm to find the weight of the possibly new MST (just return the weight or the MST, whatever's easier). You can use the algorithms DFS, Explore, BFS, Dijkstra's, SCC, Topological Sort as…arrow_forward
- A bus driver has a job to show a group of tourists around different cities. All edges denote the pairs of cities connected by two-way roads. Each pair of neighboring cities on each edge has a bus service that runs between two cities. Each edge has a particular limit on the maximum number of passengers it can carry and the driver wants to take as many tourists as possible on each trip from departure city to the destination city. Note that the bus is big enough it can take any number of passengers as long as the roads permit. For the following road map of seven cities and the number on each edge indicates the passenger limit. For this specific example, the best route to take is 1 - 2 - 4 - 7 when 1 is the departure city and 7 is the destination city. Describe the pseudocode of your algorithm to find the best route (1-2-4-7 in our example) for any road graph to carry most tourists on a trip. Your description should be general, and not tied to a specific example. You must justify…arrow_forwardA company has 3 cars and 2 repairmen. The breakdown time of a car is an exponential random variable with an average of 10 hours. On average, each repairman repairs a car every 10 hours. The average number of healthy and average cars when a car breaks down is desirable.with use of M/M/ C/M queueing model.arrow_forwardYou are given a weighted tree T.(As a reminder, a tree T is a graph that is connected and contains no cycle.) Each node of the tree T has a weight, denoted by w(v). You want to select a subset of tree nodes, such that weight of the selected nodes is maximized, and if a node is selected, then none of its neighbors are selected.arrow_forward
- I have spent hours on internet to find an example of iterative lengthening search algorithm but found nothing. I need it ASAP. Can anyone help me? Please. It is its definition: Iterative lengthening search is an iterative analogue of uniform-cost search. The basic idea is to use increasing limits on path cost. If a node is generated whose path cost exceeds the current limit, it is immediately discarded. For each new iteration, the limit is set to the lowest path cost of any node discarded in the previous iteration. I dont understand many things in this definition. 1-What is the first limit before we start? 2-Do we delete the discarded node from the graph or what? 3-What is the generated node? Is it expanded or is it just found as neigbor? 4-What is "lowest path cost of any node discarded"?? Path from where to where?? From start to that node or what? 5-What does path cost mean in this problem? Is it from source to the new node or between current node and next chosen node? I am literally…arrow_forwardGiven N cities represented as vertices V₁, V2, 9 un on an undirected graph (i.e., each edge can be traversed in both directions). The graph is fully-connected where the edge ei, connecting any two vertices vį and vj is the straight-line distance between these two cities. We want to search for the shortest path from v₁ (the source) to vn (the destination). Assume that all edges have different values, and e₁, has the largest value among the edges. That is, the source and destination have the largest straight-line distance. Compare the lists of explored vertices when we run the uniform-cost search and the A* search for this problem. Hint: The straight-line distance is the shortest path between any two cities. If you do not know how to start, try to run the algorithms by hand on some small cases first; but remember to make sure your graphs satisfy the conditions in the question.arrow_forward3. Suppose that we want to know which agents are connected by a walk of length two in a given network. That is, want to know the set of ordered pairs (i, j) such that there exists a walk of length 2 between any i and j. Define n as the number of nodes and m as the number of links. (a) One way to do this is to input the adjacency matrix A, calculate A2, then output all pairs (i, j) for which A(i) > 0. Defining scalar multiplication and addition as "basic operations," up to a constant c, how many "basic operations" are required to calculate A², in terms of n and m? (Hint: First think about how many operations are required to calculate each entry of A²2, then multiply by the number of entries.) (b) Suppose that we want to know the number of agents who are connected by a walk of length k in a given network, where k≥ 1. Up to a constant, how many basic operations are required to calculate Ak, in terms of n and m? (c) (Harder) We showed in class (Lecture 4) that a simple adaptation of…arrow_forward
- Recall that we discussed the "leader-based" deterministic distributed algorithm for 2-colouring a path, that runs in time O(n) on an n node path network. Suppose we now relax the constraint of 2-colouring to mean, it is okay for one of the neighbours of a node to x get the same colour as the mode x, as long as the other neighbour gets a different colour. The end points must get a different colour from their respective unique neighbours. The running time for a best efficiency deterministic distributed algorithm, using unique identifiers for nodes, for this problem would be:arrow_forward1. Enter G = (V, E)Results: MIS I of G3. I ← ∅4. V ← V5. while V equals6. Give each vertex v V a random integer r(v).7. parallel V for all v8. if r(v) is the lowest value among all peers.9. I ← I ∪ {v}10. V ← V \ {v ∪ N(v)}With a high degree of probability, this method ends in O(log n)rounds [3]. Lines 7–10 of the method can be executed in parallel, which will speed things up.Make the specified method in Python?arrow_forwardAlgorithm : Testing MembershipInput : a group G acting on f~ = { 1,2 ..... n };a permutation g of f~ = { 1,2 ..... n };a base and strong ~enerating set for G;Schreier vectors v (i) , 1 < i < k, for the stabiliser chain;Output: a boolean value answer, indicating whether g ~ G;arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
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