
COMP 590-90 / 790-90 Problem Set #1
due September 9 2008 2PM
1. Problem 2.1
2. Problem 2.17
3. Assume that each of the four DNA nucleotides occurs with the same frequency.
a. On average, how often would you expect to find the cleaving sequence of the BamHI
restriction enzyme, 5โ-GGATCC-3โ, in a genome? (Hint: once in how many base pairs?)
b. What is the expected frequency of a stop codon occurring in a DNA sequence? How can the
expected frequency of stop codons be exploited to find potential genes? (Hint: most proteins
are composed of 100s up to 1000s of amino acids)
c. How many nucleotides long would a DNA sequence need to be so that its expected frequency
of occurrence in the Human genome (roughly 3 billion base pairs) would be no more than
once?
4. A certain bacterial plasmid (a circular chain of DNA) is known to be 5000 base pairs long. When
treated with the restriction enzyme EcoRI it is cut into 2 parts, one piece is 3000 base pairs and
the other is 2000 base pairs long. Another restriction enzyme, BamHI, cuts the same plasmid into
3 pieces of 800, 1800, and 2400 base pairs. When both EcoRI and BamHI are used, fragments of
sizes 500, 700, 800, 1100, and 1900 base pairs are generated. Use this information to make a
restriction enzyme map of the plasmid.
5. Design a branch-and-bound algorithm for the Double Digest Problem.
6. Program Assignment: For a pair of sequences A = a1 . . .am and B = b1 . . . bn, design and
implement an algorithm to convert A to B with minimal cost. The cost functions are as follows.
a. deleting any letter takes a cost of 3;
b. inserting a letter takes a cost of 5;
The input of the algorithm includes A, B, m, n. The output of the algorithm is the minimal cost.
Discuss the time and space complexities of your algorithm.
Suggested language: Java, C/C++. Python. If you have any questions or wish to use a different
language, please contact our TA Chen-Rui Chou.
You need to submit a hardcopy of your code and a few test examples with your homework and
The following two problems are for COMP 790-90 students. COMP 590-90 students may choose to
do them for bonus credits.
7. Problem 2.7
8. Problem 2.18