失效链接处理 |
数据结构与算法 全 数据结构与算法全 Java PDF 下载
相关截图:
![]() 主要内容:
一. 初识算法
1.1 什么是算法? 定义 在数学和计算机科学领域,算法是一系列有限的严谨指令,通常用于解决一类特定问题或执行计算 In mathematics and computer science, an algorithm (/ˈælɡərɪðəm/) is a finite sequence of rigorous instructions, typically used to solve a class of specific problems or to perform a computation.[1] Introduction to Algorithm[2] 不正式的说,算法就是任何定义优良的计算过程:接收一些值作为输入,在有限的时间内,产生一些 值作为输出。 Informally, an algorithm is any well-defined computational procedure that takes some value, or set of values, as input and produces some value, or set of values, as output in a finite amount of time.
1.2 什么是数据结构?
定义 在计算机科学领域,数据结构是一种数据组织、管理和存储格式,通常被选择用来高效访问数据 In computer science, a data structure is a data organization, management, and storage format that is usually chosen for efficient access to data Introduction to Algorithm[2:1] 数据结构是一种存储和组织数据的方式,旨在便于访问和修改 A data structure is a way to store and organize data in order to facilitate access and modifications 可以说,程序 = 数据结构 + 算法,它们是每一位程序员的基本功,下来我们通过对一个非常著名的二 分查找算法的讲解来认识一下算法
1.3 二分查找 [3]
二分查找算法也称折半查找,是一种非常高效的工作于有序数组的查找算法。后续的课程中还会学习 更多的查找算法,但在此之前,不妨用它作为入门。 1) 基础版 需求:在有序数组 内,查找值
|