Phase 1 Language Basics + Advanced _1-3-Java language senior _04- set of data structures _04 _ _2_ queue data structure


FIFO

queue
queues: queue, referred to as the team, it is the same as a stack, the linear form is also a restricted operation, the restriction that only permits insertion of the end of the table,
and delete the table at the other end.
Briefly, using the set of structure elements have access to the following features:
FIFO (i.e., into the memory element to the front element after it has successively taken out, in order to remove the element). For example, a small train over the mountain
cave, go in the front, the rear went after; first out front, after the rear out.
The ingress queue, half and an outlet side. For example, the left side of the figure is an inlet, an outlet for the right side.










 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/11232795.html