Compare commits
1 Commits
848866c48c
...
8bc0e74e10
Author | SHA1 | Date | |
---|---|---|---|
8bc0e74e10 |
@@ -69,20 +69,20 @@ done
|
|||||||
|
|
||||||
|
|
||||||
# hack:
|
# hack:
|
||||||
# 1) build part 1 tree
|
# 1) build rules 42 and 31
|
||||||
# 2) calculate rule 8 and 11 with some "guessed" minimum possible value
|
# 2) calculate rule 8 and 11 with some "guessed" minimum possible value
|
||||||
# 3) rebuild tree from scratch, but with rules 8 and 11 pre-loaded
|
# 3) build rule 0
|
||||||
buildtree 1 var_0 0
|
|
||||||
|
|
||||||
# This value was found manually: stable from 5.
|
# result starts to be "stable" from this value
|
||||||
SOME_LIMIT=5
|
SOME_LIMIT=5
|
||||||
|
|
||||||
|
buildtree 1 var_0 42
|
||||||
|
buildtree 1 var_0 31
|
||||||
tmp8="(${MATCH[42]})+"
|
tmp8="(${MATCH[42]})+"
|
||||||
tmp11="(${MATCH[42]}${MATCH[31]})"
|
tmp11="(${MATCH[42]}${MATCH[31]})"
|
||||||
for ((i=2; i<SOME_LIMIT; ++i)); do
|
for ((i=2; i<SOME_LIMIT; ++i)); do
|
||||||
tmp11+="|((${MATCH[42]}){$i}(${MATCH[31]}){$i})"
|
tmp11+="|((${MATCH[42]}){$i}(${MATCH[31]}){$i})"
|
||||||
done
|
done
|
||||||
|
|
||||||
MATCH=()
|
|
||||||
MATCH[8]="$tmp8"
|
MATCH[8]="$tmp8"
|
||||||
MATCH[11]="($tmp11)"
|
MATCH[11]="($tmp11)"
|
||||||
buildtree 1 var_0 0
|
buildtree 1 var_0 0
|
||||||
@@ -93,5 +93,3 @@ for str in "${STRING[@]}"; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
printf "%s : res=%d\n" "$CMD" "$res"
|
printf "%s : res=%d\n" "$CMD" "$res"
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
Reference in New Issue
Block a user