Ditutup

SAS programming

Projek ini menerima 5 bida daripada freelancer berbakat dengan harga bida purata $1378 HKD.

Dapatkan sebut harga percuma untuk projek seperti ini
Bajet Projek
$240 - $2000 HKD
Jumlah Bida
5
Penerangan Projek

Question: Queens puzzle.

The eight queens puzzle is the problem of placing eight chess queens on an 8×8 chessboard so that no two

queens threaten each other. Thus, a solution requires that no two queens share the same row, column, or

diagonal. The eight queens puzzle is an example of the more general n queens problem of placing n nonattacking

queens on an n×n chessboard.

[url removed, login to view]

Write a macro to find ONE solution of n queens problem:

1. Create a macro called queen with one parameter which is the size of the chessboard;

a. Macro call by %queen(n);

e.g. %queen(6);

2. Create a TEMPORARY dataset called QUEENn (figure 3 & 4) to store the result of chess placed;

a. Create n variables to store the puzzle;

b. Place the chess randomly;

Kemahiran Diperlukan

Mencari untuk memperoleh sedikit wang?

  • Tetapkan bajet anda dan tempoh masa
  • Rangkakan cadangan anda
  • Dibayar untuk kerja anda

Upah Freelancer yang juga membida projek ini

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online