Artificial Intelligence: A Modern Approach
3rd Edition
ISBN: 9780136042594
Author: Stuart Russell, Peter Norvig
Publisher: Prentice Hall
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 5, Problem 10E
a.
Explanation of Solution
Upper bound
- An upper bound on the number of terminal nodes is N!...
b.
Explanation of Solution
Lower bound
- In this case, no bounds will terminate early.
- There are N! dif...
c.
Explanation of Solution
Plausible evaluation function
- For a state s, X(s) is the number of winning positions...
d.
Explanation of Solution
Checking winning position
- Using the upper bound of N!, it takes 100N N! instructions...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Given a set of n positive integers, C = {c1,c2, ..., cn} and a positive integer K, is there a subset of C whose elements sum to K? A dynamic program for solving this problem uses a 2-dimensional Boolean table T, with n rows and k + 1 columns. T[i,j] 1≤ i ≤ n, 0 ≤ j ≤ K, is TRUE if and only if there is a subset of C = {c1,c2, ..., ci} whose elements sum to j. Which of the following is valid for 2 ≤ i ≤ n, ci ≤ j ≤ K?
a) ?[?, ?] = ( ?[? − 1, ?] ?? ?[?, ? − ?? ])
b) ?[?, ?] = ( ?[? − 1, ?] ??? ?[?, ? − ?? ])
c) ?[?, ?] = ( ?[? − 1, ?] ?? ?[? − 1, ? − ?? ])
d) ?[?, ?] = ( ?[? − 1, ?] ??? ?[? − 1, ? − ?? ])
In the above problem, which entry of the table T, if TRUE, implies that there is a subset whose elements sum to K?
a) ?[1, ? + 1]
b) ?[?, ?]
c) ?[?, 0]
d) ?[?, ? + 1]
Let the Universal set be {a,b,c,d,e,f,g,h,i,j]
Consider the subsets
A = {a,d,h,i}
B= {b,c,d.,f,i,j}
C = {a,c,e,f,g,}
What is (An B' )'?
We can implement requests to the waiter as either a queue of requests or as a periodic retry of a request. With a queue, requests are handled in the order they are received. Th e problem with using the queue is that we may not always be able to service the philosopher whose request is at the head of the queue (due to the unavailability of resources). Describe a scenario with 5 philosophers where a queue is provided, but service is not granted even though there are forks available for another philosopher (whose request is deeper in the queue) to eat.If we implement requests to the waiter by periodically repeating our request until the resources become available, will this solve the problem described in the above Exercise? Explain.
Chapter 5 Solutions
Artificial Intelligence: A Modern Approach
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Design and explain a generic m-round winner tournament, Round-Winner-Tournament(P,m), for players P, in which the participants are matched randomly in each round 0, 1,...,m 1, and the winners advance to the next round. Following round m 1, the champion is chosen at random from among the remaining participants. This tournament structure, interestingly, contains the following special cases: m = 0 is a random selection tournament, m = 1 is a random pairing tournament, and m = lg |P| is a single elimination seeding tournament.arrow_forwardGiven an abstraction of the City Tube Map where each node represents the city’s attraction, plan the trip for the tourist to visit. Start from node 1 that is their hotel, a group of tourists wants to visit all places. However, due to the time limitation, they can only visit each attraction once. To find the best order of places to visit, genetic algorithm can be used to derive the best possible solutions.arrow_forward) Let O be the set of odd numbers and O’ = {1, 5, 9, 13, 17, ...} be its subset. Definethe bijections, f and g as:f : O 6 O’, f(d) = 2d - 1, d 0 O.g : ø 6 O, g(n) = 2n + 1, n 0 ø.Using only the concept of function composition, can there be a bijective map from øto O’? If so, compute it. If not, explain in details why not...................................................................................................................................... [2+8]b) A Sesotho word cannot begin with of the following letters of alphabet: D, G, V, W,X, Y and Z.We define the relation: A Sesotho word x is related to another Sesotho word y if xbegins with the same letter as y.Determine whether or not this is an equivalence relation.If it is an equivalence relation then1. Compute C(sekatana)2. How many equivalence classes are there in all, and why?3. What is the partition of the English words under this relation?If it is NOT an equivalence relation then explain in details why it is notarrow_forward
- 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?arrow_forwardA wave is modeled by the wave function: y (x, t) = A sin [ 2π/0.1 m (x - 12 m/s*t)] y1 (t) = A sin (2πf1t) y2 (t) = A sin (2πf2t) Using any computer program, construct the wave dependency graph resultant y (t) from time t in the case when the frequencies of the two sound waves are many next to each other if the values are given: A = 1 m, f1 = 1000 Hz and f2 = 1050 Hz. Comment on the results from the graph and determine the value of the time when the waves are with the same phase and assemble constructively and the time when they are with phase of opposite and interfere destructively. Doing the corresponding numerical simulations show what happens with the increase of the difference between the frequencies of the two waves and vice versa.arrow_forwardthe closest-pair problem can be posted in the 3-dimensional space, in which the euclidean distance between two points p1(x1, y1, z1) and p2(x2, y2, z2) is defined as d = √(x1−x2)^2+(y1−y2)^2+(z1−z2)^2 what is the time-efficiency class of the brute-force algorithm for the 3-dimensional closest-pair problem?arrow_forward
- Think about the concept of extended transition functions δ* and ∆* of Deterministic Finite Automata and Nondeterministic Finite Automata respectively. Prove the following facts about those functions using mathematical induction. 1. Given a DFA M = (Q, Σ, δ, s0, F) and strings x, y ∈ Σ*, we have δ*(q, xy) = δ*(δ*(q, x), y). 2. Given a NFA N = (Q, Σ, ∆, S0, F), subsets A ⊆ Q, B ⊆ Q and a string x ∈ Σ∗, we have ∆* (A ∪ B, x) = ∆*(A, x) ∪ ∆*(B, x).arrow_forwardConsider a graph that is represented as below in python D={'A':{'V','Z'},'K':{'R','V'}, 'R':{'A','Z','V'},'V':{'K','A','F'},'Z':{'A','F'},'F':{}} construct a function in PYTHON that takes a dict like D and a node N and get length of the lengthiest path from N to final state without repeating nodes which is the empty dictonary.It is F for dict d length_extreme(D,'A') should give us 6. for reference lengthiest path is A,V,K,R,Z,F CANNOT import any libraries, CAN use only loops,recursion,map,filter and fold.arrow_forwardAnswer the given question with a proper explanation and step-by-step solution. You are asked to pick up a project on building highways to connect all cities in the country. The cost of building a highway between two cites i and j is c(i, j) > 0. If you were in charge from the beginning, this would have been a minimum spanning tree problem and could be solve easily with the algorithms covered in class. Since you pick it up halfway, however, some suboptimal choices have already been made by your predecessor. In other words, highways were already built between some pairs of cities. Design an algorithm to find a cost minimizing set of highways to built subject to the choices already made. Do not copy others.arrow_forward
- Although the plot function is designed primarily for plotting standard xy graphs, it can be adapted for other kinds of plotting as well. b. Make a plot of the curve, which is defined parametrically by the equations x = 2cosθ + cos2θ, y = 2sinθ - sin2θ, where 0 < θ < 2π. Take a set of values of θ between zero and 2π and calculate x and y for each from the equations above, then plot y as a function of x. b. Taking this approach a step further, one can make a polar plot r = f(θ) for some function f by calculating r for a range of values of θ and then converting r and θ to Cartesian coordinates using the standard equations x = r cosθ, y = r sinθ. Use this method to make a plot of the function r = ecosθ – 2 cos(4θ) + sin5 (θ/12) in the range 0 <= θ <= 24π. use python code to answer the highlight onearrow_forwardImplement the algorithm for an optimal parenthesization of a matrix chain product as dis-cussed in the class.Use the following recursive function as part of your program to print the outcome, assumethe matrixes are namedA1, A2, ..., An.PRINT-OPTIMAL-PARENS(s, i, j){if (i=j) thenprint “A”i else{print “(”PRINT-OPTIMAL-PARENS(s,i,s[i, j])PRINT-OPTIMAL-PARENS(s, s[i, j] + 1, j)print “)”} }a- Test your algorithm for the following cases:1. Find and print an optimal parenthesization of a matrix-chain product whose sequenceof dimensions is<5,10,3, X,12,5,50, Y,6>.2. Find and print an optimal parenthesization of a matrix-chain product whose sequenceof dimensions is<5,10,50,6, X,15,40,18, Y,30,15, Z,3,12,5>. 3. Find and print an optimal parenthesization of a matrix-chain product whose sequenceof dimensions is<50,6, X,15,40,18, Y,5,10,3,12,5, Z,40,10,30,5>. X=10 Y=20 Z=30arrow_forwardPLEASE ANSWER ALL PARTS OF THIS QUESTION. For the following directed graph, let ? = {?,?,?, ?, ?} and let ? = {?, ?, ?, ?}. For the definition of ? below, determine if ? is a function. If it is a function, state its domain and codomain in the form “?:? → ?” and give a table of values that lists each element ? of the domain along with the corresponding element ��(?) of the codomain. If the given ? is not a function, explain why not. If ? is a vertex, then ?(?) is the indegree of ?.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