I will use the following equation as an example:
$$3x + 5y = 47$$
We know that $gcd(3,5) = 1 | 47$ so, this equation has a solution. In order to find it, we can use the euclidean algorithm and the Bézout's identity:
$$ 1 = 2 \times 3 + (-1) \times 5$$
From here, we can multiply both sides by 47 and find a solution:
$$94 \times 3 + (-47) \times 5 = 47$$
So $$x_0 = 94$$ and $$y_0 = -47$$ and we get:
$$x=94+5n$$ and $$y = -47 - 3n$$
That is how I have learnt do solve this type of equations. However if I look this solution on Wolfram Alpha it gives me:
$$x = 5n+ 4$$ and $$y= 7 - 3n$$
Wolfram Alpha always gives the smallest constants. In this example, instead of $94$ and $-47$, it found $4$ and $7$, which are easier to work with in some problems.
My question is, is there an algorithm to find this "simpler" solutions?
I don't very well understand your question but I hope this is what you are looking for:
Take $\textrm{mod}\ 5$ on the equation (or $\textrm{mod}\ 3 $, whichever suits), we get $\newcommand{\Mod}[3]{#1\equiv #2\ (\textrm{mod}\ #3)}$$\Mod{3x}{2}{5}$ or $\Mod{3x}{12}{5}$ giving $\Mod{x}{4}{5}$, which gives $x=5m+4$. Putting this back yields $y=7-3m$, as desired.
Other than that, your solution can also be refined as $$x=94+5n=5(18+n)+4$$ $$y=-47-3n=-3(18+n)+7$$ With quick redefining $m=18+n$, you get the same solution as WolframAlpha.
Hope this helps. :)