Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Assignment 1 Questions - Design and Analysis of Algorithms | COMP 157, Assignments of Algorithms and Programming

Material Type: Assignment; Class: Design/Analysis of Algorithms; Subject: Computer Science; University: University of the Pacific; Term: Fall 2007;

Typology: Assignments

Pre 2010

Uploaded on 08/18/2009

koofers-user-grt
koofers-user-grt 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
COMP157Fall07Assignment1
HomeworkAssignment1:dueFriday,September7.
Exercises1.1,page8:
Exercise4.Notethatyouralgorithmshouldfindthefloorof,notthevalueof.
Exercise5.Forpart(a),showthevaluesofmandnateachstepofthealgorithm.
Exercises1.2,page9:
Exercise5.
Exercise9.
Exercises1.3,pages2325:
Exercise1.
Exercise3.
Exercise4orExercise5.
Exercises1.4,pages3839:
Exercise3.
Exercise9.
Exercise10.
Details:
Submityouranswersviablackboard.
Allsubmissionsmustbetypeset.Nohandwrittenworkwillbeaccepted.
WordorPDFformatsarepreferred.Ifsubmittingdocumentsinanotherformat,includea
separatetextnoteindicatingtoolsneededtoreadthedocument.

Partial preview of the text

Download Assignment 1 Questions - Design and Analysis of Algorithms | COMP 157 and more Assignments Algorithms and Programming in PDF only on Docsity!

COMP157 Fall07 Assignment 1

Homework Assignment 1 : due Friday, September 7. Exercises 1.1, page 8:

  • Exercise 4. Note that your algorithm should find the floor of , not the value of.
  • Exercise 5. For part (a), show the values of m and n at each step of the algorithm. Exercises 1.2, page 9:
  • Exercise 5.
  • Exercise 9. Exercises 1.3, pages 23 ‐25:
  • Exercise 1.
  • Exercise 3.
  • Exercise 4 or Exercise 5. Exercises 1.4, pages 38 ‐39:
  • Exercise 3.
  • Exercise 9.
  • Exercise 10. Details :
  • Submit your answers via blackboard.
  • All submissions must be typeset. No handwritten work will be accepted.
  • Word or PDF formats are preferred. If submitting documents in another format, include a separate text note indicating tools needed to read the document.