Quote (carteblanche @ Oct 6 2012 03:20am)
dont let the terminology confuse you. they're just data structures where implementations can vary. Queues and stacks, for example, can be made via arrays or linked lists.
picking the right data structure is crucial for algorithms.
ahh. So the stuff we are learning right now (queues, stacks, soon to be trees templates etc) all come in handy for different things? And static VS dynamic as well.
Another question: Is a dynamic implementation of a list or stack etc ever WORSE than a static?
Aside from ease of use? (I guess?) I thought dynamic stacks/queues seemed pretty smart.
Though I am guessing that the memory allocated by them is not in a neat little bunch, contrasted with static.
This post was edited by Eep on Oct 6 2012 02:24am