Problem 1
Describe the two basic operations on a stack.
Problem 4
Suppose that stack is an object of type stackType
Problem 5
Consider the following statements:
stackType
Problem 6
Consider the following statements:
stackType
Problem 7
Evaluate the following postfix expressions: a. \(1753-* 6+=\) b. \(142 * 8+6 / 5+=\) c. \(15163102++-+8 /=\) d. \(1812--9+255 / \star=\)
Problem 8
Convert the following infix expressions to postfix notations: a. x * (y + z) - ( w + t) b. (x + y) / (z - w) * t c. ((x - y) + (z - w) / t) * u d. x - y / (z + w) * t / u + (v - s)
Problem 9
Write the equivalent infix expressions for the following postfix expressions: a. x y + z * w - b. x y * z / w + c. x y z + * w -
Problem 13
Suppose that stack is an object of type linkedStackType
Problem 16
Consider the following statements:
queueType
Problem 17
Consider the following statements:
linkedStackType