hw2 - CS 373 Homework 2 (due 2/18/99) Spring 1999 CS 373:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 373 Homework 2 (due 2/18/99) Spring 1999 CS 373: Combinatorial Algorithms, Spring 1999 http://www-courses.cs.uiuc.edu/~cs373 Homework 2 (due Thu. Feb. 18, 1999 by noon) Name: Net ID: Alias: Everyone must do the problems marked I . Problems marked ± are for 1-unit grad students and others who want extra credit. (There’s no such thing as “partial extra credit”!) Unmarked problems are extra practice problems for your benefit, which will not be graded. Think of them as potential exam questions. Hard problems are marked with a star; the bigger the star, the harder the problem. Note: When a question asks you to “give/describe/present an algorithm”, you need to do four things to receive full credit: 1. Design the most efficient algorithm possible. Significant partial credit will be given for less efficient algorithms, as long as they are still correct, well-presented, and correctly analyzed. 2. Describe your algorithm succinctly, using structured English/pseudocode. We don’t want full- fledged compilable source code, but plain English exposition is usually not enough. Follow the examples given in the textbooks, lectures, homeworks, and handouts. 3. Justify the correctness of your algorithm, including termination if that is not obvious. 4. Analyze the time and space complexity of your algorithm. Undergrad/.75U Grad/1U Grad Problems I 1. Faster Longest Increasing Subsequence (LIS) Give an O ( n log n ) algorithm to find the longest increasing subsequence of a sequence of numbers. Hint: In the dynamic programming solution, you don’t really have to look back at all previous items. I
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/15/2009 for the course 942 cs taught by Professor A during the Spring '09 term at University of Illinois at Urbana–Champaign.

Page1 / 3

hw2 - CS 373 Homework 2 (due 2/18/99) Spring 1999 CS 373:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online