Saint Louis University |
Computer Science 220
|
Dept. of Math & Computer Science |
Topic: Asymptotics and Singly Linked Lists
Related Reading: Ch. 3 and Ch. 4.4
Due:
9:30am Tuesday, 28 September 2004
Please make sure you adhere to the policies on academic integrity.
Reinforcement Exercise R-3.2 of the text.
Please make sure that you provide the smallest such
n0.
Also, please note that this problem does NOT involve Big-Oh notation, rather it involves the raw growth rates, similar to those given in Table 3.2. The authors explain on page 103 that when they write the expression log n, they mean by default log2 n, the binary logarithm. This is the standard assumption throughout computer science for several reasons, most notably that all numbers are represented internally in binary (as opposed to decimal).
Reinforcement Exercise R-3.3 of the text.
See note for previous problem.
Reinforcement Exercise R-3.3 of the text.
Solve Reinforcement Exercises R-3.20, R-3.21, R-3.22, R-3.23, and R-3.24
of the text. Please strive to give answers in simplest
terms, as discussed at the top of page 118.
Reinforcement Exercise R-4.12 of the text.
Please give your answer as a C++ method which takes the
head of the linked list as a parameter.
(Note: the ``penultimate'' node is defined as the second-to-last node of the list).
Creativity Exercise C-4.16 of the text.
(Hint available through
Hint Server
on textbook's website).