Well, that is certainly an option. But won't that be computationally expensive? Is there not a more elegant solution than the brute force approach?