From the definition of euclidean domain , one has to select euclidean function .
Let $\mathbb Z[i]=\{a+bi | a,b\in \mathbb Z,i=\sqrt{-1}\}$
We have to select an euclidean function $f$ , such that
$f$ is from $\mathbb Z[i]-\{0\}$ to $\mathbb N$
my doubt is how to select a good $f$ in-order to prove $\mathbb Z[i]$ is euclidean domain .
Is there any unique method to select or guess euclidean function ?
Are there multiple such $f$'s(euclidean function) to prove $\mathbb Z[i]$ is euclidean domain ?
Define the euclide norm $N(a+bi)=a^2+b^2$ and show that it is actually satisfies your needs