MA-351 Homework 2
Due at 4:59pm in my mailbox in HA 245, Thursday October 19, 2007
Calculations necessary for these problems may be done either by
hand or with Maple.
Solutions may be submitted in person in class,
or you may email an ASCII text,
Maple Worksheet (.mws),
html, or postscipt/pdf-formatted document to
me.
Note my office hours on my schedule.
- Consider
Stirling
's formula for approximating n!:
|
|
n |
|
|
( |
|
)n * (2*pi)1/2 * n1/2 |
|
|
e |
|
-
Using the binary operators + (plus), - (minus),
* (times), / (divides),
and ^ (exponentiation), all of which have exactly 2 operands, draw the expression
tree corresponding to this expression.
-
Convert the expression tree into a minimally parenthesized linear infix
expression string, using precedence and left-to-right rules whenever possible.
-
Write the prefix and postfix expression string equivalent to the expression tree.
-
DMM §3.3, Problem 8, page 107. Note: in order to
have a unique DFS tree, assume that the order of
the neighboring vertices of each vertex is alphabetical
and that you start at vertex labeled a.