Docsity

Assignment 1 - Design and Analysis Computer Algorithms, Spring 2006 | CMSC 451, Assignments of Computer Science

Toggle sidebar
bg1
CMSC 451: Homework 1, Spring 2006
Due at the beginning of class on February 9, 2006.
If you cannot come up with algorithms that run in the required time,
then provide (correct) slower algorithms for partial credit. Write your an-
swers using pseudo-code in the same style as the textbook. These make the
algorithm description precise, and easy to read (as opposed to code in C or
some other language).
The problems should be done by yourself: without any collaboration, or
help from sources such as the Web.
1. Problem 2, page 107 of the textbook. (5 points)
2. Problem 4, pages 107 and 108 of the textbook. (5 points)
3. Problem 6, page 108 of the textbook. (5 points)
4. Problem 9, page 110 of the textbook. (10 points)
5. Problem 10, pages 110 and 111 of the textbook. (10 points)
1

Partial preview of the text

Download Assignment 1 - Design and Analysis Computer Algorithms, Spring 2006 | CMSC 451 and more Assignments Computer Science in PDF only on Docsity!

CMSC 451: Homework 1, Spring 2006

Due at the beginning of class on February 9, 2006. If you cannot come up with algorithms that run in the required time, then provide (correct) slower algorithms for partial credit. Write your an- swers using pseudo-code in the same style as the textbook. These make the algorithm description precise, and easy to read (as opposed to code in C or some other language). The problems should be done by yourself: without any collaboration, or help from sources such as the Web.

  1. Problem 2, page 107 of the textbook. (5 points)
  2. Problem 4, pages 107 and 108 of the textbook. (5 points)
  3. Problem 6, page 108 of the textbook. (5 points)
  4. Problem 9, page 110 of the textbook. (10 points)
  5. Problem 10, pages 110 and 111 of the textbook. (10 points)