Question

Rooks can move any number of squares horizontally or vertically on a chess board. The n...

Rooks can move any number of squares horizontally or vertically on a chess board. The n rooks problem is to arrange rooks on an n×n board in such a way that none of the rooks could bump into another by making any of its possible horizontal or vertical moves.

For this problem, the variables are each column (labeled 0, 1, ... , n−1), the the domain consists of each possible row (also labeled 0, 1, ... ,n−1). In each column we place a rook on row 0, row 1, ... , row n−1.

For example, if n=2 we have only two solutions to this problem:

R @
@ R 

or

@ R
R @ 

How many possible solutions are there to this, in terms of n?
Also, give a simple proof that your answer is correct.

Homework Answers

Answer #1

Note that each row must contain a rook. So the problem is reduced to finding a column for each rook.

The first rook can be placed in any of the columns. The second rook can be placed in any column except the column of the first rook. So there are options for this and so on

Total number of ways is

Hope this was helpful. Please do leave a positive rating if you liked this answer. Thanks and have a good day!

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Chess horse walks - two cells vertically in any direction and one cell horizontally, or vice...
Chess horse walks - two cells vertically in any direction and one cell horizontally, or vice versa. Two different cells of the chessboard are given, determine whether the horse can get from the first cage to the second one move. Input format The program receives four numbers from 1 to 8 each, setting the column number and the number of the line first for the first cell, then for the second cell. Output format The program should withdraw YES if...
# Parts to be completed are marked with '<<<<< COMPLETE' import random N = 8 MAXSTEPS...
# Parts to be completed are marked with '<<<<< COMPLETE' import random N = 8 MAXSTEPS = 5000 # generates a random n-queens board # representation: a list of length n the value at index i is # row that contains the ith queen; # exampe for 4-queens: [0,2,0,3] means that the queen in column 0 is # sitting in row 0, the queen in colum 1 is in row, the queen in column 2 # is in row 0,...
Let M be an n x n matrix with each entry equal to either 0 or...
Let M be an n x n matrix with each entry equal to either 0 or 1. Let mij denote the entry in row i and column j. A diagonal entry is one of the form mii for some i. Swapping rows i and j of the matrix M denotes the following action: we swap the values mik and mjk for k = 1,2, ... , n. Swapping two columns is defined analogously. We say that M is rearrangeable if...
Homework Draw class diagrams for your HW4 - the Tetris Game shown below: Part 1: UML...
Homework Draw class diagrams for your HW4 - the Tetris Game shown below: Part 1: UML As a review, Here are some links to some explanations of UML diagrams if you need them. • https://courses.cs.washington.edu/courses/cse403/11sp/lectures/lecture08-uml1.pdf (Links to an external site.) • http://creately.com/blog/diagrams/class-diagram-relationships/ (Links to an external site.) • http://www.cs.bsu.edu/homepages/pvg/misc/uml/ (Links to an external site.) However you ended up creating the UML from HW4, your class diagram probably had some or all of these features: • Class variables: names, types, and...
Design a FSM for a Vending Machine In this task, you will design a FSM for...
Design a FSM for a Vending Machine In this task, you will design a FSM for a simple (albeit strange) vending machine of office supplies. The vending machine sells three possible items, each at a different cost: Item Cost Pencil 10 cents Eraser 20 cents Pen 30 cents The vending machines accepts nickels (worth 5 cents), dimes (worth 10 cents), and quarters (worth 25 cents). Physically, it is only possible to insert a single coin at a time. The vending...
do all five questions Question 1 20 pts Ignoring the effects of air resistance, if a...
do all five questions Question 1 20 pts Ignoring the effects of air resistance, if a ball falls freely toward the ground, its total mechanical energy Group of answer choices increases remains the same not enough information decreases Flag this Question Question 2 20 pts A child jumps off a wall from an initial height of 16.4 m and lands on a trampoline. Before the child springs back up into the air the trampoline compresses 1.8 meters. The spring constant...
1. For a pair of sample x- and y-values, what is the difference between the observed...
1. For a pair of sample x- and y-values, what is the difference between the observed value of y and the predicted value of y? a) An outlier b) The explanatory variable c) A residual d) The response variable 2. Which of the following statements is false: a) The correlation coefficient is unitless. b) A correlation coefficient of 0.62 suggests a stronger correlation than a correlation coefficient of -0.82. c) The correlation coefficient, r, is always between -1 and 1....
Four Case Studies on Corporate Social Responsibility: Do Conflict Affect a Company's Corporate Social Responsibility: Apple...
Four Case Studies on Corporate Social Responsibility: Do Conflict Affect a Company's Corporate Social Responsibility: Apple Inc. Apple’s profile Apple Inc. (hereafter Apple) was established in 1977 and is registered on the NASDAQ Global Select Market exchange. According to its Form 10-K ‘Apple designs, manufactures and markets mobile communications, media devices, personal computers and portable digital music players, and sells a variety of related software, services, peripherals, networking solutions, and third-party digital content and applications’. Its products are sold through...
Sign In INNOVATION Deep Change: How Operational Innovation Can Transform Your Company by Michael Hammer From...
Sign In INNOVATION Deep Change: How Operational Innovation Can Transform Your Company by Michael Hammer From the April 2004 Issue Save Share 8.95 In 1991, Progressive Insurance, an automobile insurer based in Mayfield Village, Ohio, had approximately $1.3 billion in sales. By 2002, that figure had grown to $9.5 billion. What fashionable strategies did Progressive employ to achieve sevenfold growth in just over a decade? Was it positioned in a high-growth industry? Hardly. Auto insurance is a mature, 100-year-old industry...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT