Our problem then becomes that of finding Q ⋆ ⊆ Q and vectors a * , b * and c * so that the Laue condition is almost satisfied with the Miller indices provided by the oracle. Once the set Q ⋆ has been determined, we would like to find the basis vectors M that best fit the data in the least squares sense: