27.MinMax-18 - Min-Max Trees One other use of recursion is...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Min-Max Trees One other use of recursion is a technique called backtracking. Backtracking essentially involves a recursive exhaustive search that tries to maximize a particular choice. A popular use of backtracking is in computer players of games, such as chess. The basic idea is as follows: when the computer is moving, it "tries" out all of its possible moves. It wants to pick the move which gives it the best advantage. One way to do this would be to look at each "answering" move the human player could make. Imagine that each of these moves had a score such that the higher the score, the more favorable the move is for the human player. Our goal as the computer of course, would be to minimize the score achieved by the human. We would naturally assume that the human makes its best possible move, ie. the maximum valued move of all of its possibilities. Thus, as the computer, we should pick the minimum of all of these maximums. Thus, the term mini-max tree is given to this sort of search. Consider the following diagram:
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Rather than just search two levels of this tree however, we can
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern