I'm creating an image compressor for a project. I generate codes for the values in the image in such a way that for every grey value (from 0-254) there is a ...
Code: #include #include #include int min(int a, int b) { return (a <= b ? a : b); } void init(char *a, char *b, int lengthA, int lengthB) { char s[4] = {'A', 'C', 'G', 'T'}; FILE *fData; int i; printf("%d", 4); fData = fopen("longest-common-subsequence.dat", "wt"); for (i = 0; i < lengthA; i++) a[i] = s[rand()%4]; for ...