Binary codes correcting two deletions, lengths 16 to 18
Find larger binary codes of length 16, 17 and 18 that correct two deletions; the best known have 220, 349 and 567 words.
| 1 | #!/bin/sh |
| 2 | #SBATCH --time=00:24:00 |
| 3 | #SBATCH --cpus-per-task=1 |
| 4 | #SBATCH --mem=1024 |
| 5 | set -eu |
| 6 | route_dir=$(cd "$(dirname "$0")" && pwd) |
| 7 | repo_root=$(cd "$route_dir/../../.." && pwd) |
| 8 | scratch=$(mktemp -d) |
| 9 | trap 'rm -rf "$scratch"' EXIT |
| 10 | c++ -std=c++17 -O3 -Wall -Wextra -pedantic "$route_dir/search.cpp" -o "$scratch/search" |
| 11 | python3 -c 'import json,sys; print(*json.load(open(sys.argv[1]))["words"], sep="\n")' "$repo_root/constructions/n17.json" > "$scratch/baseline.txt" |
| 12 | "$scratch/search" "$scratch/baseline.txt" "$route_dir/n17.json" "$1" "$2" |
| 13 | python3 -B "$repo_root/checks/judge/check.py" "$route_dir" |
