├── 2-3-4tree.graffle ├── KMP.graffle ├── README.md ├── React生命周期.graffle ├── React转小程序.graffle ├── Tarjan算法.graffle ├── data.plist └── image3.png ├── Treap.graffle ├── data.plist ├── image10.png ├── image11.png ├── image12.png ├── image13.png ├── image14.png ├── image2.png ├── image5.png ├── image6.png ├── image7.png ├── image8.png └── image9.png ├── Treap2.graffle ├── children循环引用.graffle ├── contextStack.graffle ├── fiber.graffle ├── fiber2.graffle ├── nanachieventproxy.graffle ├── nanachi架构图前.graffle ├── data.plist └── image1.png ├── react-lite.graffle ├── reactVsangular.graffle ├── 前缀树.graffle ├── 后缀数组.graffle ├── 后缀树.graffle ├── 哈希栈链表线段树.graffle ├── 图 ├── matrix_dfs.html ├── 无向邻接矩阵.key ├── 最短路径.graffle │ ├── data.plist │ ├── image1.png │ ├── image2.png │ └── image3.png └── 边数组.key ├── 数据结构.xmind ├── 数据结构2.xmind ├── 栈 └── stack.md ├── 流程函数.graffle ├── 生产者消费者.graffle ├── 红黑树.graffle ├── 线性探测.graffle ├── 线段树2.graffle ├── 组件渲染过程.graffle ├── 虚拟DOM算法演化.graffle ├── 虚拟DOM结构.graffle ├── 跳表.graffle ├── data.plist └── image1.png └── 队列 └── queue.md /2-3-4tree.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/2-3-4tree.graffle -------------------------------------------------------------------------------- /KMP.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/KMP.graffle -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 算法屠城 2 | 3 | 放置各种源码与材料 4 | 5 | -------------------------------------------------------------------------------- /React生命周期.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/React生命周期.graffle -------------------------------------------------------------------------------- /React转小程序.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/React转小程序.graffle -------------------------------------------------------------------------------- /Tarjan算法.graffle/data.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Tarjan算法.graffle/data.plist -------------------------------------------------------------------------------- /Tarjan算法.graffle/image3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Tarjan算法.graffle/image3.png -------------------------------------------------------------------------------- /Treap.graffle/data.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Treap.graffle/data.plist -------------------------------------------------------------------------------- /Treap.graffle/image10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Treap.graffle/image10.png -------------------------------------------------------------------------------- /Treap.graffle/image11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Treap.graffle/image11.png -------------------------------------------------------------------------------- /Treap.graffle/image12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Treap.graffle/image12.png -------------------------------------------------------------------------------- /Treap.graffle/image13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Treap.graffle/image13.png -------------------------------------------------------------------------------- /Treap.graffle/image14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Treap.graffle/image14.png -------------------------------------------------------------------------------- /Treap.graffle/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Treap.graffle/image2.png -------------------------------------------------------------------------------- /Treap.graffle/image5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Treap.graffle/image5.png -------------------------------------------------------------------------------- /Treap.graffle/image6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Treap.graffle/image6.png -------------------------------------------------------------------------------- /Treap.graffle/image7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Treap.graffle/image7.png -------------------------------------------------------------------------------- /Treap.graffle/image8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Treap.graffle/image8.png -------------------------------------------------------------------------------- /Treap.graffle/image9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Treap.graffle/image9.png -------------------------------------------------------------------------------- /Treap2.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/Treap2.graffle -------------------------------------------------------------------------------- /children循环引用.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/children循环引用.graffle -------------------------------------------------------------------------------- /contextStack.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/contextStack.graffle -------------------------------------------------------------------------------- /fiber.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/fiber.graffle -------------------------------------------------------------------------------- /fiber2.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/fiber2.graffle -------------------------------------------------------------------------------- /nanachieventproxy.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/nanachieventproxy.graffle -------------------------------------------------------------------------------- /nanachi架构图前.graffle/data.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/nanachi架构图前.graffle/data.plist -------------------------------------------------------------------------------- /nanachi架构图前.graffle/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/nanachi架构图前.graffle/image1.png -------------------------------------------------------------------------------- /react-lite.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/react-lite.graffle -------------------------------------------------------------------------------- /reactVsangular.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/reactVsangular.graffle -------------------------------------------------------------------------------- /前缀树.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/前缀树.graffle -------------------------------------------------------------------------------- /后缀数组.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/后缀数组.graffle -------------------------------------------------------------------------------- /后缀树.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/后缀树.graffle -------------------------------------------------------------------------------- /哈希栈链表线段树.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/哈希栈链表线段树.graffle -------------------------------------------------------------------------------- /图/matrix_dfs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 |
16 | 107 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /图/无向邻接矩阵.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/图/无向邻接矩阵.key -------------------------------------------------------------------------------- /图/最短路径.graffle/data.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/图/最短路径.graffle/data.plist -------------------------------------------------------------------------------- /图/最短路径.graffle/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/图/最短路径.graffle/image1.png -------------------------------------------------------------------------------- /图/最短路径.graffle/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/图/最短路径.graffle/image2.png -------------------------------------------------------------------------------- /图/最短路径.graffle/image3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/图/最短路径.graffle/image3.png -------------------------------------------------------------------------------- /图/边数组.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/图/边数组.key -------------------------------------------------------------------------------- /数据结构.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/数据结构.xmind -------------------------------------------------------------------------------- /数据结构2.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/数据结构2.xmind -------------------------------------------------------------------------------- /栈/stack.md: -------------------------------------------------------------------------------- 1 | 2 | C++ 中栈的方法 3 | void Push(const T & s);//插入数据 4 | void Pop();//删除数据 5 | bool empty();//判断是否为空 6 | size_t size();//元素个数 7 | T & Top();//取出最后进入的元素但不删除 8 | 9 | ```javascript 10 | var stack = [] 11 | stack.top = function(){ 12 | return this[this.length-1] 13 | } 14 | stack.empty = function(){ 15 | return this.length === 0 16 | } 17 | stack.size = function(){ 18 | return this.length; 19 | } 20 | ``` -------------------------------------------------------------------------------- /流程函数.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/流程函数.graffle -------------------------------------------------------------------------------- /生产者消费者.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/生产者消费者.graffle -------------------------------------------------------------------------------- /红黑树.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/红黑树.graffle -------------------------------------------------------------------------------- /线性探测.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/线性探测.graffle -------------------------------------------------------------------------------- /线段树2.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/线段树2.graffle -------------------------------------------------------------------------------- /组件渲染过程.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/组件渲染过程.graffle -------------------------------------------------------------------------------- /虚拟DOM算法演化.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/虚拟DOM算法演化.graffle -------------------------------------------------------------------------------- /虚拟DOM结构.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/虚拟DOM结构.graffle -------------------------------------------------------------------------------- /跳表.graffle/data.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/跳表.graffle/data.plist -------------------------------------------------------------------------------- /跳表.graffle/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RubyLouvre/algorithmbook/c1914d841a62629af6cc45850ed2b78caccd1b30/跳表.graffle/image1.png -------------------------------------------------------------------------------- /队列/queue.md: -------------------------------------------------------------------------------- 1 | 2 | C++ 中栈的方法 3 | 4 | back()返回最后一个元素 5 | empty()如果队列空则返回真 6 | front()返回第一个元素 7 | pop()删除第一个元素 8 | push()在末尾加入一个元素 9 | size()返回队列中元素的个数 10 | 11 | ```javascript 12 | var queue = [] 13 | queue.back = function(){ 14 | return this[this.length-1] 15 | } 16 | queue.front = function(){ 17 | return this[0] 18 | } 19 | queue.enqueue = function(a){ 20 | return this.push(a) 21 | } 22 | queue.dequeue = function(){ 23 | return this.shift(); 24 | } 25 | queue.empty = function(){ 26 | return this.length === 0 27 | } 28 | queue.size = function(){ 29 | return this.length; 30 | } 31 | ``` --------------------------------------------------------------------------------