Skip to main content
. 2021 Jun 21;17(6):e1009078. doi: 10.1371/journal.pcbi.1009078

Fig 4. Visualization of subproblems divisions.

Fig 4

The data structures needed for each subproblem: DI, DV, DP, EI, EV, EP, EL and EB after the processing of all the 12 points. Points are numbered in the order of processing (Cartesian sorted order). 12 points are assigned into three column subproblems (A0c,B0c), (A1c,B1c), (A2c,B2c) and one row subproblem (A0r,B0r), where starting points are assigned to A-part and endpoints are assigned to B-part. Leaf subproblems are not shown for simplicity. Start and End are used for the traceback of the optimal chain. Start stores sub—the index of the subproblem which yields the optimal chaining score up to a starting point and indφ(EI, fi), where fi is the diagonal of the starting point. End stores the optimal value for each endpoint. For this toy example, the match bonus of every fragment is 2 and the gap cost function of appending fragment αj to fragment αi is gap(αi,αj)=0.25*log(|(yie-xie)-(yjs-xjs)+1|)+1, where (xie,yie) is the endpoint of αi and (xjs,yjs) is the starting point of αj. End indicates that there are three optimal chains achieving the optimal value: 2.8. By tracing back, chain-1: point-1, point-2, point-3, point-6, chain-2: point-1, point-2, point-5, point-9 and chain-3: point-7, point-10, point-11, point-12.