For G the fundamental group of a closed surface, we produce an algorithm wh
ich decides whether there is an element of the automorphism group of G whic
h takes one specified finite set of elements to another. The algorithm find
s such an automorphism if it exists. The methods are geometric and also app
ly to surfaces with boundary. (C) 2000 Elsevier Science Ltd. All rights res
erved.