Author: Guo Xiaoxing
Weibo: Guo Xiaoxing's Sina Weibo
E-mail: allenwells@163.com
Blog: http://blog.csdn.net/allenwells
Github:https://github.com/allenwells a basic concept and terminology
Data Structure
Data structure: Data structure is a study of non-numerical computing programming problems in the operation of the object, and their relationship and operation and other related issues of the subject.
Data
Data: Is the symbol that describes the objective thing, is the computer can manipulate the object, is can be recognized by the computer, and input to the computer processing symbol collection.
Data Elements
Data elements: a basic unit of meaning that is composed of data, usually treated as a whole in a computer, also known as a record.
Data Item
Data item: An element can consist of several data items, which are the smallest units of data that are inseparable.
Data Objects
Data Objects: A collection of data elements of the same nature (with the same number and type of data items), which is a subset of the data.
Data Structure
Data structure: is a collection of elements that have one or more specific relationships to each other. two logical structure and physical structure 2.1 Logical Structure
Logical structure refers to the relationship between data elements in a data object. Structure of the structure of a tree structure with a linear structure of a set of 2.2 physical Structure
The physical structure refers to the storage form of the logical structure of the data in the computer. Sequential storage structure: The data elements are stored in a continuous storage unit, the logical relationship between the data and the physical relationship is consistent. Chained storage structure: The data elements are placed in any storage unit, these storage units can be continuous, or can be discontinuous. three abstract data types 3.1 Data Types
? data type: Refers to a set of values that are of the same nature and the generic name that defines the operations on this collection. Atomic type: is a type that can no longer be decomposed, including shaping, real, character, and so on. struct type: A combination of several types that can be decomposed. 3.2 Abstract data types
Abstract data types refer to a mathematical model and a set of operations defined on this model. Abstract data types embody the characteristics of problem decomposition, abstraction and information hiding in program design. Four estimation of algorithm complexity
Algorithm (algorithm): An algorithm is a description of a specific problem step that behaves as a finite sequence of instructions in a computer, and each instruction represents one or more operations.
Algorithm features: input (0 or more), output (one or more), poor, deterministic, and feasible.
Algorithm design requirements: Correctness, readability, robustness, high time efficiency and low storage capacity.
Asymptotic growth of functions: given two functions f (n) and g (n), if there is an integer n, so that for all n > N,f (n) is always greater than g (n), then we say that f (n) is growing faster than g (n). When judging the efficiency of an algorithm, the constants and other sub-items in the function can be ignored, and the primary and secondary items determine the growth speed of the function. An algorithm, with the increase of N, will be more and more superior to another algorithm, or worse than the other algorithm.