Data Structure
ZIYUE WU
这个作者很懒,什么都没留下…
展开
-
数据结构教程 | 链表及代码实现
Code Implementation of Link list1 Construction of link list1.1 Construct a link listtypedef struct Link{ char elem; // Represents the data field struct Link * next; // Represents the p...原创 2019-02-14 15:58:14 · 296 阅读 · 0 评论 -
数据结构教程 | 顺序表及代码实现
Data Structure: Code Implementation of Sequential table1 Construction of the sequential table1.1 Construct a sequential tableIn order to facilitate the later use of the data in the table, the seque...原创 2019-02-14 15:43:12 · 405 阅读 · 0 评论 -
数据结构教程 | 矩阵的压缩存储
Data Structure:Matrix Compression Storage1 IntroductionIn data structures, a compressed storage structure for some specific matrices is provided.The special matrix we mentioned can be generally di...原创 2019-02-19 21:18:11 · 424 阅读 · 0 评论 -
数据结构教程 | 串的模式匹配算法
Data Structure:Pattern Matching Algorithm of String1 Brute Force Algorithm (BF)1.1 IntroductionPattern matching means judging whether two strings has a Common Component, there’re two ways to achie...原创 2019-02-18 14:45:11 · 330 阅读 · 0 评论 -
数据结构教程 | 二叉树的存储与遍历
Data Structure: The traverse and storage of Binary Tree1 Chain Storage of Binary TreeUsually, we use link list to store a binary tree, the structure could be seen as follow:We can see that the no...原创 2019-02-23 09:21:26 · 285 阅读 · 1 评论 -
数据结构教程 | 串的存储
Data Structure: The Storage of String1 IntroductionIf we want to store a string, there will be 3 storage structure contained:Fixed length sequential storage: Static array, the same as ordinary ar...原创 2019-02-17 18:50:06 · 308 阅读 · 0 评论 -
数据结构教程 | 队列的基本操作和应用
Data Structure:Basic operations and Applications of Queue1 Basic knowledge1.1 IntroductionThe queue is a commonly used data structure that has special features, different from stack, the queue ope...原创 2019-02-17 11:08:24 · 421 阅读 · 0 评论 -
数据结构教程 | 栈的基本操作和应用
Data Structure: Basic operations of Stack1 Basic knowledge1.1 IntroductionSimilar to sequential table or link list, stack is another kind of linear storage structure. Stack is special due to its u...原创 2019-02-15 10:33:26 · 388 阅读 · 0 评论 -
数据结构教程 | 双向循环链表
Code Implementation of Double Circular Link list1 Construction1.1 Construct the link listtypedef struct line{ struct line * prior; int data; struct line * next;}line;Double circular...原创 2019-02-14 17:17:51 · 296 阅读 · 0 评论 -
数据结构教程 | 双向链表及代码实现
Code Implementation of Double link list1 Construction of a double link list1.1 Construct the nodetypedef struct line{ struct line * prior; // Point to the precursor int data; struct li...原创 2019-02-14 17:00:01 · 331 阅读 · 0 评论 -
数据结构教程 | 循环链表的实现及应用
Code Implementation and Application of Circular link list1 Construction1.1 BackgroundThe Joseph ring problem: Given n persons (Numbers 1,2,3, … , n) sit around a round table and count clockwise fr...原创 2019-02-14 16:33:12 · 311 阅读 · 0 评论 -
数据结构教程 | 静态链表及代码实现
Code Implementation of Static link list1 Construction of the static link list1.1 Construct a static link listStatic link list is different from the link list discussed in the last passage(We call t...原创 2019-02-14 16:18:54 · 291 阅读 · 0 评论 -
数据结构教程 | 广义表
Data Structure: Generalize list1 Storage structure of generalize list1.1 An exampleThe generalize list can store item itself (we call atom) and sublist, so the basic node of generalize list have t...原创 2019-02-20 16:59:12 · 260 阅读 · 0 评论