Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5947417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:57:40+00:00 2026-05-22T16:57:40+00:00

Here is the problem (Rooks) asks that Given a chessboard NxN, on which the

  • 0

Here is the problem (Rooks) asks that

Given a chessboard NxN, on which the rooks are placed. You have to color those rooks in a minimal number of colors in that way – no horizontal and vertical line contains two rooks of the same color.

What type of solution can you offer ?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:57:40+00:00Added an answer on May 22, 2026 at 4:57 pm

    Form a bipartite graph with rows as one set and the columns as other.

    The rooks would correspond to the edges of the bipartite graph: row r and column c are joined by and edge if there is a rook at position (r,c).

    Now you are looking for an edge colouring of this bipartite graph.

    It can be shown that (I believe first by Konig) that the minimum number of colours required is same as the max degree and polynomial time algorithms are known (inspite of the general problem being NP-Complete). Thus in your case, the minimum number of colours required will be the maximum numbers of rooks in a row or column.

    In fact, the edge colouring corresponds to the vertex colouring of the line graph of a bipartite graph, which is known to be a perfect graph and thus the minimum number of colours is the max degree. Polynomial time algorithms to colour perfect graphs are also known, but that would be overkill for this problem.

    An algorithm (and references to earlier algorithms) for edge colouring bipartite graphs appears here: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.144.3399&rep=rep1&type=pdf

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a strange problem here... I have an ASP.NET 3.5 application that has
I have a problem here. My Zend_Forms do not render in view script. Via
I've got a problem here with an MSI deployment that I'm working on (using
I have an interesting problem here I've been trying to solve for the last
Here is my problem: I have a sequence S of (nonempty but possibly not
I have a design problem. I have two data objects which are instances of
Having a weird problem here. Everybody knows that if you use web.config's customErrors section
A recent homework assignment I have received asks us to take expressions which could
I have a project that merges in one form field two variables. Number of
I have jQuery validation on many forms. The problem is that on some of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.