f06-hwex - CS 473U: Undergraduate Algorithms, Fall 2006...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: CS 473U: Undergraduate Algorithms, Fall 2006 Homework 0 Due Friday, September 1, 2006 at noon in 3229 Siebel Center Name: Net ID: Alias: I understand the Homework Instructions and FAQ. Neatly print your full name, your NetID, and an alias of your choice in the boxes above, and submit this page with your solutions. We will list homework and exam grades on the course web site by alias. For privacy reasons, your alias should not resemble your name, your NetID, your university ID number, or (God forbid) your Social Security number. Please use the same alias for every homework and exam. Federal law forbids us from publishing your grades, even anonymously, without your explicit permission. By providing an alias, you grant us permission to list your grades on the course web site; if you do not provide an alias, your grades will not be listed. Please carefully read the Homework Instructions and FAQ on the course web page, and then check the box above. This page describes what we expect in your homework solutionsstart each numbered problem on a new sheet of paper, write your name and NetID on every page, dont turn in source code, analyze and prove everything, use good English and good logic, and so onas well as policies on grading standards, regrading, and plagiarism. See especially the policies regarding the magic phrases I dont know and and so on. If you have any questions, post them to the course newsgroup or ask in lecture. This homework tests your familiarity with prerequisite materialbasic data structures, big- Oh notation, recurrences, discrete probability, and most importantly, inductionto help you identify gaps in your knowledge. You are responsible for filling those gaps on your own. Each numbered problem is worth 10 points; not all subproblems have equal weight. # 1 2 3 4 5 6 * Total Score Grader CS 473U Homework 0 (due September 1, 2006) Fall 2006 Please put your answers to problems 1 and 2 on the same page. 1. Sort the functions listed below from asymptotically smallest to asymptotically largest, indi- cating ties if there are any. Do not turn in proofs , but you should probably do them anyway, just for practice. To simplify your answers, write f ( n ) g ( n ) to mean f ( n ) = o ( g ( n )) , and write f ( n ) g ( n ) to mean f ( n ) = ( g ( n )) . For example, the functions n 2 , n, ( n 2 ) , n 3 could be sorted either as n n 2 ( n 2 ) n 3 or as n ( n 2 ) n 2 n 3 . lg n ln n n n n lg n n 2 2 n n 1 /n n 1+1 / lg n lg 1000 n 2 lg n ( 2) lg n lg 2 n n 2 (1 + 1 n ) n n 1 / 1000 H n H n 2 H n H 2 n F n F n/ 2 lg F n F lg n In case youve forgotten: lg n = log 2 n 6 = ln n = log e n lg 3 n = (lg n ) 3 6 = lg lg lg n ....
View Full Document

Page1 / 38

f06-hwex - CS 473U: Undergraduate Algorithms, Fall 2006...

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

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