Artificial Intelligence: A Modern Approach
3rd Edition
ISBN: 9780136042594
Author: Stuart Russell, Peter Norvig
Publisher: Prentice Hall
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 4, Problem 1E
Give the name of the
- a. Local beam search with k = 1.
- b. Local beam search with one initial state and no limit on the number of states retained.
- c. Simulated annealing with T = 0 at all times (and omitting the termination test).
- d. Simulated annealing with T = ∞ at all times.
- e. Genetic algorithm with population size N = 1.
Expert Solution & Answer
Explanation of Solution
a.
The local beam search with “k=1” is hill-climbing search.
b.
- Local beam search with one initial state and no limit on the number of states retained resembles with Breadth-First search.
- In breadth first search, before adding the next layer it adds one complete layer nodes.
- Starting from one state, the algorithm would be essentially identical to breadth-first search except that each layer is generated all at once.
c.
Simulated annealing with “T=0” at all time:
- There is a fact that termination step would be triggered immediately. Ignoring this fact, the search would be identical to first choice hill climbing.
- This is because; every downward successor would be rejected with probability 1.
d.
Simulated annealing with “T = ∞” at all times is a random-walk search, it always accepts a new state.
e.
Generic algorithm with population size “N=1”:
- The two selected parents will be same individual, if the population size is “1”.
- The crossover yields an exact copy of individuals. Here, the mutation chance occurs.
- Thus, the algorithm executes a random walk in the space of individuals.
Want to see more full solutions like this?
Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
schedule05:06
Students have asked these similar questions
Computer science. Correct answer will be upvoted else downvoted.
Think about a n by n chessboard. Its columns are numbered from 1 to n from the top to the base. Its sections are numbered from 1 to n from the passed on to one side. A cell on a convergence of x-th line and y-th section is indicated (x,y). The fundamental corner to corner of the chessboard is cells (x,x) for all 1≤x≤n.
A stage of {1,2,3,… ,n} is composed on the fundamental slanting of the chessboard. There is actually one number composed on every one of the cells. The issue is to segment the cells under and on the principle askew (there are by and large 1+2+… +n such cells) into n associated areas fulfilling the accompanying imperatives:
Each district ought to be associated. That implies that we can move from any cell of a locale to some other cell of a similar area visiting just cells of a similar district and moving from a cell to a neighboring cell.
The x-th area ought to contain cell on the fundamental…
Note: Answer the question using Java language only.
Shaker is the first child who got scholarship into the village. He went to London to
study where he finds it very interesting to calculate number of ways of going to
point (c, d) from point (a, b) in co-ordinate plane. We can take horizontal and vertical
steps only and cannot visit at a point twice. In a step, you can move one unit only. We
have to reach to the point (c, d) from the point (a, b) using abs(a-c) + abs(b-d) steps
only. Shaker has two sets of points. Set A contains points having X co-
ordinate 0 and Y co-ordinates varying from 1 to N (both inclusive). Set B contains
points having X co-ordinate K and Y co-ordinates varying from 1 to N (both inclusive).
Both sets contain N number of integral points. He wants to calculate the sum of
number of ways to going to each point of set B from each point of set A.
Input
1
22
Output
8
Correct answer will be upvoted else Multiple Downvoted. Don't submit random answer. Computer science.
You have n particular focuses (x1,y1),… ,(xn,yn) on the plane and a non-negative integer boundary k. Each point is a tiny steel ball and k is the draw in force of a ball when it's charged. The draw in power is something very similar for all balls.
In one activity, you can choose a ball I to charge it. When charged, all balls with Manhattan distance all things considered k from ball I move to the situation of ball I. Many balls may have a similar facilitate after an activity.
All the more officially, for all balls j with the end goal that |xi−xj|+|yi−yj|≤k, we dole out xj:=xi and yj:=yi.
An illustration of an activity. Subsequent to charging the ball in the middle, two different balls move to its position. On the right side, the red dab in the middle is the normal situation of those balls.
Your errand is to observe the base number of activities to move all balls to a similar…
Chapter 4 Solutions
Artificial Intelligence: A Modern Approach
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
List the five major hardware components of a computer system.
Starting Out With Visual Basic (7th Edition)
Which of the following variable names are written with the convention used in this book? 1. decintrestrate 2. I...
Starting Out With Visual Basic (8th Edition)
Private Sub Handles btnOutput.Click
End Sub
Introduction To Programming Using Visual Basic (11th Edition)
For Exercises 3.16-3.20, perform each of these steps: Read the problem statement. Formulate the algorithm using...
C How to Program (8th Edition)
The variable x starts with the value 0. The variable y starts with the value 5. Add 1 to x. Add 1 to y. Add x a...
Starting Out with C++: Early Objects
A class is analogous to a(n) _______. a. house b. blueprint c. drafting table d. architect
Starting Out with Java: From Control Structures through Data Structures (3rd Edition)
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
- In practical life, the employees get salaries and pay taxes honestly. Sometimes, the process of drawing salariesand payment of taxes may lead to some interesting situation. Suppose, a person draws salary of Rs. 10,000 permonth. A certain percentage of tax is charged on that amount, which is deducted every month. But if the salaryof the person is more than Rs. 10,000 per month, then the tax rate is different. Similarly if a person is getting Rs.20,000 per month, he/she would be charged more under a different tax rate slab. The interesting situationdevelops if there is an anomaly in the tax rates i.e. a person who is getting higher salary takes home lesser moneyas compared to the other person with less gross salary.To further elaborate it, we suppose that there is company 'C' where 100 or less than 100persons are employed. The salaries of the employees and their tax rates are known to us.We are required to list those unlucky persons, who are getting lesser take-home salary(net salary)…arrow_forwardvvvHarry has a big wall clock, that got hit while he was playing. Now, the minute hand doesn't rotate by the angle 2π/3600 each second, but now it moves according to different angle x. You can assume that coordinates of the centre of the clock are (0, 0) and the length of the minute hand is l. One endpoint of the minute hand is always located at the clock centre; the other endpoint is initially located at the point (0, l). One second later, Harry observes that this endpoint is at distance d above the x-axis, i.e., the y-coordinate of this endpoint is equal to d. Harry is curious about where the minute hand will be (specifically, its y-coordinate) after t seconds. Because t can be very large, Harry can't wait for that moment. Please help him to write a python code that prints a single line containing the output.Input: 4 2 2Output4Harry has a big wall clock, that got hit while he was playing. Now, the minute hand doesn't rotate by the angle 2π/3600 each second, but now it moves according…arrow_forwardQuestion 4. In a jar, there are n nuts and n matching bolts. All the bolts (and of course all the nuts) have different sizes, but the sizes are very close to each other. The only type of operation that you are allowed to do is the compare-nut-bolt operation in which the input is a bolt and a nut and you can check if the bolt enters into the nut or not. Present in plain English a method that only uses the compare-nut-bolt operation to sort the nuts and separately the bolts in increasing order of their sizes. (HINT: you can use the idea of Quicksort.)arrow_forward
- You are a computer research scientist at Tesla, and your task is to create a computer vision application for self-driving cars to detect object and avoid collision. You know that Graham's scan is a method of computing the convex hull of a finite set of points in the plane. You decide to apply this algorithm to achieve the goal of your task. a) Suppose Graham's scan executes n points, where n >= 3. Prove that, at the end of the program, the stack S consists of, from bottom to top, exactly the vertices of convex hull in counter-clockwise order.arrow_forwardQ2. The following algorithm returns the product of two numbers, a and b. The parameters x and y are natural numbers. First, prove the correctness of the algorithm. Then, analyze the time complexity of the algorithm in the worst case scenario. function mult (a, b) if b = 0: return 0 else if b is odd: return (mult (2a, b/2 ) +a) else: return (mult (2a, b/2 ) )arrow_forwardYou are given the task of analyzing how joyful a person is. If you are given a list of numbers that represent the emotional value of an individual on each day, design a divide and conquer algorithm to find the most joyous interval of the person. The measure of joy is given as sum of the values in interval multiplied by the smallest integer in the interval.arrow_forward
- "Solve this problem with 3 different algorithms with Python and please tell me which is the most efficient algorithm and why."arrow_forwardCorrect answer will be upvoted else downvoted. Computer science. stage is a succession of n integers from 1 to n, in which every one of the numbers happen precisely once. For instance, [1], [3,5,2,1,4], [1,3,2] are stages, and [2,3,2], [4,3,1], [0] are not. Polycarp was given four integers n, l, r (1≤l≤r≤n) and s (1≤s≤n(n+1)2) and requested to find a stage p of numbers from 1 to n that fulfills the accompanying condition: s=pl+pl+1+… +pr. For instance, for n=5, l=3, r=5, and s=8, the accompanying stages are reasonable (not all choices are recorded): p=[3,4,5,2,1]; p=[5,2,4,3,1]; p=[5,2,1,3,4]. However, for instance, there is no change reasonable for the condition above for n=4, l=1, r=1, and s=5. Help Polycarp, for the given n, l, r, and s, find a stage of numbers from 1 to n that fits the condition above. In case there are a few appropriate changes, print any of them. Input The primary line contains a solitary integer t (1≤t≤500). Then, at that point,…arrow_forwardCan you do the code in MATLABarrow_forward
- Algorithms Question Three points P, Q, and R are said to be collinear if they are on a single line. To check whether the 3 points lie on the same line, we use the distance formula. If P, Q and R are three collinear points, then: Distance from P to Q + Distance from Q to R = Distance from P to R PQ + QR = PR The distance between two points (x1, y1) and (x2, y2) is given by Hence, we can easily find the distance between the points P, Q and R, with the help of this formula. Design an algorithm (pseudocode) to check whether three points are collinear. In your solution include the input and the output.arrow_forwardApply gaussian random walk(walking in a random direction with each step of length 1. i.e. each time at random theta it will walk cos(theta) at x, sin(theta) at y). What is the probability that the walk starting at (0,0) will end at (5,5)? How to simulate it in python?arrow_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
Introduction to Big O Notation and Time Complexity (Data Structures & Algorithms #7); Author: CS Dojo;https://www.youtube.com/watch?v=D6xkbGLQesk;License: Standard YouTube License, CC-BY