Www.bioalgorithms.infoAn Introduction to Bioinformatics Algorithms Chapter 5 Greedy Algorithms and Genome Rearrangements By: Hasnaa Imad.

Slides:



Advertisements
Similar presentations
A Simpler 1.5-Approximation Algorithm for Sorting by Transpositions Tzvika Hartman Weizmann Institute.
Advertisements

Sorting by reversals Bogdan Pasaniuc Dept. of Computer Science & Engineering.
Minimum Clique Partition Problem with Constrained Weight for Interval Graphs Jianping Li Department of Mathematics Yunnan University Jointed by M.X. Chen.
School of CSE, Georgia Tech
Greedy Algorithms CS 466 Saurabh Sinha. A greedy approach to the motif finding problem Given t sequences of length n each, to find a profile matrix of.
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Greedy Algorithms CS 6030 by Savitha Parur Venkitachalam.
Introduction to Algorithms
Merge Sort 4/15/2017 6:09 PM The Greedy Method The Greedy Method.
Gene Prediction: Similarity-Based Approaches (selected from Jones/Pevzner lecture notes)
Bioinformatics Chromosome rearrangements Chromosome and genome comparison versus gene comparison Permutations and breakpoint graphs Transforming Men into.
Greedy Algorithms And Genome Rearrangements
Genome Rearrangements CIS 667 April 13, Genome Rearrangements We have seen how differences in genes at the sequence level can be used to infer evolutionary.
3 -1 Chapter 3 The Greedy Method 3 -2 The greedy method Suppose that a problem can be solved by a sequence of decisions. The greedy method has that each.
Introduction to Bioinformatics Algorithms Greedy Algorithms And Genome Rearrangements.
Greedy Algorithms Reading Material: Chapter 8 (Except Section 8.5)
Discrete Structures & Algorithms EECE 320 : UBC : Spring 2009 Matei Ripeanu 1.
Of Mice and Men Learning from genome reversal findings Genome Rearrangements in Mammalian Evolution: Lessons From Human and Mouse Genomes and Transforming.
Genome Rearrangements. Basic Biology: DNA Genetic information is stored in deoxyribonucleic acid (DNA) molecules. A single DNA molecule is a sequence.
Genome Rearrangements CSCI : Computational Genomics Debra Goldberg
Genomic Rearrangements CS 374 – Algorithms in Biology Fall 2006 Nandhini N S.
Transforming Cabbage into Turnip: Polynomial Algorithm for Sorting Signed Permutations by Reversals Journal of the ACM, vol. 46, No. 1, Jan 1999, pp
Pancakes With A Problem! Great Theoretical Ideas In Computer Science Steven Rudich CS Spring 2004 Lecture 1 Jan 13, 2004 Carnegie Mellon University.
Genome Rearrangement SORTING BY REVERSALS Ankur Jain Hoda Mokhtar CS290I – SPRING 2003.
Genome Rearrangements, Synteny, and Comparative Mapping CSCI 4830: Algorithms for Molecular Biology Debra S. Goldberg.
1 Genome Rearrangements João Meidanis São Paulo, Brazil December, 2004.
Phylogenetic Tree Construction and Related Problems Bioinformatics.
7-1 Chapter 7 Genome Rearrangement. 7-2 Background In the late 1980‘s Jeffrey Palmer and colleagues discovered a remarkable and novel pattern of evolutionary.
Pancakes With A Problem Steven Rudich The chef at our place is sloppy, and when he prepares a stack of pancakes they come out all different sizes.
Pancakes With A Problem! Great Theoretical Ideas In Computer Science Vince Conitzer COMPSCI 102 Fall 2007 Lecture 1 August 27, 2007 Duke University.
Cooking for Computer Scientists. I understand that making pancakes can be a dangerous activity and that, by doing so, I am taking a risk that I.
Introduction to Bioinformatics Algorithms Clustering and Microarray Analysis.
© The McGraw-Hill Companies, Inc., Chapter 3 The Greedy Method.
CompSci 102 Spring 2012 Prof. Rodger January 11, 2012.
Pancakes With A Problem! Great Theoretical Ideas In Computer Science Anupam Gupta CS Fall 2O05 Lecture 1 Aug 29 th, 2OO5 Aug 29 th, 2OO5 Carnegie.
Pancakes With A Problem! Great Theoretical Ideas In Computer Science Anupam Gupta CS Fall 2006 Lecture 1 Aug 29 th, 2OO6 Aug 29 th, 2OO6 Carnegie.
Great Theoretical Ideas in Computer Science.
9/8/10 A. Smith; based on slides by E. Demaine, C. Leiserson, S. Raskhodnikova, K. Wayne Adam Smith Algorithm Design and Analysis L ECTURE 6 Greedy Algorithms.
Genome Rearrangements Unoriented Blocks. Quick Review Looking at evolutionary change through reversals Find the shortest possible series of reversals.
Greedy Algorithms And Genome Rearrangements An Introduction to Bioinformatics Algorithms (Jones and Pevzner)
Semester Project: Greedy Algorithms and Genome Rearrangements August/17/2012 Name: Xuanyu Hu Professor: Elise de Doncker.
Genome Rearrangements [1] Ch Types of Rearrangements Reversal Translocation
The Selection Problem. 2 Median and Order Statistics In this section, we will study algorithms for finding the i th smallest element in a set of n elements.
Greedy Algorithms And Genome Rearrangements
Chap. 7 Genome Rearrangements Introduction to Computational Molecular Biology Chap ~
Andrew’s Leap 2011 Pancakes With A Problem Steven Rudich.
Chap. 7 Genome Rearrangements Introduction to Computational Molecular Biology Chapter 7.1~7.2.4.
Greedy Algorithms CS 498 SS Saurabh Sinha. A greedy approach to the motif finding problem Given t sequences of length n each, to find a profile matrix.
Gene: A sequence of nucleotides coding for protein Gene Prediction Problem: Determine the beginning and end positions of genes in a genome Gene Prediction:
Lectures on Greedy Algorithms and Dynamic Programming
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
Pancakes With A Problem! Great Theoretical Ideas In Computer Science Steven Rudich CS Spring 2005 Lecture 3 Jan 18, 2005 Carnegie Mellon University.
1 Chapter 5-1 Greedy Algorithms Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Chapter 9 Sorting. The efficiency of data handling can often be increased if the data are sorted according to some criteria of order. The first step is.
Genome Rearrangement By Ghada Badr Part I.
Genome Rearrangements. Turnip vs Cabbage: Look and Taste Different Although cabbages and turnips share a recent common ancestor, they look and taste different.
Genome Rearrangements. Turnip vs Cabbage: Look and Taste Different Although cabbages and turnips share a recent common ancestor, they look and taste different.
Outline Today’s topic: greedy algorithms
1 Genome Rearrangements (Lecture for CS498-CXZ Algorithms in Bioinformatics) Dec. 6, 2005 ChengXiang Zhai Department of Computer Science University of.
Copyright © 2014 Curt Hill Algorithms From the Mathematical Perspective.
Lecture 4: Genome Rearrangements. End Sequence Profiling (ESP) C. Collins and S. Volik (UCSF Cancer Center) 1)Pieces of tumor genome: clones ( kb).
Lecture 2: Genome Rearrangements. Outline Cancer Sequencing Transforming Cabbage into Turnip Genome Rearrangements Sorting By Reversals Pancake Flipping.
Pancakes With A Problem!
CSE 5290: Algorithms for Bioinformatics Fall 2009
Prepared by Chen & Po-Chuan 2016/03/29
Greedy (Approximation) Algorithms and Genome Rearrangements
Pancakes With A Problem!
CSCI2950-C Lecture 4 Genome Rearrangements
Greedy Algorithms And Genome Rearrangements
Greedy Algorithms And Genome Rearrangements
Presentation transcript:

Introduction to Bioinformatics Algorithms Chapter 5 Greedy Algorithms and Genome Rearrangements By: Hasnaa Imad

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Outline What are GREEDY Algorithms? What are Genome Rearrangements? Cabbage vs. Turnip Human vs. mice What is the relation between them? Sorting by Reversals Approximation Algorithms

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info What are GREEDY Algorithms? Most algorithms are iterative procedures. GREEDY algorithms choose the “most attractive” alternative at each iteration. GAs often return suboptimal results but take very short time. Few GAs find optimal solutions.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Why are cabbages and turnips look and taste different even they share a recent common ancestor? What are Genome Rearrangements? Cabbage vs. Turnip

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info What are Genome Rearrangements? In 1980s Jeffrey Palmer studied evolution of plant organelles by comparing mitochondrial genomes of the cabbage and turnip Cabbage vs. Turnip

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info 99% similarity between genes These surprisingly identical gene sequences differed in gene order This study helped pave the way to analyzing genome rearrangements in molecular evolution What are Genome Rearrangements? Cabbage vs. Turnip

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Gene order comparison: What are Genome Rearrangements? Cabbage vs. Turnip

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Gene order comparison: What are Genome Rearrangements? Cabbage vs. Turnip

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Gene order comparison: What are Genome Rearrangements? Cabbage vs. Turnip

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Gene order comparison: What are Genome Rearrangements? Cabbage vs. Turnip

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Gene order comparison: Before After Evolution is manifested as the divergence in gene order What are Genome Rearrangements? Cabbage vs. Turnip

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info What are Genome Rearrangements? Human vs. mice Mice and humans share virtually the same set of genes Mice are well-established experimental model. Genes easily found in mice genome sequences Test experimentally the function of those genes.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Waardenburg ’ s Syndrome: Mouse Provides Insight into Human Genetic Disorder Waardenburg’s syndrome is characterized by pigmentary dysphasia Gene implicated in the disease was linked to human chromosome 2 but it was not clear where exactly it is located on chromosome 2

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Waardenburg ’ s syndrome and splotch mice A breed of mice (with splotch gene) had similar symptoms caused by the same type of gene as in humans Scientists succeeded in identifying location of gene responsible for disorder in mice Finding the gene in mice gives clues to where the same gene is located in humans

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info So… What is the relation between Greedy algorithms and Genome Rearrangements?

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Biologists are interested in evolutionary scenario.. Scenario involves finding the smallest number of reversals (flips). Not easy to find them. Relation is.. Mouse X Chromosome Order: Human X Chromosome Order:

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Two Solutions 1- Sorting by reversals 2- Approximation Algorithms

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Reversals and Gene Orders Gene order is represented by a permutation   1   i-1  i  i  j-1  j  j  n   1   i-1  j  j  i+1  i  j  n Reversal  ( i, j ) reverses (flips) the elements from i to j in  ,j)

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Reversals: Example  =  (3,5) 

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Reversals: Example  =  (3,5)  (5,6)

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Reversal Distance Problem Goal: Given two permutations, find the shortest series of reversals that transforms one into another Input: Permutations  and  Output: A series of reversals  1,…  t transforming  into  such that t is minimum t - reversal distance between  and  d( ,  ) - smallest possible value of t, given  and  Please Try Exercise 1

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Sorting By Reversals Problem Goal: Given a permutation, find a shortest series of reversals that transforms it into the identity permutation (1 2 … n ) Input: Permutation  Output: A series of reversals  1, …  t transforming  into the identity permutation such that t is minimum

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Sorting By Reversals: Example t =d(  ) - reversal distance of  Example :  = So d(  ) = 3

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Signed Permutations Up to this point, all permutations to sort were unsigned But genes have directions… so we should consider signed permutations 5’5’ 3’3’  =

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Sorting by reversals: 5 steps

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Sorting by reversals: 4 steps

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Sorting by reversals: 4 steps What is the reversal distance for this permutation? Can it be sorted in 3 steps?

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Pancake Flipping Problem The chef is sloppy; he prepares an unordered stack of pancakes of different sizes The waiter wants to rearrange them (so that the smallest winds up on top, and so on, down to the largest at the bottom) He does it by flipping over several from the top, repeating this as many times as necessary Christos Papadimitrou and Bill Gates flip pancakes

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Pancake Flipping Problem: Greedy Algorithm Greedy approach: 2 prefix reversals at most to place a pancake in its right position, 2n – 2 steps total at most William Gates and Christos Papadimitriou showed in the mid-1970s that this problem can be solved by at most 5/3 (n + 1) prefix reversals This Problem remains unsolved.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Pancake Flipping Problem: Formulation Goal: Given a stack of n pancakes, what is the minimum number of flips to rearrange them into perfect stack? Input: Permutation  Output: A series of prefix reversals  1, …  t transforming  into the identity permutation such that t is minimum

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Sorting By Reversals: A Greedy Algorithm If sorting permutation  = , the first three elements are already in order so it does not make any sense to break them. The length of the already sorted prefix of  is denoted prefix(  ) prefix(  ) = 3 This results in an idea for a greedy algorithm: increase prefix(  ) at every step

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Doing so,  can be sorted Number of steps to sort permutation of length n is at most (n – 1) Greedy Algorithm: An Example

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Greedy Algorithm: Pseudocode SimpleReversalSort(  ) 1 for i  1 to n – 1 2 j  position of element i in  (i.e.,  j = i) 3 if j ≠i 4    *  (i, j) 5 output  6 if  is the identity permutation 7 return

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Analyzing SimpleReversalSort SimpleReversalSort does not guarantee the smallest number of reversals and takes five steps on  = : Step 1: Step 2: Step 3: Step 4: Step 5:

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info But it can be sorted in two steps:  = Step 1: Step 2: So, SimpleReversalSort(  ) is not optimal Optimal algorithms are unknown for many problems; approximation algorithms are used Analyzing SimpleReversalSort (cont ’ d)

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Approximation Algorithms These algorithms find approximate solutions rather than optimal solutions The approximation ratio of an algorithm A on input  is: A(  ) / OPT(  ) where A(  ) -solution produced by algorithm A OPT(  ) - optimal solution of the problem

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Approximation Ratio/Performance Guarantee Approximation ratio (performance guarantee) of algorithm A: max approximation ratio of all inputs of size n For algorithm A that minimizes objective function (minimization algorithm): max |  | = n A(  ) / OPT(  )

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Approximation Ratio/Performance Guarantee Approximation ratio (performance guarantee) of algorithm A: max approximation ratio of all inputs of size n For algorithm A that minimizes objective function (minimization algorithm): max |  | = n A(  ) / OPT(  ) ex: 6/8 For maximization algorithm: min |  | = n A(  ) / OPT(  ) ex: 10/8

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info  =    2  3 …  n-1  n A pair of elements  i and  i + 1 are adjacent if  i+1 =  i + 1 For example:  = (3, 4) or (7, 8) and (6,5) are adjacent pairs Adjacencies and Breakpoints

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info There is a breakpoint between any adjacent element that are non-consecutive:  = Pairs (1,9), (9,3), (4,7), (8,2) and (2,5) form breakpoints of permutation  b(  ) - # breakpoints in permutation   Breakpoints: An Example

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Adjacency & Breakpoints An adjacency - a pair of adjacent elements that are consecutive A breakpoint - a pair of adjacent elements that are not consecutive π = adjacencies breakpoints Extend π with π 0 = 0 and π 7 = 7

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info We put two elements  0 =0 and  n + 1 =n+1 at the ends of  Example: Extending with 0 and 10 Note: A new breakpoint was created after extending Extending Permutations  =  = Please Try Exercise 2: a,b

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info  Each reversal eliminates at most 2 breakpoints.  = b(  ) = b(  ) = b(  ) = b(  ) = 0 Reversal Distance and Breakpoints

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info  Each reversal eliminates at most 2 breakpoints.  This implies: reversal distance ≥ #breakpoints / 2  = b(  ) = b(  ) = b(  ) = b(  ) = 0 Reversal Distance and Breakpoints

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Sorting By Reversals: A Better Greedy Algorithm BreakPointReversalSort(  ) 1 while b(  ) > 0 2 Among all possible reversals, choose reversal  minimizing b(   ) 3     (i, j) 4 output  5 return

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Sorting By Reversals: A Better Greedy Algorithm BreakPointReversalSort(  ) 1 while b(  ) > 0 2 Among all possible reversals, choose reversal  minimizing b(   ) 3     (i, j) 4 output  5 return Problem: this algorithm may work forever

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Strips Strip: an interval between two consecutive breakpoints in a permutation Decreasing strip: strip of elements in decreasing order (e.g. 6 5 and 3 2 ). Increasing strip: strip of elements in increasing order (e.g. 7 8) A single-element strip can be declared either increasing or decreasing. We will choose to declare them as decreasing with exception of the strips with 0 and n+1 Please Try Exercise 2: c

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Reducing the Number of Breakpoints Theorem 1: If permutation  contains at least one decreasing strip, then there exists a reversal  which decreases the number of breakpoints (i.e. b(   ) < b(  ) )

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Things To Consider For  = b(  ) = 5 Choose decreasing strip with the smallest element k in  ( k = 2 in this case)

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Things To Consider (cont’d) For  = b(  ) = 5 Choose decreasing strip with the smallest element k in  ( k = 2 in this case)

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Things To Consider (cont’d) For  = b(  ) = 5 Choose decreasing strip with the smallest element k in  ( k = 2 in this case) Find k – 1 in the permutation

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Things To Consider (cont’d) For  = b(  ) = 5 Choose decreasing strip with the smallest element k in  ( k = 2 in this case) Find k – 1 in the permutation Reverse the segment between k and k-1: b(  ) = b(  ) = 4

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Reducing the Number of Breakpoints Again If there is no decreasing strip, there may be no reversal  that reduces the number of breakpoints (i.e. b(   ) ≥ b(  ) for any reversal  ). By reversing an increasing strip ( # of breakpoints stay unchanged ), we will create a decreasing strip at the next step. Then the number of breakpoints will be reduced in the next step (theorem 1).

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Things To Consider (cont’d) There are no decreasing strips in , for:  = b(  ) = 3   (6,7) = b(  ) = 3  (6,7) does not change the # of breakpoints  (6,7) creates a decreasing strip thus guaranteeing that the next step will decrease the # of breakpoints.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info ImprovedBreakpointReversalSort ImprovedBreakpointReversalSort(  ) 1 while b(  ) > 0 2 if  has a decreasing strip 3 Among all possible reversals, choose reversal  that minimizes b(   ) 4 else 5 Choose a reversal  that flips an increasing strip in  6     7 output  8 return

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info ImprovedBreakPointReversalSort is an approximation algorithm with a performance guarantee of at most 4 It eliminates at least one breakpoint in every two steps; at most 2b(  ) steps Approximation ratio: 2b(  ) / d(  ) Optimal algorithm eliminates at most 2 breakpoints in every step: d(  )  b(  ) / 2 Performance guarantee: ( 2b(  ) / d(  ) )  [ 2b(  ) / (b(  ) / 2) ] = 4 ImprovedBreakpointReversalSort: Performance Guarantee

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Please Note I DID NOT cover Section 5.5

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info References An Introduction to Bioinformatics Algorithms - Neil C.Jones and Pavel A.Pevzner Ch5http://bix.ucsd.edu/bioalgorithms/slides.php# Ch5