Solutions Manual > Georgia Institute Of TechnologyCS 6515hw2_solution


CS 6515HW 2 SolutionsInstructor: Gerandy BritoProblem 1: [DPV] 6.8: LCS.(a)P(i; j) = length of the LCStr for x1x2:::xi and y1y2:::yjending at a = xi = yj.For those i and j such that xi 6= yj, we set P(i; j) = 0.(b) Recurrence.P(i; j) = (1 + 0 P(i - 1; j - 1) if if xxii =6= yyjjThe base cases are simple, P(0; j) = P(i; 0) = 0 for any i; j.(c) Pseudocode:• FOR i = 0 ! n: P(i; 0) = 0.• FOR j = 0 ...[Show More]

Preview 1 out of 4 pages
Purchase this document to unlock the blurred part and the rest of the document

Unlock Now

Reviews( 0 )

Unlock this Document

Purchase the document to unlock it.

$10.00

Unlock Now

21
0

Category:
Number of pages: 4
Language: English
Last updated: 2 years ago
Downloads: 0
Views: 21

Can't Find what you want?

PLACE CUSTOM WRITING ORDER