For proving Euclidean domain, how to decide the mapping?

44 Views Asked by At

Whenever I get questions to prove it an "Euclidean domain(modern algebra)", I get confused in selecting the mapping. Is there any way to choose the mapping? Eg. If the question is to prove

The ring Z of integers is a Euclidean domain.

In textbooks, for the above ques $d(a)=|a|$, How to choose in general?