Skip to content

数学结构与算法 #2

Description

@MatNoble

数据结构是计算机存储、组织数据的方式。
算法是一系列规定的计算步骤,为了实现特定的计算目的。

程序 = 数据结构 + 算法

数据结构: 程序用来储存数据的基本单位
       算法: 为了实现特定目的,一系列操作数据的方式
==>
一个程序把数据存储在特定的数据结构中,并使用特定的算法进行数据的计算

数据结构和算法之间的关系密不可分:

  • 特定算法有时候需要基于特定的数据结构,比如二分查找就要基于排好序的数组。
  • 数据结构也往往集成了特定的算法,比如优先队列就集成了排序算法在其中。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions