Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Imagine having a standard 8x8 chessboard. We want to use integer programming to find a way to place the maximum number of Queens to the

Imagine having a standard 8x8 chessboard. We want to use integer programming to find a way to place the maximum number of Queens to the chessboard so that they do not attack each other. (The Queen can move in any direction, up, down, left, right, or diagonal!) 8 0Z0Z0Z0Z 7 Z0Z0Z0Z0 6 0Z0Z0Z0Z 5 Z0ZQZ0Z0 4 0Z0Z0Z0Z 3 Z0Z0Z0L0 2 0Z0Z0Z0Z 1 L0Z0Z0Z0 a b c d e f g h This is an example board where 3 queens are placed so that they cannot attack each other. a) Let Q be the maximum number of Queens that can be placed on this board. Without solving the problem, show that Q 8, that is, the maximum number of queens that can be placed is upper bounded by 8. Be rigorous! Do not just tell me that it cannot be more than 8. Clearly explain your reasoning! b) Model this problem as an integer programming problem. Clearly describe your model, constraints and variables. c) Solve the model you have described in part b) with gurobipy. What is Q? What is the optimum chess board (the location of the queens)?

image text in transcribed (30pts) Imagine having a standard 88 chessboard. We want to use integer programming to find a way to place the maximum number of Queens to the chessboard so that they do not attack each other. (The Queen can move in any direction, up, down, left, right, or diagonal!) This is an example board where 3 queens are placed so that they cannot attack each other. a) Let Q be the maximum number of Queens that can be placed on this board. Without solving the problem, show that Q8, that is, the maximum number of queens that can be placed is upper bounded by 8 . Be rigorous! Do not just tell me that it cannot be more than 8 . Clearly explain your reasoning! b) Model this problem as an integer programming problem. Clearly describe your model, constraints and variables. c) Solve the model you have described in part b ) with gurobipy. What is Q ? What is the optimum chess board (the location of the queens)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Information Systems Management

Authors: Barbara McNurlin

8th Edition

0132437155, 9780132437158

More Books

Students also viewed these General Management questions

Question

how to develop a positive self-image process analysis essay

Answered: 1 week ago

Question

5. Give examples of binary thinking.

Answered: 1 week ago