A Plan based Approach to Prolo g Recursio n Jan Newmarc h Information Science and Engineerin g University of Canberr a Australi a Preface This paper discusses the learning of Prolog recursion, and shows ho w it is made easier by adopting a plan based approach . Many common Prolog examples are shown to be derivable from simple plans . Thes e plans form an inheritance hierarchy, and this is also discussed . Introductio n Learners of any programming language often have problems learnin g the basic techniques appropriate to that language . One of the principa l problems in learning a language such as Prolog is the heavy relianc e in the language upon a single technique, recursion [2,3,61 . Thi s causes difficulties even to those who have already learnt many of th e programming techniques appropriate to a language such as Pascal , because they cannot see how to translate their knowledge of, say, ho w to sum the elements of an array into the Prolog recursiv e environment . Much work has been done in the imperative languages on how t o devise "programming plans" to give high level guidance to peopl e trying
/lp/association-for-computing-machinery/a-plan-based-approach-to-prolog-recursion-wbVJtZe3XJ