Important: Submit your own work. No teamwork or solutions found on
the internet allowed. You are also not allowed to use the Sudoku
solver Matlab added.
a) Devise a LP that will provide the solution to a Sudoku puzzle of
arbitrary size. Describe your variables, cost function, and
constraints carefully. (You are allowed to use integer constraints if
you want)
b) Create a Matlab script to solve your LP for a 4x4 Sudoku puzzle
(you may use linprog or intlinprog).
c) Test your script on the puzzle in the attached figure (source
http://www.sudokurepublic.com/4x4_puzzles.php )
d) Devise an approach to test if the solution to your puzzle is
unique. Describe the approach carefully.
e) Test the approach in part d) to prove the uniqueness of your
solution in part c.
版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。