Search:

Type: Posts; User: Teiji

Search: Search took 0.01 seconds.

  1. Replies
    54
    Views
    11,650

    I'd like to thank everyone for all of the help....

    I'd like to thank everyone for all of the help. But the length of this assignment is growing and growing each day (and I have several other assignments to do) and the codes get more complex as it...
  2. Replies
    54
    Views
    11,650

    I haven't learn about malloc yet, but that sounds...

    I haven't learn about malloc yet, but that sounds like a nice function. Since I feel tired of creating a 2d array for each base.
  3. Replies
    54
    Views
    11,650

    This is what I did and it works. /* DNA.c...

    This is what I did and it works.



    /* DNA.c generates the base numbers, from the set of (A,C,G,T), from 1 to
    5. Adak, April, 2009
    */

    #include <stdio.h>
    #include <string.h>
  4. Replies
    54
    Views
    11,650

    Performance is not the issue here. I'm going for...

    Performance is not the issue here. I'm going for correctness and ease of understanding.
  5. Replies
    54
    Views
    11,650

    Adak, oh it's a pretty long assignment. I have to...

    Adak, oh it's a pretty long assignment. I have to read an input file containing thousands of DNA strands and count the value of each case (how many times it occur for base 1, base 2, base 3, etc.),...
  6. Replies
    54
    Views
    11,650

    No, you got it wrong. Simple concept but hard...

    No, you got it wrong.

    Simple concept but hard to explain. Only 1 letter change at a time starting from the right. Once that letter complete its change (got all the way to T), then it "reset" and...
  7. Replies
    54
    Views
    11,650

    I don't understand the part in bold. Are you...

    I don't understand the part in bold. Are you using an array? Can you give an example of how the codes would look like?
  8. Replies
    54
    Views
    11,650

    Ok here's what I got so far. This is only for...

    Ok here's what I got so far.

    This is only for base 2.



    #include <stdio.h>
    #include <ctype.h>
    #include <string.h>
  9. Replies
    54
    Views
    11,650

    Well, the pattern is... For base 2: First...

    Well, the pattern is...

    For base 2:
    First letter is A, then match with second letter ACGT (you'd get, AA, AC, AG, AT). Then first letter change to C, and match with second letter ACGT (you'd get...
  10. Replies
    54
    Views
    11,650

    Well, I want the program to use an algorithm to...

    Well, I want the program to use an algorithm to produce the sequence, instead of me manually input all the sequence. Imagine base 15, that would produce ~1 billion different sequences. That's...
  11. Replies
    54
    Views
    11,650

    Generating DNA sequence

    I'm writing a program that generates the DNA sequence given a base number.

    For example, if I give it base 1, the sequence would be: a, c, g, t. If I give it base 2, the sequence would be: aa, ac,...
  12. Replies
    2
    Views
    1,866

    Help with printf and scanf

    I want to write a program that accepts input like this:

    Input: 0001111+0110000

    where the first 7 characters are digits (I'm try to make them look like a 7 bit binary number), the 8th character...
Results 1 to 12 of 12