Cse about ai | Computer Science homework help

 

Don't use plagiarized sources. Get Your Custom Essay on
Cse about ai | Computer Science homework help
Get an essay WRITTEN FOR YOU, Plagiarism free, and by an EXPERT!
Order Essay

This assignment is based primarily on the material covered in lecture “Minimax”.

We will work with “Tic-Tac-Toe” as a simple game to help us work through various algorithms.

Part 1: (Multi-agent) State Spaces

1.1) [1pt] Similar to Homework 1, we will first need to create a starting state for you to work from. Starting from the beginning of the game is too much work to do by hand, so we will have you work from a game in progress.

So, to start play a game of tic-tac-toe with yourself. Make sure you don’t win (or lose), forcing the game to a draw will make the rest of the homework assignment much easier (fewer states to consider).

Now, roll the game back to the 3rd-to-last move (last move->next-to-last move->2nd-to-last move->3rd-to-last move). This will be the initial state you use for the rest of the assignment. (Equivalently, choose as your initial state the game board that had 4 blank spaces.)

Note, this means that you (the agent/Max) will be playing “O” and the opponent (Min) will be playing “X”.

1.2) [2pts] Now draw out the search tree starting from the initial state you created in (1.1). Draw out the full search (which should be fairly small since we are starting from near the end of the game).

When considering successor states (i.e., possible game moves), evaluate moves starting with the top-left, then left-to-right and finally top-down. That is, use the following order:

#1#2#3#4#5#6#7#8#9

Draw the states in your tree from left to right when following the above order.

Hint: Make sure to leave some space in your diagram, you will be adding information to it in the following sections. In fact, I recommend reading the rest of the assignment first, so you know what you need to leave space for.

Hint 2: It may be a good idea to clearly mark which level of the tree represents states Max is considering and which Min is considering. Just as on the slides, you would start with Max on the root level of the tree.

Part 2: Minimax

Now we move on to some actual algorithms.

2.1) [2pts] Now, go back to your search tree in Part one and add utility scores to all the terminal states (those with no children, i.e., where the game ended). Rather than simple win lose, we will use a more complicated utility function (to help avoid ties). This utility function is positive for wins, negative for losses, and closer to zero the longer a game took to finish. Specifically:

Number of moves playedNumber of moves leftScore if O (agent, Max) wonScore if X (opponent, Min) wonScore if draw545-5634-4723-3812-2901-10

2.2) [5pts] Now, perform the minimax algorithm to determine “Minimax scores” for each of the states in the tree all the way back to the root (initial state).

Using these scores, which move would Max choose to make?

Part 3: Alpha-Beta Pruning

3.1) [6pts] Now go back and repeat the search from part 2, only this time perform alpha-beta pruning as well. Make sure to show what alpha and beta values are considered (and how they change) for each state in the search tree. Use alpha > beta as the pruning check (do not use greater than or equal to). Also be sure to clearly mark which parts of the tree would be pruned off.

Hint: Remember, at the root of the tree (initial state) alpha, beta start off as: alpha=-infinity and beta=infinity.

Part 4: Extra Credit

4.1) [+1pts] 

Go back and redo 3.1, only this time use alpha >= beta as the pruning check. Remember you will have to be careful about what you do with tie in this case. To resolve this use a pruning flag to indicate a branch that higher levels should ignore (e.g., if you decide a branch should be pruned, set it’s minimax value to “X” instead of a number).

Discuss the differences that you see. (Warning, both the new search results/tree and discussion are required to receive credit.)

 You may work electronically (word processor, etc) and submit a final pdf of your work. 

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Professor’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
  • 2-hour delivery
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

We value our customers and so we ensure that what we do is 100% original..
Getting into any engagement is not as simple as it sounds, especially when done remotely. Thus, you as our client need solid assurances that your expectations will be met and exceeded. Taking this into consideration, we are very serious when it comes to honoring our end of the bargain. On this page, we have clearly stipulated our assurances to clear any anxiety, doubts, or uncertainties that you may have. We are sure that after reading the below short guarantee highlights, you will be entirely confident that your needs will be exceeded!

Money-back guarantee

Our money-back guarantee assures you of the safety of your money. Several reasons may make you want to get a refund, and we have the best refund system since it works INSTANTLY! Yes, I said instantly! Many of our competitors place complex processes for you to get a refund. Some websites make you wait for 14 days! For what? We know that you obviously have other uses for the money; that is why we refund on the spot. Here at Employed Professors, we simply look into the issue and press a button, and your money is back. No waiting! No back and forth!

Zero-plagiarism guarantee

Being the worst academic offense that is severely punished by all institutions, plagiarism is a NO at Employed Professors! In fact, we are always ready with evidence that your paper is plagiarism-free.

Our elite algorithm for detecting plagiarism is updated regularly, as our developers work 24/7 to make sure that it captures even the slightest instance. We provide a plagiarism report FREE OF CHARGE so that you are confident when submitting your paper to that stickler professor or TA. This way, we ensure that you will never get expelled for this heinous act!

Free-revision policy

Sometimes, for absolutely no reason, your TA or professor might require you to make some changes to your paper. Other times, further customization can be needed as you deem fit; of course, you are the king, and you command, and we obey! As such, if you feel that a specific aspect has not been captured as you like, you can always send the paper back for revision, and this is also FREE OF CHARGE! All you need to clearly state are the new guidelines that you want our professor to use to accomplish your desired objective in the way that you want it.

Privacy policy

Our clients' confidentiality is our priority; this is a fact that is undeniable in our company. We CANNOT give out the data/information that we request from you even at GUNPOINT! This is how far we can go to protect your identity. Furthermore, our databases are regularly services and secured with an impenetrable security system. Over the years that we have been in this essential industry, we have never had a data breach, thanks to our top-notch technical department that ensure the confidentiality of your information. A detailed summary of our privacy policy is as below:

24/7 and on-the-spot-response system

Unlike our competitors who will make you wait even 30 minutes to respond to your inquiries, order messages, and support help, we have developed a seamless communication system that notifies our always-standby support personnel to respond to you. Furthermore, we have given our professors access to this high-tech system so that they can respond promptly to ensure that no time is wasted. Remember, this business' most valuable element is time, and delays are usually catastrophic. The last thing we would imagine is you having to lose points for lateness. Thus, we ensure that prompt communication is ever-present, without failure!

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency