基于C++的队列结构应用.pdfVIP

  1. 1、本文档被系统程序自动判定探测到侵权嫌疑,本站暂时做下架处理。
  2. 2、如果您确认为侵权,可联系本站左侧在线QQ客服请求删除。我们会保证在24小时内做出处理,应急电话:400-050-0827。
  3. 3、此文档由网友上传,因疑似侵权的原因,本站不提供该文档下载,只提供部分内容试读。如果您是出版社/作者,看到后可认领文档,您也可以联系本站进行批量认领。
查看更多
基于C的队列结构应用

Chapter 6 Queues 1 Outline • Concept • Representation • Applications 2 Concept • Linear list. • One end is called front. • Other end is called rear. • Additions are done at the rear only. • Removals are made from the front only. 3 Bus Stop Queue Bus Stop front rear rear rear rear rear 4 Bus Stop Queue Bus Stop front rear rear rear 5 Bus Stop Queue Bus Stop front rear rear 6 Bus Stop Queue Bus Stop front rear 7 The Abstract Data Type Queue AbstractDataType Queue { instances ordered list of elements; one end is called thefront ; the other is the rear; operations Create(): create an empty queue; IsEmpty() : return true if queue is empty, return false otherwise; IsFull() : return true if queue is full, return false otherwise; First() : return first element of queue; Last() : return last element of queue; Add(x): add element x to the queue; Delete(x) : delete first element from queue and put it in x ; } 8 Outline •

文档评论(0)

yan698698 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档