diff --git a/Rust/README.md b/Rust/README.md new file mode 100644 index 0000000..73f32e4 --- /dev/null +++ b/Rust/README.md @@ -0,0 +1,43 @@ +# N-Queens problem using backtracking and CS + +## Rust implementation + +### Set up + +```sh +yum install rustc cargo +cargo build --release +``` + +### Syntax + +``` +queens [-h] [-p] [SIZE] +``` + +
+
-h
+
Show help.
+
-p
+
Enable parallel mode.
+
SIZE
+
Length of the chess.
+
+ +### Example + +``` +# cargo run --release -- -p 4000 + +Queen 1: square 1252 +Queen 2: square 2295 +(...) +Queen 3999: square 3509 +Queen 4000: square 1655 + +Trials: 58765 +Discards: 182326630 +Time: 4539 ms. +Performance: 0.013 steps/μs. + 40.167 discards/μs. +```