1 / 23
文档名称:

计算机导论ch11.ppt

格式:ppt   大小:488KB   页数:23页
下载后只包含 1 个 PPT 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

计算机导论ch11.ppt

上传人:xinsheng2008 2016/9/6 文件大小:488 KB

下载得到文件列表

计算机导论ch11.ppt

相关文档

文档介绍

文档介绍:Chapter 11 Data Structures Understand Understand arrays arrays and their usefulness. and their usefulness. Understand Understand records records and the difference between an array and and the difference between an array and a record. a record. Understand the concept of a Understand the concept of a linked list linked list and the difference and the difference between an array and a linked list. between an array and a linked list. After reading this chapter, the reader should After reading this chapter, the reader should be able to: be able to: O O BJECTIVES BJECTIVES Understand when to use an array and when to use a linked-list. Understand when to use an array and when to use a linked-list. ?? Data Structure Data Structure uses a collection of ralated uses a collection of ralated variables that can be accessed individually or as variables that can be accessed individually or as a whole. a whole. Array Array Record Record Linked List Linked List Linear List Linear List Stack Stack Queue Queue Tree Tree Graph Graph ARRAYS ARRAYS ARRAYS Twenty individual variables Processing individual variables Problem: using 20 varialbes. Problem: using 20 varialbes. Arrays with subscripts and indexes Resolution: using array. Resolution: using array. A A array array is fixed-size,sequenced collection of elements of the is fixed-size,sequenced collection of elements of the same data type same data type . . Figure 11-4 Processing an array Figure 11-5 Frequency array Figure 11-6 Histogram Figure 11-7- Part I Two-dimensional array