Docsity

CS 473UG Homework Problem Set 5 - Spring 2006, Assignments of Algorithms and Programming

Toggle sidebar
bg1
Homework Problem Set 5
CS 473UG – Spring 2006
Assigned On: February 28, 2006
Due On: March 7, 2006
Instructions: Solve these problems in groups of size at most 3. Solution to each problem must be on a
separate sheet; this assists us greatly in grading the problems.
Recommended Reading: Chapter 6 of the textbook and lecture notes on the web.
Solve problems 6.15, and 6.24 from the class textbook. Read problem 6.19 from the textbook and solve
the following parts:
(a) Present an O(n2) algorithm to solve problem 6.19
(b) If the length of xand yis bounded by a constant k, give an algorithm that runs in O(n) time to
solve problem 6.19
1

Partial preview of the text

Download CS 473UG Homework Problem Set 5 - Spring 2006 and more Assignments Algorithms and Programming in PDF only on Docsity!

Homework Problem Set 5

CS 473UG – Spring 2006

Assigned On: February 28, 2006 Due On: March 7, 2006

Instructions: Solve these problems in groups of size at most 3. Solution to each problem must be on a separate sheet; this assists us greatly in grading the problems.

Recommended Reading: Chapter 6 of the textbook and lecture notes on the web.

Solve problems 6.15, and 6.24 from the class textbook. Read problem 6.19 from the textbook and solve the following parts:

(a) Present an O(n^2 ) algorithm to solve problem 6.

(b) If the length of x and y is bounded by a constant k, give an algorithm that runs in O(n) time to solve problem 6.