Why do we need Deque data structures in the real world? -


can give me example of situation deque data structure needed?

note - please don't explain deque is?

when modeling kind of real-world waiting line: entities (bits, people, cars, words, particles, whatever) arrive frequency end of line , serviced @ different frequency @ beginning of line. while waiting entities may decide leave line.... etc. point need "fast access" insert/deletes @ both ends of line, hence deque.


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -