What algorithm can I use to "match" or "align" (translate and scale) two vectors of different size in C#?
The most similar method to your thought is finding a "linear regression". Hence, you can use a c# library or code to compute "linear regression" for the points of in A|B elements pairs.