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

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

finally :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

#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); // here where I have the problem

char *bwt_arr = findLastChar(m, suffix_arr, length);//also here

}

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

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!