Using this approach you decrease the complexity of the algorithm to 3^Num_products num_shops. However,
Teen Wolf Season 4 DVD Box Set, this is a bit harder to understand and you will probably need to write by hand one example to make sure the loop I wrote actually cycles all the subsets of S. About the complexity just trust me..