Thanks @salem. You gave me a very good point. I didn't notice but in my code there were two loops that actually run to the size of file and don't needed I just eliminate them and now it work perfect....
Type: Posts; User: gevni
Thanks @salem. You gave me a very good point. I didn't notice but in my code there were two loops that actually run to the size of file and don't needed I just eliminate them and now it work perfect....
Let me explain it again, I think you misunderstood it.
Let say there are 5 strings in the FASTA file (so there are 5 iterations of while loop) if the size of each string is same then each iteration...
100000 strings not the characters of each string. When the number of strings [lines] grow the code get slow even for the very first iteration .
I am confused that why it take more time when file size let see is 100000 even for first iteration that run very efficiently in case of 10,000.
For Exampe: I put printf statement for each iteration....
Sorry it was mistake in post. I actually free (b) inside the loop. Also I put 256 here just for asking question. This length is varying depending on the string length.
Hi
I have a FASTA file that contain sequences string upto 2000000 line of strings. I wrote the code that works well with smaller size but when the size of file grows it get slower. Can you please...
Thank you for your help I got the idea now :)
I forgot to mention it :). It is also make the list. Is there any solution?
Regards:
-----------------
Tania
Hi
I have to generate all the possible combination of numbers where multiplication results in some specific number.
For example I have number 12
The all possible multiplication options that...
Hi
I created structure and read values from file. I created function to get data from file. It give me segmentation fault error. I am not good with structure. Can you plz guide me what i am doing...
two integer mean
if x=09 y=89
z= 0989
I just want to concatenate the two integer values including 0 value
For example if i have two integers
x=0 y=1
result should be
z=01
or if x=2, y=0
result should be
z=20
or if x=5 y=8
How i can concatenate two integers into one integer. I have code that concatenate two integers but if the 2nd integer is zero it won't work. How can i modify it so that it can cater the case of y=0...
HI
I have to create dynamic array, where each element of it points to some value.
I know how to create dynamic array
array_record * record_1 = (array_record*)malloc(...
I created the 2 structures for 2D link list. I am not good with pointers. Can u tell me how can i initialize and get elements from min_cost_candidate structure?
like some thing ...
Hi
I have to create a 2D link list with 2 level hierarchy
some thing like that
head nodes level 1: 0 1 2
Thanks I did it using while loop. I am providing the code here in case if some one has the same problem.
for (u=0;u<q; u++){
int *myIntPtr = &join[u][0];
while( *myIntPtr > -1 )
{
...
I use array of array to store this data and it work fine. Now i have to print it, how i can print all No. before sentinel?
int **join=NULL;
join = (int**)malloc(sizeof(int*) * unique);
...
Hi I have these two columns.
ID Group
0 2
1 2
2 3
3 4
4 4
5 4
6 4
Hi
I have one code that use MPI broadcast and I want to change it into Asynchronous Point to Point communication. I am newbie in Parallel programming.
Can some one give me example implementation...
Thanks i get it
Hi
sorry i am posting the same problem again. Actually i found some mistakes in my post. So here is the modified version. I want to concatenate the indexes of elements of array that has the same...
qq,ii,rr are just rendom indexes to iterate. I just post the part that i think is useful and exclude them. But it original code i declare them.
lets make int col_elem=4;
instead of col_elem[ii]=4;
Hi
I m concatenating specific range of digits that are same from an array "element" . I have problem with range.As in my case the range is col_elem[ii]=4, but it will continue reading the next...
Thanks it works :)