ch04 dna mapping
TRANSCRIPT
![Page 1: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/1.jpg)
DNA Mapping and Brute
Force Algorithms
![Page 2: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/2.jpg)
1. Restriction Enzymes
2. Gel Electrophoresis
3. Partial Digest Problem
4. Brute Force Algorithm for Partial Digest Problem
5. Branch and Bound Algorithm for Partial Digest Problem
6. Double Digest Problem
Outline
![Page 3: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/3.jpg)
Section 1:
Restriction Enzymes
![Page 4: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/4.jpg)
Discovery of Restriction Enzymes
• HindII: First restriction enzyme.
• Was discovered accidentally in 1970 while scientists were
studying how the bacterium Haemophilus influenzae takes
up DNA from the virus.
• Recognizes and cuts DNA at sequences:
• GTGCAC
• GTTAAC
![Page 5: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/5.jpg)
Discovering Restriction Enzymes
Werner Arber
My father has discovered a
servant who serves as a pair of
scissors. If a foreign king invades
a bacterium, this servant can cut
him in small fragments, but he
does not do any harm to his own
king. Clever people use the
servant with the scissors to find
out the secrets of the kings. For
this reason my father received
the Nobel Prize for the discovery
of the servant with the scissors.”
Daniel Nathans’ daughter
(from Nobel lecture)
Hamilton SmithDaniel Nathans
Werner Arber – discovered restriction
enzymes
Daniel Nathans - pioneered the application
of restriction for the
construction of genetic
maps
Hamilton Smith - showed that restriction
enzyme cuts DNA in the
middle of a specific sequence
![Page 6: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/6.jpg)
Molecular Cell Biology, 4thEdition
Molecular Scissors
![Page 7: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/7.jpg)
Restriction Enzymes: Common Recognition Sites
Molecular Cell Biology, 4thEdition
![Page 8: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/8.jpg)
• Recombinant DNA technology
• Cloning
• cDNA/genomic library construction
• DNA mapping
Uses of Restriction Enzymes
![Page 9: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/9.jpg)
Recombinant DNA technology
![Page 10: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/10.jpg)
cDNA Library
![Page 11: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/11.jpg)
• A restriction map is a map showing positions of restriction sites
in a DNA sequence.
• If DNA sequence is known then construction of restriction map
is trivial exercise.
• In early days of molecular
biology DNA sequences
were often unknown.
• Biologists had to solve
the problem of constructing
restriction maps without
knowing DNA sequences.
Restriction Maps
![Page 12: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/12.jpg)
Full Restriction Digest
• Cutting DNA at each restriction site creates multiple
restriction fragments:
• Full Restriction Digest: Is it possible to reconstruct the order
of the fragments from the sizes of the fragments?
• Example: Say the fragments have lengths {3,5,5,9} as in
the above sequence.
![Page 13: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/13.jpg)
Full Restriction Digest: Multiple Solutions
• For the set of fragment lengths {3, 5, 5, 9} we have the
original segment as a possible solution:
• However, we could also have the following segment:
![Page 14: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/14.jpg)
Section 2:
Gel Electrophoresis
![Page 15: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/15.jpg)
• Restriction enzymes break DNA into restriction fragments.
• Gel electrophoresis:A process for separating DNA by size
and measuring sizes of restriction fragments.
• Modern electrophoresis machines can separate DNA
fragments that differ in length by 1 nucleotide for fragments
up to 500 nucleotides long.
Gel Electrophoresis: Measure Segment Lengths
![Page 16: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/16.jpg)
• DNA fragments are injected into a gel positioned in an
electric field.
• DNA are negatively charged near neutral pH.
• The ribose phosphate backbone of each nucleotide is
acidic; DNA has an overall negative charge.
• Thus DNA molecules move towards the positive electrode.
Gel Electrophoresis: How It Works
![Page 17: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/17.jpg)
Gel Electrophoresis
• DNA fragments of different lengths are separated according to
size.
• Smaller molecules move through the gel matrix more readily
than larger molecules.
• The gel matrix restricts random diffusion so molecules of
different lengths separate into different bands.
![Page 18: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/18.jpg)
Gel Electrophoresis
![Page 19: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/19.jpg)
Direction of DNA
movement
Detecting DNA: Autoradiography
• Separated DNA bands on a
gel can be viewed via
autoradiography:
1. DNA is radioactively
labeled.
2. The gel is laid against a
sheet of photographic
film in the dark,
exposing the film at the
positions where the
DNA is present.
Molecular Cell Biology, 4th edition
![Page 20: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/20.jpg)
• Another way to visualize DNA bands in gel is through
fluorescence:
• The gel is incubated with a solution containing the
fluorescent dye ethidium.
• Ethidium binds to the DNA.
• The DNA lights up when the gel is exposed to ultraviolet
light.
Detecting DNA: Fluorescence
![Page 21: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/21.jpg)
Section 3:
Partial Digest Problem
![Page 22: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/22.jpg)
• The sample of DNA is exposed to the restriction enzyme for
only a limited amount of time to prevent it from being cut at
all restriction sites; this procedure is called partial
(restriction) digest.
• This experiment generates the set of all possible restriction
fragments between every two (not necessarily consecutive)
cuts.
• This set of fragment sizes is used to determine the positions of
the restriction sites in the DNA sequence.
Partial Restriction Digest
![Page 23: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/23.jpg)
• Partial Digest results in the following 10 restriction fragments:
Partial Digest: Example
![Page 24: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/24.jpg)
• We assume that multiplicity of a fragment can be detected, i.e.,
the number of restriction fragments of the same length can be
determined.
• Here we would detect two
fragments of length 5 and
two of length 14.
Partial Digest: Example
![Page 25: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/25.jpg)
Multiset: {3, 5, 5, 8, 9, 14, 14, 17, 19, 22}
Partial Digest: Example
• We therefore have a multiset of fragment lengths.
![Page 26: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/26.jpg)
• We now provide a basic mathematical framework for the
partial digest process.
The multiset of integers representing lengths of each of the
DNA fragments produced from a partial digest; formed
from X by taking all pairwise differences.
The set of n integers representing the location of all cuts in
the restriction map, including the start and end.
X:
DX:
Partial Digest: Mathematical Framework
![Page 27: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/27.jpg)
Return to Partial Digest Example
![Page 28: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/28.jpg)
Return to Partial Digest Example
0 5 14 19 22
![Page 29: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/29.jpg)
• n = 5
Return to Partial Digest Example
0 5 14 19 22
![Page 30: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/30.jpg)
• n = 5
• X = {0, 5, 14, 19, 22}
Return to Partial Digest Example
0 5 14 19 22
![Page 31: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/31.jpg)
Return to Partial Digest Example
0 5 14 19 22
• n = 5
• X = {0, 5, 14, 19, 22}
• DX = {3,5,5,8,9,14,14,17,19,22}
![Page 32: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/32.jpg)
• n = 5
• X = {0, 5, 14, 19, 22}
• DX = {3,5,5,8,9,14,14,17,19,22}
• Represent DX as a table, with
elements of X along both the top and
left sides.
Return to Partial Digest Example
![Page 33: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/33.jpg)
• n = 5
• X = {0, 5, 14, 19, 22}
• DX = {3,5,5,8,9,14,14,17,19,22}
• Represent DX as a table, with
elements of X along both the top
and left sides.
X 0 5 14 19 22
0
5
14
19
22
Return to Partial Digest Example
![Page 34: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/34.jpg)
• n = 5
• X = {0, 5, 14, 19, 22}
• DX = {3,5,5,8,9,14,14,17,19,22}
• Represent DX as a table, with
elements of X along both the top
and left sides.
• We place xj – xi into entry (i,j) for all
1 ≤ i<j ≤ n
X 0 5 14 19 22
0 5 14 19 22
5 9 14 17
14 5 8
19 3
22
Return to Partial Digest Example
![Page 35: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/35.jpg)
• Goal: Given all pairwise distances between points on a line,
reconstruct the positions of those points.
• Input: The multiset of pairwise distances L, containing n(n-
1)/2 integers.
• Output: A set X, of n integers, such that ∆X = L.
Partial Digest Problem (PDP): Formulation
![Page 36: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/36.jpg)
• It is not always possible to uniquely reconstruct a set X based
only on ∆X.
• Example:The sets
X = {0, 2, 5} (X + 10) = {10, 12, 15}
both produce ∆X = ∆(X + 10) ={2, 3, 5} as their partial
digest.
• Two sets X and Y are homometric if ∆X = ∆Y.
• The sets {0,1,2,5,7,9,12} and {0,1,5,7,8,10,12} present a less
trivial example of homometric sets. They both digest into:
{1, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 6, 7, 7, 7, 8, 9, 10, 11, 12}
Multiple Solutions to the PDP
![Page 37: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/37.jpg)
X = {0,1,2,5,7,9,12}
Homometric Sets: Example
![Page 38: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/38.jpg)
0 1 2 5 7 9 12
0 1 2 5 7 9 12
1 1 4 6 8 11
2 3 5 7 10
5 2 4 7
7 2 5
9 3
12
X = {0,1,2,5,7,9,12}
Homometric Sets: Example
![Page 39: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/39.jpg)
0 1 2 5 7 9 12
0 1 2 5 7 9 12
1 1 4 6 8 11
2 3 5 7 10
5 2 4 7
7 2 5
9 3
12
X = {0,1,2,5,7,9,12} Y = {0,1,5,7,8,10,12}
Homometric Sets: Example
![Page 40: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/40.jpg)
0 1 2 5 7 9 12
0 1 2 5 7 9 12
1 1 4 6 8 11
2 3 5 7 10
5 2 4 7
7 2 5
9 3
12
0 1 5 7 8 10 12
0 1 5 7 8 10 12
1 4 6 7 9 11
5 2 3 5 7
7 1 3 5
8 2 4
10 2
12
X = {0,1,2,5,7,9,12} Y = {0,1,5,7,8,10,12}
Homometric Sets: Example
![Page 41: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/41.jpg)
0 1 2 5 7 9 12
0 1 2 5 7 9 12
1 1 4 6 8 11
2 3 5 7 10
5 2 4 7
7 2 5
9 3
12
0 1 5 7 8 10 12
0 1 5 7 8 10 12
1 4 6 7 9 11
5 2 3 5 7
7 1 3 5
8 2 4
10 2
12
X = {0,1,2,5,7,9,12} Y = {0,1,5,7,8,10,12}
Homometric Sets: Example
![Page 42: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/42.jpg)
0 1 2 5 7 9 12
0 1 2 5 7 9 12
1 1 4 6 8 11
2 3 5 7 10
5 2 4 7
7 2 5
9 3
12
0 1 5 7 8 10 12
0 1 5 7 8 10 12
1 4 6 7 9 11
5 2 3 5 7
7 1 3 5
8 2 4
10 2
12
X = {0,1,2,5,7,9,12} Y = {0,1,5,7,8,10,12}
Homometric Sets: Example
![Page 43: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/43.jpg)
0 1 2 5 7 9 12
0 1 2 5 7 9 12
1 1 4 6 8 11
2 3 5 7 10
5 2 4 7
7 2 5
9 3
12
0 1 5 7 8 10 12
0 1 5 7 8 10 12
1 4 6 7 9 11
5 2 3 5 7
7 1 3 5
8 2 4
10 2
12
X = {0,1,2,5,7,9,12} Y = {0,1,5,7,8,10,12}
Homometric Sets: Example
![Page 44: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/44.jpg)
0 1 2 5 7 9 12
0 1 2 5 7 9 12
1 1 4 6 8 11
2 3 5 7 10
5 2 4 7
7 2 5
9 3
12
0 1 5 7 8 10 12
0 1 5 7 8 10 12
1 4 6 7 9 11
5 2 3 5 7
7 1 3 5
8 2 4
10 2
12
X = {0,1,2,5,7,9,12} Y = {0,1,5,7,8,10,12}
Homometric Sets: Example
![Page 45: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/45.jpg)
0 1 2 5 7 9 12
0 1 2 5 7 9 12
1 1 4 6 8 11
2 3 5 7 10
5 2 4 7
7 2 5
9 3
12
0 1 5 7 8 10 12
0 1 5 7 8 10 12
1 4 6 7 9 11
5 2 3 5 7
7 1 3 5
8 2 4
10 2
12
X = {0,1,2,5,7,9,12} Y = {0,1,5,7,8,10,12}
Homometric Sets: Example
![Page 46: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/46.jpg)
0 1 2 5 7 9 12
0 1 2 5 7 9 12
1 1 4 6 8 11
2 3 5 7 10
5 2 4 7
7 2 5
9 3
12
0 1 5 7 8 10 12
0 1 5 7 8 10 12
1 4 6 7 9 11
5 2 3 5 7
7 1 3 5
8 2 4
10 2
12
X = {0,1,2,5,7,9,12} Y = {0,1,5,7,8,10,12}
Homometric Sets: Example
![Page 47: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/47.jpg)
0 1 2 5 7 9 12
0 1 2 5 7 9 12
1 1 4 6 8 11
2 3 5 7 10
5 2 4 7
7 2 5
9 3
12
0 1 5 7 8 10 12
0 1 5 7 8 10 12
1 4 6 7 9 11
5 2 3 5 7
7 1 3 5
8 2 4
10 2
12
X = {0,1,2,5,7,9,12} Y = {0,1,5,7,8,10,12}
Homometric Sets: Example
![Page 48: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/48.jpg)
0 1 2 5 7 9 12
0 1 2 5 7 9 12
1 1 4 6 8 11
2 3 5 7 10
5 2 4 7
7 2 5
9 3
12
0 1 5 7 8 10 12
0 1 5 7 8 10 12
1 4 6 7 9 11
5 2 3 5 7
7 1 3 5
8 2 4
10 2
12
X = {0,1,2,5,7,9,12} Y = {0,1,5,7,8,10,12}
Homometric Sets: Example
![Page 49: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/49.jpg)
0 1 2 5 7 9 12
0 1 2 5 7 9 12
1 1 4 6 8 11
2 3 5 7 10
5 2 4 7
7 2 5
9 3
12
0 1 5 7 8 10 12
0 1 5 7 8 10 12
1 4 6 7 9 11
5 2 3 5 7
7 1 3 5
8 2 4
10 2
12
X = {0,1,2,5,7,9,12} Y = {0,1,5,7,8,10,12}
Homometric Sets: Example
![Page 50: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/50.jpg)
0 1 2 5 7 9 12
0 1 2 5 7 9 12
1 1 4 6 8 11
2 3 5 7 10
5 2 4 7
7 2 5
9 3
12
0 1 5 7 8 10 12
0 1 5 7 8 10 12
1 4 6 7 9 11
5 2 3 5 7
7 1 3 5
8 2 4
10 2
12
X = {0,1,2,5,7,9,12} Y = {0,1,5,7,8,10,12}
Homometric Sets: Example
![Page 51: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/51.jpg)
Section 4:
Brute Force Algorithm for
Partial Digest Problem
![Page 52: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/52.jpg)
• Brute force algorithms, also known as exhaustive search
algorithms, examine every possible variant to find a solution.
• Efficient only in rare cases; usually impractical.
Brute Force Algorithms
![Page 53: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/53.jpg)
1. Find the restriction fragment of maximum length M. Note: M
is the length of the DNA sequence.
2. For every possible set X={0, x2, … ,xn-1, M}
compute the corresponding DX.
3. If DX is equal to the experimental partial digest L, then X is
a possible restriction map.
Partial Digest: Brute Force
![Page 54: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/54.jpg)
Partial Digest: Brute Force
1. AnotherBruteForcePDP(L, n)
2. Mmaximum element in L
3. for every set of n – 2 integers 0 < x2 < … xn-1 < M
4. X{ 0,x2,…,xn-1,M }
5. Form DX from X
6. if DX = L
7. return X
8. output “no solution”
![Page 55: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/55.jpg)
• BruteForcePDP takes O(M n-2) time since it must examine all
possible sets of positions. Note: the number of such sets is
• One way to improve the algorithm is to limit the values of xi
to only those values which occur in L, because we are
assuming for the sake of simplicity that 0 is contained in X.
)()2()2)(1()!2(
1
)!1()!2(
)!1(
2
12
n
MOnMMMnnMn
M
n
M
Efficiency of BruteForcePDP
![Page 56: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/56.jpg)
Another BruteForcePDP
• Limiting the members of X to those contained in L is almost
identical to BruteForcePDP, except for line 3:
1. AnotherBruteForcePDP(L, n)
2. M maximum element in L
3. for every set of n – 2 integers 0 < x2 < … xn-1 < M
4. X { 0,x2,…,xn-1,M }
5. Form DX from X
6. if DX = L
7. return X
8. output “no solution”
![Page 57: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/57.jpg)
Another BruteForcePDP
• Limiting the members of X to those contained in L is almost
identical to BruteForcePDP, except for line 3:
1. AnotherBruteForcePDP(L, n)
2. M maximum element in L
3. for every set of n – 2 integers 0 < x2 < … xn-1 < M from L
4. X { 0,x2,…,xn-1,M }
5. Form DX from X
6. if DX = L
7. return X
8. output “no solution”
![Page 58: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/58.jpg)
• More efficient than BruteForce PDP, but still slow.
• If L = {2, 998, 1000} (n = 3, M= 1000), BruteForcePDP will
be extremely slow, but AnotherBruteForcePDP will be quite
fast.
• Fewer sets are examined, but runtime is still exponential:
O(n2n-4).
Another BruteForcePDP: Efficiency
![Page 59: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/59.jpg)
Section 5:
Branch and Bound
Algorithm for Partial
Digest Problem
![Page 60: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/60.jpg)
1. Begin with X = {0}.
Branch and Bound Algorithm for PDP
![Page 61: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/61.jpg)
1. Begin with X = {0}.
2. Remove the largest element in L and place it in X.
Branch and Bound Algorithm for PDP
![Page 62: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/62.jpg)
1. Begin with X = {0}.
2. Remove the largest element in L and place it in X.
3. See if the element fits on the right or left side of the restriction
map.
Branch and Bound Algorithm for PDP
![Page 63: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/63.jpg)
1. Begin with X = {0}.
2. Remove the largest element in L and place it in X.
3. See if the element fits on the right or left side of the restriction
map.
4. When if fits, find the other lengths it creates and remove those
from L.
Branch and Bound Algorithm for PDP
![Page 64: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/64.jpg)
1. Begin with X = {0}.
2. Remove the largest element in L and place it in X.
3. See if the element fits on the right or left side of the restriction
map.
4. When if fits, find the other lengths it creates and remove those
from L.
5. Go back to step 1 until L is empty.
Branch and Bound Algorithm for PDP
![Page 65: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/65.jpg)
1. Begin with X = {0}.
2. Remove the largest element in L and place it in X.
3. See if the element fits on the right or left side of the restriction
map.
4. When if fits, find the other lengths it creates and remove those
from L.
5. Go back to step 1 until L is empty.
Branch and Bound Algorithm for PDP
WRONG ALGORITHM
![Page 66: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/66.jpg)
• Before describing PartialDigest, first define D(y, X) as the
multiset of all distances between point y and all other points in
the set X.
n
n
xxxX
xyxyxyXyD
,,,for
,,,),(
21
21
Defining D(y, X)
![Page 67: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/67.jpg)
return 15
to),( lengths add and from Remove 14
),PLACE( 13
from ),( lengths remove and to Add 12
),( if 11
\ to),( lengths add and from Remove 10
),PLACE( 9
from ),( lengths remove and to Add 8
),( if 7
),DELETE( 6
in element maximumy 5
return 4
output 3
empty is if 2
),PLACE( 1
LXywidthDXywidth
XL
LXywidthDXywidth
LXywidthD
LXyDXy
XL
LXyDXy
LXyD
Ly
L
X
L
XL
),PLACE( 4
,0X 3
),DELETE( 2
in element Maximum 1
)est(PartialDig
XL
width
Lwidth
Lwidth
L
Simply deletes width from L
PartialDigest: Pseudocode
![Page 68: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/68.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { }
PartialDigest: Example
![Page 69: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/69.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0 }
• Remove 10 from L and insert it (along with 0) into X. We know
this must be the length of the DNA sequence because it is the
largest fragment.
PartialDigest: Example
![Page 70: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/70.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 10 }
PartialDigest: Example
![Page 71: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/71.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 10 }
• Take 8 from L and make y = 2 or 8. But since the two cases are
symmetric, we can assume y = 2.
PartialDigest: Example
![Page 72: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/72.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 10 }
• We find that the distances from y=2 to other elements in X are
D(y, X) = {8, 2}, so we remove {8, 2} from L and add 2 to X.
PartialDigest: Example
![Page 73: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/73.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 2, 10 }
PartialDigest: Example
![Page 74: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/74.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 2, 10 }
• Take 7 from L and make y = 7 or y = 10 – 7 = 3. We will
explore y = 7 first, so D(y, X ) = {7, 5, 3}.
PartialDigest: Example
![Page 75: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/75.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 2, 10 }
• For y = 7 first, D(y, X ) = {7, 5, 3}. Therefore we remove {7, 5
,3} from L and add 7 to X.
D(y, X) = {7, 5, 3} = {½7 – 0½, ½7 – 2½, ½7 – 10½}
PartialDigest: Example
![Page 76: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/76.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 2, 7, 10 }
PartialDigest: Example
![Page 77: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/77.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 2, 7, 10 }
• Take 6 from L and make y = 6.
• Unfortunately D(y, X) = {6, 4, 1 ,4}, which is not a subset of L.
Therefore we won’t explore this branch.
6
PartialDigest: Example
![Page 78: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/78.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 2, 7, 10 }
• This time make y = 4. D(y, X) = {4, 2, 3 ,6}, which is a subset
of L so we will explore this branch. We remove {4, 2, 3 ,6}
from L and add 4 to X.
PartialDigest: Example
![Page 79: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/79.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 2, 4, 7, 10 }
PartialDigest: Example
![Page 80: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/80.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 2, 4, 7, 10 }
• L is now empty, so we have a solution, which is X.
PartialDigest: Example
![Page 81: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/81.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 2, 7, 10 }
• To find other solutions, we backtrack.
PartialDigest: Example
![Page 82: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/82.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 2, 10 }
• More backtrack.
PartialDigest: Example
![Page 83: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/83.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 2, 10 }
• This time we will explore y = 3. D(y, X) = {3, 1, 7}, which is
not a subset of L, so we won’t explore this branch.
PartialDigest: Example
![Page 84: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/84.jpg)
L = { 2, 2, 3, 3, 4, 5, 6, 7, 8, 10 }
X = { 0, 10 }
• We backtracked back to the root. Therefore we have found all
the solutions.
PartialDigest: Example
![Page 85: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/85.jpg)
• Still exponential in worst case, but is very fast on average.
• Informally, let T(n) be time PartialDigest takes to place n cuts.
• No branching case: T(n) < T(n-1) + O(n)
• Quadratic
• Branching case: T(n) < 2T(n-1) + O(n)
• Exponential
Analyzing the PartialDigest Algorithm
![Page 86: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/86.jpg)
Section 6:
Double Digest Problem
![Page 87: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/87.jpg)
• Double Digest is yet another experimentally method to
construct restriction maps
• Use two restriction enzymes; three full digests:
1. One with only first enzyme
2. One with only second enzyme
3. One with both enzymes
• Computationally, Double Digest problem is more complex
than Partial Digest problem
Double Digest Mapping
![Page 88: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/88.jpg)
Double Digest: Example
![Page 89: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/89.jpg)
• Without the information about X (i.e. A+B), it is impossible to
solve the double digest problem as this diagram illustrates
Double Digest: Example
![Page 90: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/90.jpg)
• Input:
• dA – fragment lengths from the digest with enzyme A.
• dB – fragment lengths from the digest with enzyme B.
• dX – fragment lengths from the digest with both A and B.
• Output:
• A – location of the cuts in the restriction map for the
enzyme A.
• B – location of the cuts in the restriction map for the
enzyme B.
Double Digest Problem
![Page 91: Ch04 dna mapping](https://reader034.vdocuments.net/reader034/viewer/2022052619/55503378b4c9058f2f8b506c/html5/thumbnails/91.jpg)
Double Digest: Multiple Solutions