CS6515 - EXAM 1 COMPLETE QUESTIONS AND ANSWERS
Question 1: What is the running time for Longest
Increasing Subsequence (LIS)
CORRECT ANSWER: O(n^2)
Question 2: What is the recurrence for Longest Increasing
Subsequence (LIS)?
CORRECT ANSWER: L(i) = 1 + max{ L(j) | xj < xi}
This reads as the answer to index I is 1 + the maximum
over all j's between 1 and i where xj is less than xi
Question 3: What is the recurrence for Longest Common
Subsequence (LCS)
CORRECT ANSWER: L(i,j) = 1 + L(i-1, j-1) if xi = yj
L(i,j) = max(L(i-1,j),L(i,j-1)) otherwise
Question 4: What is the running time for Longest
Common Subsequence (LCS)
CORRECT ANSWER: O(n^2)
CS6515 Exam,CS6515 Test,CS6515 Flashcard,CS6515 quiz,CS6515 Practice,CS6515 Practice test,CS6515 Practice flashcard,CS6515 Practice exam,CS6515 Study guide,CS6515 Practice questions,CS6515 Questions,CS6515 Practice questions and answers,CS6515 Questions and answers,CS6515 pdf,CS6515 quizlet,CS6515 reddit,CS6515 Answer sheet,CS6515 Answer key,CS6515 Pdf free,CS6515 Exam help,CS6515 Cheat sheet,CS6515 quiz bank,CS6515 Questions bank,CS6515 Practice Guide,CS6515 Guide,CS6515 Testbank,CS6515 Practice Answers,CS6515 Answers,CS6515 Exam prep,CS6515 Prep,CS6515 Pdf download,CS6515 Flashcards,CS6515 Real questions,CS6515 Actual questions,CS6515 Real Questions and answers,CS6515 Actual Questions and answers,CS6515 Exam review,CS6515 Review,CS6515 Exam questions,CS6515 Exam questions and answers,CS6515 Practice test pdf,CS6515 Practice test quizlet,CS6515 Practice test Reddit,CS6515 Practice test quizlet multiple choice,CS6515 Exam study guide,CS6515 Practice test free,CS6515 Test questions,CS6515 Exam study guide,CS6515 Practice exam free,CS6515 Practice tests free,CS6515 Exam practice test,CS6515 Exam test questions,CS6515 Exam questions and answers,CS6515 Exam practice test