﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-雪竹的天空-随笔分类-算法资料</title><link>http://www.cppblog.com/theorix/category/8113.html</link><description>theorix</description><language>zh-cn</language><lastBuildDate>Tue, 09 Sep 2008 04:43:14 GMT</lastBuildDate><pubDate>Tue, 09 Sep 2008 04:43:14 GMT</pubDate><ttl>60</ttl><item><title>hash_map 与 hash_set 详解 ( 转 )</title><link>http://www.cppblog.com/theorix/archive/2008/09/08/61346.html</link><dc:creator>&lt;font color="red"&gt;雪竹的天空( theorix )&lt;/font&gt;</dc:creator><author>&lt;font color="red"&gt;雪竹的天空( theorix )&lt;/font&gt;</author><pubDate>Mon, 08 Sep 2008 15:23:00 GMT</pubDate><guid>http://www.cppblog.com/theorix/archive/2008/09/08/61346.html</guid><wfw:comment>http://www.cppblog.com/theorix/comments/61346.html</wfw:comment><comments>http://www.cppblog.com/theorix/archive/2008/09/08/61346.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/theorix/comments/commentRss/61346.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/theorix/services/trackbacks/61346.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 1 数据结构：hash_map原理                                     这是一节让你深入理解hash_map的介绍，如果你只是想囫囵吞枣，不想理解其原理，你倒是可以略过这一节，但我还是建议你看看，多了解一些没有坏处。                                    hash_map基于hash table（哈希表）。 哈希表最大的优...&nbsp;&nbsp;<a href='http://www.cppblog.com/theorix/archive/2008/09/08/61346.html'>阅读全文</a><img src ="http://www.cppblog.com/theorix/aggbug/61346.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/theorix/" target="_blank"><font color="red">雪竹的天空( theorix )</font></a> 2008-09-08 23:23 <a href="http://www.cppblog.com/theorix/archive/2008/09/08/61346.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>2-SAT  算法很好的资料</title><link>http://www.cppblog.com/theorix/archive/2008/09/01/60641.html</link><dc:creator>&lt;font color="red"&gt;雪竹的天空( theorix )&lt;/font&gt;</dc:creator><author>&lt;font color="red"&gt;雪竹的天空( theorix )&lt;/font&gt;</author><pubDate>Mon, 01 Sep 2008 15:06:00 GMT</pubDate><guid>http://www.cppblog.com/theorix/archive/2008/09/01/60641.html</guid><wfw:comment>http://www.cppblog.com/theorix/comments/60641.html</wfw:comment><comments>http://www.cppblog.com/theorix/archive/2008/09/01/60641.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/theorix/comments/commentRss/60641.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/theorix/services/trackbacks/60641.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 不错的资料哦   适合2-SAT 算法的学习&nbsp;&nbsp;<a href='http://www.cppblog.com/theorix/archive/2008/09/01/60641.html'>阅读全文</a><img src ="http://www.cppblog.com/theorix/aggbug/60641.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/theorix/" target="_blank"><font color="red">雪竹的天空( theorix )</font></a> 2008-09-01 23:06 <a href="http://www.cppblog.com/theorix/archive/2008/09/01/60641.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title> ACM主要算法</title><link>http://www.cppblog.com/theorix/archive/2008/08/29/60405.html</link><dc:creator>&lt;font color="red"&gt;雪竹的天空( theorix )&lt;/font&gt;</dc:creator><author>&lt;font color="red"&gt;雪竹的天空( theorix )&lt;/font&gt;</author><pubDate>Fri, 29 Aug 2008 14:40:00 GMT</pubDate><guid>http://www.cppblog.com/theorix/archive/2008/08/29/60405.html</guid><wfw:comment>http://www.cppblog.com/theorix/comments/60405.html</wfw:comment><comments>http://www.cppblog.com/theorix/archive/2008/08/29/60405.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/theorix/comments/commentRss/60405.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/theorix/services/trackbacks/60405.html</trackback:ping><description><![CDATA[1.图论<br>2.数据结构<br>3.搜索<br>4.动态规划<br>5.模拟<br>6.数学<br>7.计算几何<br>8.博弈论<br>9.字符串<br>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝<br>初期:<br>一.基本算法:<br>(1)枚举. (poj1753,poj2965)<br>(2)贪心(poj1328,poj2109,poj2586)<br>(3)递归和分治法.<br>(4)递推.<br>(5)构造法.(poj3295)<br>(6)模拟法.(poj1068,poj2632,poj1573,poj2993,poj2996)<br>二.图算法:<br>(1)图的深度优先遍历和广度优先遍历.<br>(2)最短路径算法(dijkstra,bellman-ford,floyd,heap+dijkstra)<br>(poj1860,poj3259,poj1062,poj2253,poj1125,poj2240)<br>(3)最小生成树算法(prim,kruskal)<br>(poj1789,poj2485,poj1258,poj3026)<br>(4)拓扑排序 (poj1094)<br>(5)二分图的最大匹配 (匈牙利算法) (poj3041,poj3020)<br>(6)最大流的增广路算法(KM算法). (poj1459,poj3436)<br>三.数据结构.<br>(1)串 (poj1035,poj3080,poj1936)<br>(2)排序(快排、归并排(与逆序数有关)、堆排) (poj2388,poj2299)<br>(3)简单并查集的应用.<br>(4)哈希表和二分查找等高效查找法(数的Hash,串的Hash)<br>(poj3349,poj3274,POJ2151,poj1840,poj2002,poj2503)<br>(5)哈夫曼树(poj3253)<br>(6)堆<br>(7)trie树(静态建树、动态建树) (poj2513)<br>四.简单搜索<br>(1)深度优先搜索 (poj2488,poj3083,poj3009,poj1321,poj2251)<br>(2)广度优先搜索(poj3278,poj1426,poj3126,poj3087.poj3414)<br>(3)简单搜索技巧和剪枝(poj2531,poj1416,poj2676,1129)<br>五.动态规划<br>(1)背包问题. (poj1837,poj1276)<br>(2)型如下表的简单DP(可参考lrj的书 page149):<br>1.E[j]=opt{D+w(i,j)} (poj3267,poj1836,poj1260,poj2533)<br>2.E[i,j]=opt{D[i-1,j]+xi,D[i,j-1]+yj,D[i-1][j-1]+zij} (最长公共子序列)<br><br>(poj3176,poj1080,poj1159)<br>3.C[i,j]=w[i,j]+opt{C[i,k-1]+C[k,j]}.(最优二分检索树问题)<br>六.数学<br>(1)组合数学:<br>1.加法原理和乘法原理.<br>2.排列组合.<br>3.递推关系.<br>(POJ3252,poj1850,poj1019,poj1942)<br>(2)数论.<br>1.素数与整除问题<br>2.进制位.<br>3.同余模运算.<br>(poj2635, poj3292,poj1845,poj2115)<br>(3)计算方法.<br>1.二分法求解单调函数相关知识.(poj3273,poj3258,poj1905,poj3122)<br>七.计算几何学.<br>(1)几何公式.<br>(2)叉积和点积的运用(如线段相交的判定,点到线段的距离等). (poj2031,poj1039)<br><br>(3)多边型的简单算法(求面积)和相关判定(点在多边型内,多边型是否相交)<br>(poj1408,poj1584)<br>(4)凸包. (poj2187,poj1113)<br>－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－<br>中级:<br>一.基本算法:<br>(1)C++的标准模版库的应用. (poj3096,poj3007)<br>(2)较为复杂的模拟题的训练(poj3393,poj1472,poj3371,poj1027,poj2706)<br>二.图算法:<br>(1)差分约束系统的建立和求解. (poj1201,poj2983)<br>(2)最小费用最大流(poj2516,poj2195)<br>(3)双连通分量(poj2942)<br>(4)强连通分支及其缩点.(poj2186)<br>(5)图的割边和割点(poj3352)<br>(6)最小割模型、网络流规约(poj3308, )<br>三.数据结构.<br>(1)线段树. (poj2528,poj2828,poj2777,poj2886,poj2750)<br>(2)静态二叉检索树. (poj2482,poj2352)<br>(3)树状树组(poj1195,poj3321)<br>(4)RMQ. (poj3264,poj3368)<br>(5)并查集的高级应用. (poj1703,2492)<br>(6)KMP算法. (poj1961,poj2406)<br>四.搜索<br>(1)最优化剪枝和可行性剪枝<br>(2)搜索的技巧和优化 (poj3411,poj1724)<br>(3)记忆化搜索(poj3373,poj1691)<br><br>五.动态规划<br>(1)较为复杂的动态规划(如动态规划解特别的施行商问题等)<br>(poj1191,poj1054,poj3280,poj2029,poj2948,poj1925,poj3034)<br>(2)记录状态的动态规划. (POJ3254,poj2411,poj1185)<br>(3)树型动态规划(poj2057,poj1947,poj2486,poj3140)<br>六.数学<br>(1)组合数学:<br>1.容斥原理.<br>2.抽屉原理.<br>3.置换群与Polya定理(poj1286,poj2409,poj3270,poj1026).<br>4.递推关系和母函数.<br><br>(2)数学.<br>1.高斯消元法(poj2947,poj1487, poj2065,poj1166,poj1222)<br>2.概率问题. (poj3071,poj3440)<br>3.GCD、扩展的欧几里德(中国剩余定理) (poj3101)<br>(3)计算方法.<br>1.0/1分数规划. (poj2976)<br>2.三分法求解单峰(单谷)的极值.<br>3.矩阵法(poj3150,poj3422,poj3070)<br>4.迭代逼近(poj3301)<br>(4)随机化算法(poj3318,poj2454)<br>(5)杂题.<br>(poj1870,poj3296,poj3286,poj1095)<br>七.计算几何学.<br>(1)坐标离散化.<br>(2)扫描线算法(例如求矩形的面积和周长并,常和线段树或堆一起使用).<br>(poj1765,poj1177,poj1151,poj3277,poj2280,poj3004)<br>(3)多边形的内核(半平面交)(poj3130,poj3335)<br>(4)几何工具的综合应用.(poj1819,poj1066,poj2043,poj3227,poj2165,poj3429<br>)<br>－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－<br>高级:<br>一.基本算法要求:<br>(1)代码快速写成,精简但不失风格<br>(poj2525,poj1684,poj1421,poj1048,poj2050,poj3306)<br>(2)保证正确性和高效性. poj3434<br>二.图算法:<br>(1)度限制最小生成树和第K最短路. (poj1639)<br>(2)最短路,最小生成树,二分图,最大流问题的相关理论(主要是模型建立和求解)<br><br>(poj3155, poj2112,poj1966,poj3281,poj1087,poj2289,poj3216,poj2446<br>(3)最优比率生成树. (poj2728)<br>(4)最小树形图(poj3164)<br>(5)次小生成树.<br>(6)无向图、有向图的最小环<br>三.数据结构.<br>(1)trie图的建立和应用. (poj2778)<br>(2)LCA和RMQ问题(LCA(最近公共祖先问题) 有离线算法(并查集+dfs) 和 在线算法<br><br>(RMQ+dfs)).(poj1330)<br>(3)双端队列和它的应用(维护一个单调的队列,常常在动态规划中起到优化状态转移<br>的<br>目的). (poj2823)<br>(4)左偏树(可合并堆).<br>(5)后缀树(非常有用的数据结构,也是赛区考题的热点).<br>(poj3415,poj3294)<br>四.搜索<br>(1)较麻烦的搜索题目训练(poj1069,poj3322,poj1475,poj1924,poj2049,poj3426)<br><br>(2)广搜的状态优化:利用M进制数存储状态、转化为串用hash表判重、按位压缩存储<br>状态、双向广搜、A*算法. (poj1768,poj1184,poj1872,poj1324,poj2046,poj1482)<br>(3)深搜的优化:尽量用位运算、一定要加剪枝、函数参数尽可能少、层数不易过大<br>、可以考虑双向搜索或者是轮换搜索、IDA*算法. (poj3131,poj2870,poj2286)<br>五.动态规划<br>(1)需要用数据结构优化的动态规划.<br>(poj2754,poj3378,poj3017)<br>(2)四边形不等式理论.<br>(3)较难的状态DP(poj3133)<br>六.数学<br>(1)组合数学.<br>1.MoBius反演(poj2888,poj2154)<br>2.偏序关系理论.<br>(2)博奕论.<br>1.极大极小过程(poj3317,poj1085)<br>2.Nim问题.<br>七.计算几何学.<br>(1)半平面求交(poj3384,poj2540)<br>(2)可视图的建立(poj2966)<br>(3)点集最小圆覆盖.<br>(4)对踵点(poj2079)<br>八.综合题.<br>(poj3109,poj1478,poj1462,poj2729,poj2048,poj3336,poj3315,poj2148,poj1263
<br>  <img src ="http://www.cppblog.com/theorix/aggbug/60405.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/theorix/" target="_blank"><font color="red">雪竹的天空( theorix )</font></a> 2008-08-29 22:40 <a href="http://www.cppblog.com/theorix/archive/2008/08/29/60405.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>