Some basic concepts of data structure

SmithBee 2021-01-22 10:03:38
basic concepts data structure

The basic concept of data structure

Whether we are students of computer major or program ape who have been working / Yuan , I can't get around it data structure This technology point , Let's talk about it today .

1. What data structures are learning

  • How to use program code to solve real world problems Promotion of information technology
  • how Use a computer to process efficiently This information creates value

The development of human society , So far, it has experienced and experienced three waves : The first wave was agriculture , From about 1 Ten thousand years ago ; The second wave is the industrial stage , from 17 At the end of the century ; The third wave is the coming information stage . ----《 The third wave (1980 edition )》, alvin · Toffler

An example of informatization :





All these above , It has covered all aspects of our daily life .


The only thing that's certain , Tomorrow will surprise all of us .

​ —— alvin · Toffler


2. Some basic concepts of data structure


1) Basic concepts

  • data :

    data Is the carrier of information , It's a number that describes the attributes of an objective thing 、 A collection of characters and all symbols that can be input into a computer and recognized and processed by a computer program . Data is the raw material for computer programming .


​ What the computer can recognize is 0 and 1 Binary number of .

  • data elements 、 Data item :

    data elements It's the basic unit of data , Usually considered and dealt with as a whole .

    A data element can be made up of several Data item form , Data item Is the smallest indivisible unit of data elements .


  • structure

    The relationship between the elements .


  • data structure 、 Data objects

    data structure : It's that there's one or more specific things that exist between each other Relationship A collection of data elements of .

    Data objects : Yes. Same nature A collection of data elements of , It's a subset of the data .

    An example of fishing up to the bottom of the sea :

    data structure : Queuing customer information for a particular store and the relationship between them


    Data objects : Queuing customer information for all stores across the country


Here is a diagram to show the relationship between these concepts :


  • data type

    data type Is a collection of values and a set of operations defined on this set .

    • Type of atom : A data type whose value cannot be subdivided .


    • Structure type : Its value can be further decomposed into several components ( component ) Data type of .


  • Abstract data types (ADT)

    Abstract data type is the organization of abstract data and its related operations .

2) The three elements of data structure

  1. Logical structure

    The logical relationship between data elements .


  • aggregate

    Each element belongs to a set , Nothing else .


  • Linear structure

    There is a one-to-one relationship between data elements , Except for the first element , All elements have a unique Forerunner ; Except for the last element , All elements have a unique The subsequent .



  • A tree structure

    There is a one to many relationship between data elements .



  • The graph structure

    There is a many to many relationship between data elements .




  1. Physical structure ( Storage structure )

    A computer represents the structure of logical relationships between data elements .


  • Sequential storage

    Store logically adjacent elements in a physical location that is also adjacent to each other , The relationship between elements is represented by the adjacency of storage units .



  • Chain store

    Logically adjacent elements may not be adjacent in physical position , The logical relationship between elements is represented by a pointer indicating the storage address of the element .



  • Index storage

    While storing element information , Also create additional index tables . Each item in an index table is called an index entry , The general form of an index entry is ( keyword , Address ).



  • Hash store

    According to the key words of the element, the storage address of the element can be calculated directly , Also known as hash (Hash) Storage .


​ The method of calculating hash value will be introduced later


Another wave of understanding , Blossom

1) If sequential storage is used , Each data element must be physically continuous ; If non sequential storage is used , Then each data element can be physically discrete .

2) The storage structure of data will affect the convenience of storage space allocation .( such as , Someone wants to jump in line )

3) The storage structure of data will affect the speed of data operation .( such as , Trying to find someone )



  1. The operation of data

    The operations imposed on the data include Definition and Realization . Definition of operation It's about logical structure , Point out the function of operation ; The realization of computation It's about the storage structure , Point out the operation steps .


​ I'll learn the specific data structure types later , You'll learn to define and implement .

If you want to know more , You can pay attention to the official account of WeChat : Programmers should be like this , Get more quality content .


  1. 【计算机网络 12(1),尚学堂马士兵Java视频教程
  2. 【程序猿历程,史上最全的Java面试题集锦在这里
  3. 【程序猿历程(1),Javaweb视频教程百度云
  4. Notes on MySQL 45 lectures (1-7)
  5. [computer network 12 (1), Shang Xuetang Ma soldier java video tutorial
  6. The most complete collection of Java interview questions in history is here
  7. [process of program ape (1), JavaWeb video tutorial, baidu cloud
  8. Notes on MySQL 45 lectures (1-7)
  9. 精进 Spring Boot 03:Spring Boot 的配置文件和配置管理,以及用三种方式读取配置文件
  10. Refined spring boot 03: spring boot configuration files and configuration management, and reading configuration files in three ways
  11. 精进 Spring Boot 03:Spring Boot 的配置文件和配置管理,以及用三种方式读取配置文件
  12. Refined spring boot 03: spring boot configuration files and configuration management, and reading configuration files in three ways
  13. 【递归,Java传智播客笔记
  14. [recursion, Java intelligence podcast notes
  15. [adhere to painting for 386 days] the beginning of spring of 24 solar terms
  16. K8S系列第八篇(Service、EndPoints以及高可用kubeadm部署)
  17. K8s Series Part 8 (service, endpoints and high availability kubeadm deployment)
  18. 【重识 HTML (3),350道Java面试真题分享
  19. 【重识 HTML (2),Java并发编程必会的多线程你竟然还不会
  20. 【重识 HTML (1),二本Java小菜鸟4面字节跳动被秒成渣渣
  21. [re recognize HTML (3) and share 350 real Java interview questions
  22. [re recognize HTML (2). Multithreading is a must for Java Concurrent Programming. How dare you not
  23. [re recognize HTML (1), two Java rookies' 4-sided bytes beat and become slag in seconds
  24. 造轮子系列之RPC 1:如何从零开始开发RPC框架
  25. RPC 1: how to develop RPC framework from scratch
  26. 造轮子系列之RPC 1:如何从零开始开发RPC框架
  27. RPC 1: how to develop RPC framework from scratch
  28. 一次性捋清楚吧,对乱糟糟的,Spring事务扩展机制
  29. 一文彻底弄懂如何选择抽象类还是接口,连续四年百度Java岗必问面试题
  30. Redis常用命令
  31. 一双拖鞋引发的血案,狂神说Java系列笔记
  32. 一、mysql基础安装
  33. 一位程序员的独白:尽管我一生坎坷,Java框架面试基础
  34. Clear it all at once. For the messy, spring transaction extension mechanism
  35. A thorough understanding of how to choose abstract classes or interfaces, baidu Java post must ask interview questions for four consecutive years
  36. Redis common commands
  37. A pair of slippers triggered the murder, crazy God said java series notes
  38. 1、 MySQL basic installation
  39. Monologue of a programmer: despite my ups and downs in my life, Java framework is the foundation of interview
  40. 【大厂面试】三面三问Spring循环依赖,请一定要把这篇看完(建议收藏)
  41. 一线互联网企业中,springboot入门项目
  42. 一篇文带你入门SSM框架Spring开发,帮你快速拿Offer
  43. 【面试资料】Java全集、微服务、大数据、数据结构与算法、机器学习知识最全总结,283页pdf
  44. 【leetcode刷题】24.数组中重复的数字——Java版
  45. 【leetcode刷题】23.对称二叉树——Java版
  46. 【leetcode刷题】22.二叉树的中序遍历——Java版
  47. 【leetcode刷题】21.三数之和——Java版
  48. 【leetcode刷题】20.最长回文子串——Java版
  49. 【leetcode刷题】19.回文链表——Java版
  50. 【leetcode刷题】18.反转链表——Java版
  51. 【leetcode刷题】17.相交链表——Java&python版
  52. 【leetcode刷题】16.环形链表——Java版
  53. 【leetcode刷题】15.汉明距离——Java版
  54. 【leetcode刷题】14.找到所有数组中消失的数字——Java版
  55. 【leetcode刷题】13.比特位计数——Java版
  56. oracle控制用户权限命令
  57. 三年Java开发,继阿里,鲁班二期Java架构师
  58. Oracle必须要启动的服务
  59. 万字长文!深入剖析HashMap,Java基础笔试题大全带答案
  60. 一问Kafka就心慌?我却凭着这份,图灵学院vip课程百度云