CSE373 Autumn 2007
CSE logo University of Washington Computer Science & Engineering
 CSE373 Autumn 2007

Assignments
 Homework 1
 Homework 2
 Homework 3 part 1
 Homework 3 part 2
 Homework 4
 Homework 5
 Homework 6
Exams
 Final Exam
 Midterm 1
 Midterm 2
Administrative
 Home
 Mailing List
 Message Board
 Annoucement Archive
 Anonymous Feedback
 Mail Instructor & TAs
Lectures
 Calendar & Slides
Handouts
 Course Info & Syllabus
Policies
 General Guidelines
 Grading Policies
 Programming Guidelines
 Writen HW Guidelines
Computing
 JDK 1.6
 Eclipse
 Programming Lab Info
   

CSE373 Homework 2

Due at the beginning of class, Monday, Oct 15, 2007
No late assignments will be accepted.

Here are some questions on complexity and algorithm analysis. You only need to turn in written solutions.

Problems

  1. Weiss, 2.1.
  2. Weiss, question 2.7. For parts (b) and (c), please turn in a printout of your Java code, (no electronic submission required). Hints: you will want to use assorted large values of n to get meaningful experimental results. You may find the library function System.nanoTime() to be useful in timing code fragments.
  3. Weiss question 2.8(b).
  4. Weiss question 2.11.
  5. Weiss question 2.12.
  6. Show that the function 3n + 7n2 + 3 is O(n2). (You will need to use the definition of O(f(n)) to do this.)
  7. Weiss question 2.27.