-1
$\begingroup$

The below is from an article titled:

Minimax: Recursive Implementation

enter image description here

To be a recursive function, you need to call yourself.

  • What part of this pseudo code is calling itself?
  • How does depth-first effect the recursion process?
  • There seems to be a return in every line of minimax-value, shouldn't the return be only on a terminal case?
  • Will value[op] contain the moves in order from the root node?
  • What does Apply(op,game) do the very first time through?

Any pointers are greatly appreciated.

$\endgroup$
  • $\begingroup$ Don't use images as main content of your post. Not only is it lazy, it also makes your question impossible to search and inaccessible to the visually impaired; we don't like that. Please transcribe text and maths (note that you can use LaTeX) and don't forget to give proper attribution to your sources! $\endgroup$ – D.W. Feb 17 '14 at 5:00
  • $\begingroup$ You sure have an awful lot of questions in this post. We ask people to stick to one question per question. Also, we expect you to make a serious effort before asking here. What have you tried? Have you tried working through a small example by hand, manually simulating the algorithm? You would probably find that very helpful in enabling you to answer many of your own questions. $\endgroup$ – D.W. Feb 17 '14 at 5:02
3
$\begingroup$

Inside the function Minimax-Value, see the line where it says "the highest Minimax-Value of..."? That is implicitly a recursive call to the Minimax-Value function, i.e., a call to yourself.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.