Re: Lost in loops




"Dimitri Maziuk" <dima@xxxxxxxxx> wrote in message
news:slrndtfciu.h1n.dima@xxxxxxxxxxxxxxxxxxxxxxxxxxx
> annascalise@xxxxxxxxx sez:
>> Hi,
>>
>> I am really stuck with my program that will compare two strings and
>> assign scores between pairs of letters.
>>
>> my sequences are read in ok
>>
>> seq1 = ATCGTCGTA
>> seq2 = TCGTACTAA
>>
>> a second file formatted as so...
>>
>> A A 1
>> T T 1
>> C C 1
>> G G 1
>>
>> is now in a 2D char array
>>
>> I just cannot think how on earth to get my values out of my array, i
>> know if I get past this milestone I will be fine (I do not have much
>> java experience or knowledge at my disposal - in fact it all i can do
>> to understand the code I have wrote)
>
> Heh. I'd suggest you read about FASTA, BLAST, and NLP algorithms
> first.

Not sure that that would be the order I would recommend, given that the
OP seems to be having problems grasping nested for-loops.

- Oliver


.



Relevant Pages

  • Re: Lost in loops
    ... > I am really stuck with my program that will compare two strings and ... > assign scores between pairs of letters. ... > is now in a 2D char array ...
    (comp.lang.java.programmer)
  • Re: Lost in loops
    ... > a second file formatted as so... ... You don't say what you mean by "compare two strings", ... Refine this using powers of 2 if there are more than 10 different letters. ...
    (comp.lang.java.programmer)
  • string comparison?
    ... Remove the common words: ... Compare the remaining letters in both strings, ...
    (microsoft.public.vb.general.discussion)
  • Re: get(char*, num, delim) question
    ... you do not compare strings with == ... Get rid of this if you switch to an array. ... You need strcmp to copare the strings ... Modern C++ has a string class which is easier to use than a char array (or ...
    (comp.lang.cpp)
  • Re: structs for data transfer?
    ... > John Harrison wrote: ... >> Write some code to convert the struct you want to send into a char array. ... or sentinels and delimeters for the ends of strings. ...
    (comp.lang.cpp)