forked from nonstriater/Learn-Algorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nonstriater
committed
Dec 1, 2015
1 parent
56a32f1
commit 4274c48
Showing
5 changed files
with
185 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
## 字符串 | ||
|
||
字符串在计算机中的应用非常广泛,这里讨论有关字符串的最重要的算法: | ||
|
||
* 排序 | ||
* 查找 | ||
* 正则表达式 | ||
* 数据压缩 | ||
|
||
|
||
### 排序 | ||
|
||
|
||
### 查找 | ||
|
||
|
||
#### 单词查找树 | ||
|
||
|
||
#### 子串查找 | ||
|
||
|
||
|
||
### 正则表达式 | ||
|
||
正则表达式是模式匹配的基础。是一个一般化了的子字符串的查找问题。也是搜索工具grep的核心。 | ||
|
||
|
||
### 数据压缩 | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
## 链表 | ||
|
||
* 链表 | ||
* 双向链表 | ||
|
||
### 链表 | ||
|
||
这个就不介绍了。重点说下双向链表。 | ||
|
||
|
||
### 双向链表 | ||
|
||
双向链表也叫双链表,是链表的一种,它的每个数据结点中都有两个指针,分别指向直接后继和直接前驱。所以,从双向链表中的任意一个结点开始,都可以很方便地访问它的前驱结点和后继结点。一般我们都构造双向循环链表。 | ||
|
||
双向链表克服了访问某个节点前驱节点(插入,删除操作时),只能从头遍历的问题。 | ||
|
||
``` | ||
typedef int Value | ||
typedef struct Entry{ | ||
struct Entry *next,prev; | ||
Value value; | ||
}DoubleLink; | ||
``` | ||
|
||
|
||
|