enqueue means to insert data to the queue, generally at the "back" of the queue. This can sometimes be called "push".
dequeue means to delete the data from the queue, generally from the "front" of the queue. This can sometimes be called "pop".
Note that "push" and "pop" can be confused with the stack operations "push" and "pop", so "enqueue" and "dequeue" are explicit and less ambiguous.
Data Structures through c++
Queues
dequeue means to delete the data from the queue, generally from the "front" of the queue. This can sometimes be called "pop".
Note that "push" and "pop" can be confused with the stack operations "push" and "pop", so "enqueue" and "dequeue" are explicit and less ambiguous.
Data Structures through c++
Queues
No comments:
Post a Comment