CSC540-640 - Introduction to Artificial Intelligence Report Writing - Computer Science Assignment Help

Download Solution Order New Solution
Assignment Task

 

Problem 1 Write a hillclimber to maximize the function double eval(int *vec) contained in each of the the two object files below. These are two black box functions and I want you to try maximize both. Black box means that you do not know what the function does – all you know is that if you send it a (int *vec) , it will return a double, in the range 0 through 100. main.cpp contains a sample call and return from eval. The size of the integer vector is 100.

Not only do I want the maximum returned by the function, I also want the value of each element in vec when evaluating vec causes the function to reach its maximum.

A sample main.cpp and eval.o (max == 100) and eval1.o (max == 100) for the 64-bit Linux environment (or Windows Linux Subsystem) are provided on Blackboard. You will need to use g++ for your compilation.

You can use C or C++ to implement your algorithm but you must use the Linux g++ compiler for compilation. % g++ -o solver main.cpp eval.o Should compile your hill climber in main.cpp with the eval function in eval.o Assume that vec can only contain 0’s or 1’s, that is, it is a bit string. Going thru all 2100 combinations of the 100 bit vector is not a viable option.

You will defend your strategy and explain why it failed (or succeeded). In other words, if you find the correct solution, you have to explain how and why your algorithm worked. If it failed, I once again want to know why. Thus, simply applying an algorithm you found on the web is also not a viable option – only apply an algorithm you know and understand.

 

 

This (CSC540-640) Computer Science Assignment has been solved by our Computer Science experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.