Stacks and Queues
Our study of data types in computation so far has involved:
-
primitive types, such as
char,int, anddouble, -
compound types as provided by
structs in C, and - linear structures such as arrays and linked lists.
- We can ask questions about what kinds of problems can be solved (efficiently) with a restricted set of operations, which are often representative of actual physical substrates.
- We can optimize our implementations to cater to the specific set of operations.
