Question: I am trying to do Burrows-Wheeler Transform (BWT) for the array or random generator the random generator will go throw three steps to do that

I am trying to do Burrows-Wheeler Transform (BWT) for the array or random generator

the random generator will go throw three steps to do that

first: it will get the value from the random generator

secound:it will Computes the suffix array of our input which is coming from our random generator

then:Adds to the output array the last char of each rotation

I am finding diffecuilty doing this becouse my random generator is ginving an int values and my computeSuffixArra is doing it with a pointer char I was able to convert my random to int to char but it is still giving me error

I am trying to do Burrows-Wheeler Transform (BWT) for the array or

random generator the random generator will go throw three steps to do

#include "data.h" #include #include #include #include

//this is my random generator int *RandomDataGenerator( int fr[100]){ int i; srand((unsigned)time(NULL)); for(i=0;i

} return fr; }

//this is my BWT operator

int *BWT(void){ int m[100]; int *y; int length=sizeof(m); y=RandomDataGenerator(m); char c= (char)m; int *suffix_arr ; suffix_arr= computeSuffixArray(m , length);

}

struct rotation { int index; char *suffix; }; int Compare (const void *x, const void *y) { struct rotation *rx = (struct rotation *)x; struct rotation *ry = (struct rotation *)y; return strcmp(rx -> suffix, ry -> suffix); } int *computeSuffixArray(char *input, int length) { struct rotation suffx[length]; for(int i = 0; i 18 int *y: 19 int length-sizeof (m) 20 | y=RandomDataGenerator (m) ; 21 char c(char)m; 23 int *suffix arr ; 24 | suffix-arr,Omputeaut 25 26 27 28 29 30 max (m , length) ; warning g: implicit declaration of function 'computeSuffixArray' 1s invalid in C99 18 int *y: 19 int length-sizeof (m) 20 | y=RandomDataGenerator (m) ; 21 char c(char)m; 23 int *suffix arr ; 24 | suffix-arr,Omputeaut 25 26 27 28 29 30 max (m , length) ; warning g: implicit declaration of function 'computeSuffixArray' 1s invalid in C99

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!