(1.3.1)--ch1-03数据结构的基本概念-3.pdf

上传人:刘静 文档编号:57972394 上传时间:2022-11-06 格式:PDF 页数:13 大小:384.90KB
返回 下载 相关 举报
(1.3.1)--ch1-03数据结构的基本概念-3.pdf_第1页
第1页 / 共13页
(1.3.1)--ch1-03数据结构的基本概念-3.pdf_第2页
第2页 / 共13页
点击查看更多>>
资源描述

《(1.3.1)--ch1-03数据结构的基本概念-3.pdf》由会员分享,可在线阅读,更多相关《(1.3.1)--ch1-03数据结构的基本概念-3.pdf(13页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、 Data Structures and AlgorithmsBasic Concepts in Data Structures-12Chapter 1 Introduction1.1 Basic concepts of data structureRelated nouns:DataData Data ElementData Element Data ObjectData Object Data StructureData Structure Data Type Data Type Data abstraction and abstractData abstraction and abstr

2、act data types data typesData Structures and AlgorithmsData Structures and Algorithms3Related nouns:Data:Data are numeric values,characters,and a collection of various symbols that can be entered into the machine and processed.Data includes integer、real、Boolean、image、character、sound,etc.,which can b

3、e input to the computer.For example:for C source programC compilerC compilerSource Source codecode(.c.c)Target Target programprogram(.obj.obj)Executable Executable programprogram(.exe.exe)C linkerC linkerData Structures and AlgorithmsData Structures and AlgorithmsChapter 1 Introduction1.1 Basic conc

4、epts of data structure4Related nouns:Data Element:It is the basic unit that composes the data,and the individual of the data collection,which is usually considered and processed as a whole in the computer.e.g.nullnullcomputercomputercomputer science0704computer science0704womanwoman Li ShaLi Sha1313

5、PositionPosition DepartmentDepartment P ProfessionrofessionSexSex NameName S Student IDtudent ID Data Data element element数据项数据项A data element can be made up of one or more data items,which is the smallest unit with independent meaning.recordingData Structures and AlgorithmsData Structures and Algor

6、ithmsChapter 1 Introduction1.1 Basic concepts of data structure5 据据 结结 构构Related nouns:Data Object:A data object is a collection of data elements of the same nature,and is a subset of data.e.g.Integer set:N=0,1,2,.infinite setCharacter set:C=A,B,Z limited setData Structures and AlgorithmsData Struct

7、ures and AlgorithmsChapter 1 Introduction1.1 Basic concepts of data structure6Data Structure:e.g.Table Structure It refers to a collection of data elements that have one or more specific relationships with each other.It is a collection of data elements with structure.It refers to the relationship be

8、tween data elements,that is,the organization of data.1313Data Structures and AlgorithmsData Structures and AlgorithmsChapter 1 Introduction1.1 Basic concepts of data structureS Student IDtudent ID NameName SexSex P ProfessionrofessionDepartmentDepartment PositionPosition nullnullcomputercomputercomp

9、uter science0704computer science0704Li ShaLi Shawomanwoman 7Data Structure:e.g.It refers to a collection of data elements that have one or more specific relationships with each other.It is a collection of data elements with structure.It refers to the relationship between data elements,that is,the or

10、ganization of data.Tree structureteaching and research officelaboratorysystemofficeResearch institutionsschoolschoolGraph structure12543Data Structures and AlgorithmsData Structures and AlgorithmsChapter 1 Introduction1.1 Basic concepts of data structure8Data Type:e.g.In high-level languages,the val

11、ue range of integer types is:-32768+32767,and the set of operators are addition,subtraction,multiplication,division,and modulo,namely+,-,*,/,%.Data type is the general term for a set of values with the same properties and a set of operations defined on this value set.Atomic type:Its value cannot be

12、decomposed.Such as the standard types in C language(integer,real,character).Structure type:Its value is composed of several components in a certain structure,so it can be decomposed,and itscomponents can be non-structural or structural.What kind of pointer type is it?Data Structures and AlgorithmsDa

13、ta Structures and AlgorithmsChapter 1 Introduction1.1 Basic concepts of data structure9Related nouns:data abstraction and abstract data typesAbstract Data Type:Refers to a data type based on a logical relationship and a set of operations defined on this type.The abstract data type determines a model

14、,but hides the implementation details of the model;it defines a set of operations,but hides the implementation process of the operations.Data Structures and AlgorithmsData Structures and AlgorithmsChapter 1 Introduction1.1 Basic concepts of data structure10Abstract Data TypeFor example:the descripti

15、on of the abstract data type of the linear table:ADT Linear_listData element All ai belong to the same data object,i=1,2,.,n n0;Logical structure All data elements ai(i=1,2,.,n-1)have an order relationship,a1 has no predecessor,an has no successor;Operation Let L be Linear_list Initial(L):Initialize

16、 the empty linear table;Length(L):Find the length of the linear table;Get(L,i):Get the i-th element of the linear table;Insert(L,i,b):Insert element b at the i-th position of the linear table;Delete(L,i):Delete the i-th element of the linear table;ADT Linear_list Data Structures and AlgorithmsData S

17、tructures and AlgorithmsChapter 1 Introduction1.1 Basic concepts of data structure11Abstract Data TypeThree ways to achieve:Traditional process-oriented programming Design method of package and model Object Oriented Programming (abbreviation OOP)Data Structures and AlgorithmsData Structures and Algo

18、rithmsChapter 1 Introduction1.1 Basic concepts of data structure12 据据 结结 构构Related nouns:data abstraction and abstract data typesAbstract Data TypeADT has two important characteristics:Data abstraction:Data encapsulation:Separate the external characteristics of the entity from its internal implement

19、ation details,and hide its internal implementation details from external users.When using ADT to describe the entity handled by the program,it emphasizes its essential characteristics,the functionsthat it can complete,and its interface with external users(that is,theway the outside world uses it).Data Structures and AlgorithmsData Structures and AlgorithmsChapter 1 Introduction1.1 Basic concepts of data structureThanks!D Da at ta a S St tr ru uc ct tu ur re es s a an nd d A Al lg go or ri it th hm ms s

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 大学资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁