You are on page 1of 3

SIV 2006 - Semester 2, 20192020

Question 2

Name: Natasha Azeelen binti Zulhafiz


Matric No: SIV180011 / 17189250

- A C G T A
- 0 0 0 0 0 0
G 0 0 0 1 1 1
C 0 0 1 1 1 1
A 0 1 1 1 1 2
T 0 1 1 1 2 2
T 0 1 1 1 2 2
A 0 1 1 1 2 3
G 0 1 1 2 2 3
C 0 1 2 2 2 3
T 0 1 2 2 3 3
A 0 1 2 2 3 4
C 0 1 2 2 3 4

Each diagonal step means a character in the longest common subsequence. The solution indicated

A C G T
| |
G C A T

The length of the longest common subsequence is 8.


A possible longest common subsequence is ATAGCTAC
A G C T T G A
0 0 0 0 0 0 0
1 1 1 1 1 1 1
1 1 2 2 2 2 2
2 2 2 2 2 2 3
2 2 2 3 3 3 3
2 2 2 3 4 4 4
3 3 3 3 4 4 5
3 4 4 4 4 5 5
3 4 5 5 5 5 5
3 4 5 6 6 6 6
4 4 5 6 6 6 7
4 4 5 6 6 6 7

nce. The solution indicated by the yellow highlights:

A A G C T T G
| | | |
T A G C T
C
0
1
2
3
3
4
5
5
6
6
7
8

A C
| |
A C

You might also like