Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Raunak Sarbajna, Md . Mahin and Christoph F . Eick COSC 4 3 6 8 : Fundamentals of Artificial Intelligence Spring 2 0 2 4

Raunak Sarbajna, Md. Mahin and Christoph F. Eick
COSC 4368: Fundamentals of Artificial Intelligence Spring 2024
Problem Set 1(Individ..n1 male 1 Centering on Search)
Fig. 1: Finding a Needle in a Large Haystack with Intelligent Search
Submission Deadlines: Task1: Mo., Feb. 12,11:59p; Task2: Fr., Feb. 23,11:59p
Last Updated: February 5,9a
Weight: Task weight: T1=35 points, T2=40 points.
On Probabilistic Search Algorithms: Implementing and Experimenting with Randomized Hill Climbing with Resampling Raunak Third Draft
Implement a randomized hill climbing algorithm with resampling, called RHCR2 in the following, and conduct a set of experiments, minimizing the following function f :
fFrog(x,y)=x**cos(|x+y+1|2)**sin(|y-x+1|2)+
(1+y)**sin(|x+y+1|2)**cos(|y-x+1|2)
with x,yin[-512,512]
Your procedure should be called RHCR2 and have the following input parameters:
sp : is the starting point ?2 of the Randomized Hill Climbing Resampling2(RHCR2) run
p : the number of neighbors of the current solution that will be generated
z : neighborhood size: for example, if z is set to z=10,p neighbors for the current solution s are generated by adding vectors v=(z1,z2) with z1 and z2 being random numbers in -10,+10 uniformly distributed
seed: which is an integer that will be used as the seed ?3 for the random generator you employ in your implementation.
Collaboration with other students is not allowed!
?2 A vector (x1,x2)in[-512,+512][-512,+512]; sample code to visualize f can be found in MS Teams! 'If you run RHCR 2 with the same values for sp,p,z and seed, it will always return the same solution; if you run if with the same values for sp,p,z and a different seed, it likely will return a different solution and the number of solutions searched is almost always different.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What do you understand by Mendeleev's periodic table

Answered: 1 week ago