physics chemistry maths science forums
become expert I help I sign up I login
refer a friend - earn nickels!!   
 advanced
 
Home
Ask & Discuss Questions
Study Material
Experts Zone
Hang Out!

Ask & Discuss Questions with Community & Experts

Moderation Team
 90 chars left    advanced
Ask iit jee aieee pet cbse icse state board experts Expert Question: permutation
Forum Index -> Algebra like the article? email it to a friend.  
Author Message
prior1_2 (0)

New kid on the Block

Olaaa!! Perrrfect answer. 0  [0 rates]

prior1_2's Avatar

total posts: 3    
offline Offline
find the number of ways in which 8queen can be arranged on chess board so that none of them cut each other??
    
shrey (0)

New kid on the Block

Olaaa!! Perrrfect answer. 0  [0 rates]

shrey's Avatar

total posts: 4    
offline Offline
40320
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
shrey (0)

New kid on the Block

Olaaa!! Perrrfect answer. 0  [0 rates]

shrey's Avatar

total posts: 4    
offline Offline
8
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
shrey (0)

New kid on the Block

Olaaa!! Perrrfect answer. 0  [0 rates]

shrey's Avatar

total posts: 4    
offline Offline
4
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
edison (4435)

Forum Expert Blazing goIITian

Olaaa!! Perrrfect answer. 783  [1043 rates]

edison's Avatar

total posts: 2269    
offline Offline
The eight queens puzzle is the problem of putting eight chess queens on an 8×8 chessboard such that none of them is able to capture any other using the standard chess queen's moves.
 
Constructing a solution
There is a simple algorithm yielding a solution to the n queens puzzle for n = 1 or any n ? 4:
  1. Divide n by 12. Remember the remainder (it's 8 for the eight queens puzzle).
  2. Write a list of the even numbers from 2 to n in order.
  3. If the remainder is 3 or 9, move 2 to the end of the list.
  4. Write the odd numbers from 1 to n in order, but, if the remainder is 8, switch pairs (i.e. 3, 1, 7, 5, 11, 9, ?).
  5. If the remainder is 2, switch the places of 1 and 3, then move 5 to the end of the list.
  6. If the remainder is 3 or 9, move 1 and 3 to the end of the list.
  7. Place the first-column queen in the row with the first number in the list, place the second-column queen in the row with the second number in the list, etc.
For n = 8 this results in the solution shown above. A few more examples follow.
  • 14 queens (remainder 2): 2, 4, 6, 8, 10, 12, 14, 3, 1, 7, 9, 11, 13, 5.
  • 15 queens (remainder 3): 4, 6, 8, 10, 12, 14, 2, 5, 7, 9, 11, 13, 15, 1, 3.
  • 20 queens (remainder 8): 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 3, 1, 7, 5, 11, 9, 15, 13, 19, 17.
 

Solutions to the eight queens puzzle

 
The eight queens puzzle has 92 distinct solutions. If solutions that differ only by symmetry operations (rotations and reflections) of the board are counted as one, the puzzle has 12 unique solutions.

The most incomprehensible thing about the world is that it is

at all comprehensible.
 this reply: 10 points  (with Olaaa!! Perrrfect answer.   in 2 votes )   [?]
 
You have to be logged on to rate
  
 
Forum Index -> Algebra
Go to:   

Top Offers for goIITians
Correspondence Courses
Brilliant Tutorials
Narayana Institute
Aakash Institute
Classroom/Crash Courses
Narayana - Kota , Delhi , Others
Brilliant Tutorials - Class , Crash
Aakash Institute - Medical , Engg
Online Test Series
Brilliant Tutorials
Narayana Institute
Aakash Institute
Mahesh Tutorials
AMITY      Sri Chaitanya