Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose you are given a m x n chess board. A knight can move in an L - shape of two squares horizontally plus one
Suppose you are given a m x n chess board. A knight can move in an Lshape of two squares horizontally plus one square vertically, or two sqaures vertically plus one square horizontally. The picture on the left below shows potential moves of the knight on the c on the x board. On the other hand, the knight on e has only three potential moves. A knight covers the square that it's on and it can additionally cover one of the squares that it can move to For instance, in the left picture above, the knight covers c and we may choose it to cover one additional square, say d In the right picture, the knight covers e and we can choose one other square, say c We will define a valid arrangement of knights as follows: Each square contains at most one knight. Each square is covered by at most one knight. While each square can potentially be covered by more than one knight, we must choose which knight will cover it Each knight must cover one additional square. Describe how to build a bipartite matching model to determine the maximum size of a valid arrangement for an m X n board. Here are some pointers to help you reach your model: Think about how to construct the network that you need. Each square of the board is a node, but how do you place the arcs? The network you construct should be bipartite. Notice that a knight on a black square can only move to a white square, and vice versa.
Suppose you are given a m x n chess board. A knight can move in an Lshape of two squares horizontally plus one square vertically, or two sqaures vertically plus one square horizontally. The picture on the left below shows potential moves of the knight on the c on the x board. On the other hand, the knight on e has only three potential moves. A knight covers the square that it's on and it can additionally cover one of the squares that it can move to For instance, in the left picture above, the knight covers c and we may choose it to cover one additional square, say d In the right picture, the knight covers e and we can choose one other square, say c
We will define a valid arrangement of knights as follows:
Each square contains at most one knight.
Each square is covered by at most one knight. While each square can potentially be covered by more than one knight, we must choose which knight will cover it
Each knight must cover one additional square. Describe how to build a bipartite matching model to determine the maximum size of a valid arrangement for an m X n board. Here are some pointers to help you reach your model:
Think about how to construct the network that you need. Each square of the board is a node, but how do you place the arcs?
The network you construct should be bipartite.
Notice that a knight on a black
square can only move to a white square, and vice versa.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started