官术网_书友最值得收藏!

Types of queue

Before we begin understanding queues, let's quickly take a look at the types of queues that we may want to use in our applications:

  • Simple queue: In a simple FIFO queue, the order is retained and data leaves in the same order in which it comes in
  • Priority queue: A queue in which the elements are given a predefined priority
  • Circular queue: Similar to a simple queue, except that the back of the queue is followed by the front of the queue
  • Double ended queue (Dequeue): Similar to the simple queue but can add or remove elements from either the front or the back of the queue
主站蜘蛛池模板: 博乐市| 玛曲县| 内黄县| 定日县| 天等县| 游戏| 海宁市| 蓬溪县| 尉氏县| 延长县| 商洛市| 布拖县| 南澳县| 洛阳市| 达拉特旗| 启东市| 黄骅市| 周至县| 德庆县| 措美县| 广东省| 新郑市| 扶绥县| 五河县| 松滋市| 新干县| 西林县| 云浮市| 红河县| 湖北省| 通州市| 泾阳县| 扎囊县| 永善县| 哈巴河县| 宜春市| 正阳县| 天水市| 和平区| 上栗县| 中西区|