Question: For then-queens problem we observe that some solutions are simply reflections or rotations of others. For example when n = 4 the two solutions given

For then-queens problem we observe that some solutions are simply reflections or rotations of others. For example when n = 4 the two solutions given below are equivalent under reflection.

1

2

3

4

1

2

3

4

Observe that for finding inequivalent solutions the algorithm need only set X(l) = 2, 3, ... , [n/2] . Modify procedure NQUEENS so that only inequivalent solutions are computed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!