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 4, Problem 2E
Explanation of Solution
Formulating the problem:
- The question mentioned is raises many issues despite its humble origins as the scientifically important problem of protein design.
- There is a discrete assembly space in which the track is filled with pieces chose and a “joint angle” is used to determine the continuous configuration space at every place where two pieces are linked.
- Thus the user can define a state with a set of linked, oriented pieces and the associated joint angles in the range [10,0], and with a set of pieces that are unlinked.
- The joint angles and linkage exactly determines the physical layout of the track.
- The user can allow or disallow for layouts in which tracks are arranged like one above another.
- The evolution function includes terms for,
- Number of pieces used,
- Number of loose ends,
- The degree of overlap.
- The user might include a penalty for the amount of deviation, and the deviation can be from 0-degree joint angles...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Let l be a line in the x-yplane. If l is a vertical line, its equation is x = a for some real number a.
Suppose l is not a vertical line and its slope is m. Then the equation of l is y = mx + b, where b is the y-intercept.
If l passes through the point (x₀, y₀), the equation of l can be written as y - y₀ = m(x - x₀).
If (x₁, y₁) and (x₂, y₂) are two points in the x-y plane and x₁ ≠ x₂, the slope of line passing through these points is m = (y₂ - y₁)/(x₂ - x₁).
Instructions
Write a program that prompts the user for two points in the x-y plane. Input should be entered in the following order:
Input x₁
Input y₁
Input x₂
Simulated annealing is an extension of hill climbing, which uses randomness to avoid getting stuck in local maxima and plateaux.
a) As defined in your textbook, simulated annealing returns the current state when the end of the annealing schedule is reached and if the annealing schedule is slow enough. Given that we know the value (measure of goodness) of each state we visit, is there anything smarter we could do?
(b) Simulated annealing requires a very small amount of memory, just enough to store two states: the current state and the proposed next state. Suppose we had enough memory to hold two million states. Propose a modification to simulated annealing that makes productive use of the additional memory.
In particular, suggest something that will likely perform better than just running simulated annealing a million times consecutively with random restarts. [Note: There are multiple correct answers here.]
(c) Gradient ascent search is prone to local optima just like hill climbing.…
The language for coding must be in python
Neural Network Units
Implement a single sigmoid neural network unit with weights of [-1.2, -1.1, 3.3, -2.1]
Calculate the outputs for two training examples:Example 1: [0.9, 10.0, 3.1, 1]Example 2: [0.9, 2.1, 3.7, 1]
Note that you don't have to explicitly include a threshold or bias since the examples include a last element of 1 which means that the last weight effectively operates as a threshold.
Assuming that a sigmoid unit response >0.5 denotes a positive class and <0.5 is negative class, is example 1 positive or negative? is example 2 positive or negative?
Create a single ReLU unit and provide the outputs for those examples.
Calculate the derivative of the sigmoid with respect to net input for both examples
Calculate the derivative of the ReLU with respect to net input for both examples
Chapter 4 Solutions
Artificial Intelligence: A Modern Approach
Knowledge Booster
Similar questions
- The problem states that there are five philosophers sitting around a circular table. The philosophers must alternatively think and eat. Each philosopher has a bowl of food in front of them, and they require a fork in each hand to eat. However, there are only five forks available. You need to design a solution where each philosopher can eat their food without causing a deadlock.arrow_forwardIn the famous dining philosophers problem, a bunch of philosophers aresitting around a circular table with one chopstick between each of them. A philosopher needsboth chopsticks to eat, and always picks up the left chopstick before the right one. A deadlockcould potentially occur if all the philosophers reached for the left chopstick at the same time. Usingthreads and locks, implement a simulation of the dining philosophers problem that prevents deadlocks.arrow_forwardCreate a curve that uses a quadratic parametric approach with three interpolated control points. The equations which describe the curve are: $$f_x(u) = c_0 u^2 + c_1 u + c_2 $$ and $$f_y(u) = c_3 u^2 + c_4 u + c_5 $$ where $u$ ranges from 0.0 to 1.0. The first control point $$p_0$$ is for $u=0$, the second $p_1$ for $u=0.5$, and the third for $p_2$ and at $u=1.0$. Modify the code to implement your solution. It is sufficient for this task to get the program working with three control points, but you are most welcome to attempt a solution that works on four or more. Code: import java.awt.Graphics2D; import java.awt.geom.Ellipse2D; import java.awt.geom.Path2D; import java.awt.geom.Point2D; import javax.swing.JFrame; import javax.swing.JTabbedPane; import javax.swing.SwingUtilities; public class DotToDotDemo implements Runnable { /** * DotToDotDemo - A demo which draws dots between points to form a curve. * Eric McCreath 2015, 2019 - GPL * Modified by Matthew Aitchison 2022. */ JFrame…arrow_forward
- A Norman window has the shape of a rectangle surmounted by a semicircle. Suppose the outer perimeter of such a window must be 600 cm. In this problem you will find the base length x which will maximize the area of such a window. Use calculus to find an exact answer. When the base length is zero, the area of the window will be zero. There is also a limb on how large x can her when x is large enough, the rectangular portion of the window shrinks down to zero height. What is the exact largest value of x when this occurs?arrow_forwardConsider a robot that is capable of picking objects from a shelf and placing them on the table. Suppose that the robot’s arm works perfectly, and the environment is fully-observable. (i) Define a STRIPS operator that could be used for planning the actions of this robot. (ii) Give an example of a state S of the world at which this STRIPS operator is applicable. (iii) Describe the operation of this STRIPS operator at this state S, to show the next state S0 of the world.arrow_forwardA 2-dimensional Turing machine has an infinite 2-dimensional grid asits storage device (one cell for every address (i, j) ∈Z×Z). Instead ofL and R, there are 5 options for the head to move from (i, j): Left (to(i −1, j), Right (to (i + 1, j)), Up (to (i, j + 1)), Down (to (i, j −1)),and Stay (remain at (i, j)) .Let us assume, that our 2-dimensional TM M has an additional 1-dimensional tape where the input is located as in a 1-tape TM. The2-dimensional storage device contains a blank symbol in every cell atthe start of the computation.Show that a 2-dimensional TM is not more powerful, i.e., every lan-guage accepted by a 2-dimensional TM M is accepted by one of ourstandard 1-dimensional TMs. You don’t have to simulate directly witha 1-tape TM, as you are allowed to use what we know about k-tape(1-dimensional) TMs without proof.Describe the moves of a simulating TM M ′ in plain English. For everypossible move of M , you have to design a sequence of moves of M ′that simulates that move of…arrow_forward
- Consider the Modified tower of Hanoi problem with 2 Pegs (A, B) and 10 Disks. All these disks are placed in Peg A, where the smallest disk is placed on the top and the largest disk is placed on the bottom. We want to move all these disks from A to B.What is the minimum number of moves required to solve this problem. While moving, consider the same rule as shown in the class. Justify your answer.arrow_forwardConsider a system with four page frames and a program that uses eight pages. Consider the reference string 0 1 7 2 0 3 1 7 0 1 7 and assume that all four page frames are initially empty. Consider the three following algorithms: a. Optimal page replacement In each cases show a diagram (ASCII art recommended) that shows which pages are in which frames throughout time, and page faults at the bottom. For instance: The first 4 steps is ALWAYS the same (i.e., just fill the four frames, with one page fault each time)arrow_forwardThe Harvard robotics club has organized a Robothon. n robots are placed alongthe edge of a circular area at the middle of the OAT(open air theatre). Each robot will move along arbitrary tracksinside the circle while leaving behind a heat signature along its trail. However, they have beenprogrammed not to cross their own trail or the trail of another robot, neither will they ever moveout of the circle. In case a pair of robots i and j meet at any point, they are removed from the sceneand the club will pay a reward sum of M[i, j] to the owners of these robots. Note that some robotscan keep moving infinitely without ever meeting another one. Given the reward matrix M whereM[i, j] = M[j, i], design a polynomial time algorithm that determines the maximum money theclub might potentially end up spending. For this particular problem, give a very brief justificationof the recurrence. Give pseudo-code for a dynamic program which solves the recurrence efficiently Youdo not need to prove…arrow_forward
- Suppose that a base cuboid has three dimensions, A, B, C, with the following number of cells: |A| = 100,000, |B| = 100, and |C| = 10,000. Suppose that each dimension is evenly partitioned into 10 portions for chunking. (a) Assuming each dimension has only one level, draw the complete lattice of the cube. (b) If each cube cell stores one measure with 4 bytes, what is the total size of the computed cube if the cube is dense? (c) State the order for computing the chunks in the cube that requires the least amount of space, and compute the total amount of main memory space required for computing the 2-D planesarrow_forwardThree prisoners have been sentenced to long terms in prison, but due to over crowed conditions, one prisoner must be released. The warden devises a scheme to determine which prisoner is to be released. He tells the prisoners that he will blindfold them and then paint a red dot or blue dot on each forehead. After he paints the dots, he will remove the blindfolds, and a prisoner should raise his hand if he sees at least one red dot on the other two prisoners. The first prisoner to identify the color of the dot on his own forehead will be release. Of course, the prisoners agree to this. (What do they have to lose?) The warden blindfolds the prisoners, as promised, and then paints a red dot on the foreheads of all three prisoners. He removes the blindfolds and, since each prisoner sees a red dot (in fact two red dots), each prisoner raises his hand. Some time passes when one of the prisoners exclaims, "I know what color my dot is! It's red!" This prisoner is then released. Your problem…arrow_forwardAs discussed in Class 05, cryptography is the area of mathematics intended for the study of techniques and principles for transforming information from its original form to another, unintelligible form, so that it can be used only when authorized. According to the definition of encryption, carefully analyze the following situation presented below: For the transmission of encrypted messages between two points A and B, A generates a private key and forwards it to B, A encrypts the message using this same private key and sends this message to B, upon receiving the message, B decrypts the message with the same private key. Regarding the situation presented above, mark the alternative that corresponds to the encryption mode used. A) Cryptographic Abstract;B) Asymmetrical;C) Digital Certification;D) Symmetrical;E) Digital Signature.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning