Menu
support@authoritypapers.com
+1(805) 568 7317

in python 3 applying strategies 4 points question 4 now that we have a strategy to a 5149736

Applying Strategies (4 points) Question 4 Now that we have a strategy to apply (elimination), we should teach the computer hoIN PYTHON 3

Applying Strategies (4 points) Question 4 Now that we have a strategy to apply (elimination), we should teach the computer how to apply strategies to is only one of a number of possible sudoku solving strategies. For more information on sudoku solving strategies, take a look at the following youtube video: https://www.youtube.com/watch?v=b123EURtu3l. With respect to this video, we have only implemented somewhat dubiously named “Naked Singles” sudoku puzzle. However, the elimination strategy strategy Write a function 'applyStrategy(strategy, s)' which, given a strategy (in this case, a function with the input/output properties described in Question 3), and a puzzle s, applies that strategy to each cell in the puzzle. Have the function return True if the strategy worked, and False if it didnt (see below). It will become important later on to know if a strategy worked. To this end, we need to keep track of whether there are any differences between the strategy's return results and what was already in the puzzle. To clarify, if, for a particular cell, the strategy returns what the cell already contained, there has been no change, and the strategy failed for that cell. We are interested in whether at least one of the cells were changed when we applied the strategy to the entire puzzle. HINT: There is no need to run a strategy on a cell that is not “blank” (i.e., contains zero). DOUBLE HINT: Given that s is a mutable data type, we can simply modify the contents of the cells using assignment statements. def applyStrategy (strategy, s) : return False YOUR CODE HERE Test Cases instantiateCases applyStrategy (elimination, s) s =s5

"Order a similar paper and get 15% discount on your first order with us
Use the following coupon
"GET15"

Order Now