int main(void) {
  printf("\nДължина на най-дългата обща подредица: %u", LCS_Length());
  printf("\nPrintLCS:  Максимална обща подредица (в обратен ред): ");
  printLCS();
  printf("\nPrintLCS2: Максимална обща подредица: ");
  printLCS2(strlen(x), strlen(y));
  printf("\nPrintLCS3: Максимална обща подредица: ");
  printLCS3(strlen(x), strlen(y));
  return 0;
}
Example #2
0
void main()
{

	/*Initializing the 0th place of x[] & y[] char array*/
	x[0]='a';y[0]='z';

	/*scanning the first sequence in x[] (from 1st place)*/
	printf("give the first subsequence:\n");
	gets(&x[1]);
	
	/*scanning the second sequence in y[] (from 1st place)*/
	printf("give the second subsequnce:\n");
	gets(&y[1]);

	LCS_Length();
	printf("The length of the longest subsequence is %d\n",c[m][n]);
	
	printf("Here is the longest subsequences:\n");

	PrintLCS(m,n);
	printf("\n");

}
int main(void) {
  printf("\nДължина на най-дългата обща подредица: %u", LCS_Length());
  return 0;
}