From 2927005064892a9704f49fdd0c5f28794a7f85c7 Mon Sep 17 00:00:00 2001 From: Yoann Dufresne Date: Tue, 26 Nov 2024 21:14:30 +0100 Subject: [PATCH] :package: new results --- app/brutforce.cpp | 1 + data/hash_loading.txt | 2 +- data/opti_fraction_s.txt | 72 ++++++++++++++++++++++++++++++++++++++++ external/googletest | 2 +- 4 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 data/opti_fraction_s.txt diff --git a/app/brutforce.cpp b/app/brutforce.cpp index f9b1085..df7d623 100644 --- a/app/brutforce.cpp +++ b/app/brutforce.cpp @@ -229,6 +229,7 @@ int main(int argc, char* argv[]) size_t const skipt_to {argparser.createParam(0, "skip-to", "Skip the first combinations to start the brutforce later. This option is made to allow save and restart.").value()}; + make_help(argparser); clutchlog_config(); // common config auto& log = clutchlog::logger(); diff --git a/data/hash_loading.txt b/data/hash_loading.txt index 381f798..ec3384d 100644 --- a/data/hash_loading.txt +++ b/data/hash_loading.txt @@ -37,7 +37,7 @@ # 0.13486 8 5 XSL 1 XSR 2 ASL 4 XSR 6 MUL 135 -# 0.0572857 +# Best function: 0.0572857 8 5 XSR 1 MUL 15 XSR 3 MUL 221 XSR 4 diff --git a/data/opti_fraction_s.txt b/data/opti_fraction_s.txt new file mode 100644 index 0000000..f445acb --- /dev/null +++ b/data/opti_fraction_s.txt @@ -0,0 +1,72 @@ +rHashGen: + forward: |4 + template + myuint hash𓐅9𓉘r3𐙤x5𐙤m8𐙤r3𐙤a1𐙤m8𐙤r4𐙤x3𐙤m8𓉝(myuint val) + { + val ^= val >> 3; + val *= 5; + val &= 0xff; + val ^= val >> 3; + val += val << 1; + val &= 0xff; + val ^= val >> 4; + val *= 3; + val &= 0xff; + return val; + } + reverse: |4 + template + myuint inverted_hash𓐅9𓉘r3𐙤x5𐙤m8𐙤r3𐙤a1𐙤m8𐙤r4𐙤x3𐙤m8𓉝(myuint val) + { + val *= 171; + val &= 0xff; + val ^= val >> 4; + val *= 171; + val &= 0xff; + val ^= val >> 3; + val ^= val >> 6; + val *= 205; + val &= 0xff; + val ^= val >> 3; + val ^= val >> 6; + return val; + } + solution: "0.0968904 6 7 20 7 2 10 19 21" + quality: 0.0968904 + + +### GENERAL ######################################################################## +# --help=0 # -h : Prints this message +# --stopOnUnknownParam=1 # Stop if unkown param entered + +### ALGORITHM ###################################################################### +--algo=HC # -a : Search metaheuristic (CMAES:CMA-ES [mono-objective, parametrize], HC:Hill-Climbing [mono-objective, fixed-size-combination], NSGA2:NSGAII [bi-objective, fixed-size-combination], SA:Simulated-Annealing [mono-objective, fixed-size-combination], ) +# --init-sol=0 # -I : Read initial solution from standard input +# --parametrize=0 # -P : Only tune the parameters and do not change the operators.This will interpret --operators= as a sequence of operators to be parametrized. +# --pop-size=100 # -p : Population size for evolutionary algorithms + +### LOGGING ######################################################################## +# --log-level=Progress # -l : Maximum depth level of logging (Critical