资源描述:
《ACM题目分类总结及pku题目分类.doc》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、ACM题目分类总结及pku题目分类ACM-题型分类的代码主流算法:1. 搜索 //回溯2. DP(动态规划) 3. 贪心 4. 图论 //Dijkstra、最小生成树、网络流5. 数论 //解模线性方程6. 计算几何 //凸壳、同等安置矩形的并的面积与周长7. 组合数学 //Polya定理8. 模拟 9. 数据结构 //并查集、堆10. 博弈论 1、
2、 排序,1723,1727,1763,1788,1828,1838,1840,2201,2376,2377,2380,1318,1877,1928,1971,1974,1990,2001,2002,2092,2379,1002(需要字符处理,排序用快排即可)1007(稳定的排序)2159(题意较难懂)22312371(简单排序)2388(顺序统计算法)2418(二叉排序树)2、 搜索、回溯、遍历1022111111181129119015621564157316552184222522432
3、3122362237823861010101110181020105410621256132113631501165016591664175320782083230323102329简单:1128,1166,1176,1231,1256,1270,1321,1543,1606,1664,1731,1742,1745,1847,1915,1950,2038,2157,2182,2183,2381,2386,2426不易:1024,1054,1117,1167,1708,1746,1775,1878,1903,196
4、6,2046,2197,2349推荐:1011,1190,1191,1416,1579,1632,1639,1659,1680,1683,1691,1709,1714,1753,1771,1826,1855,1856,1890,1924,1935,1948,1979,1980,2170,2288,2331,2339,2340,1979(和迷宫类似)1980(对剪枝要求较高)3、 历法10082080(这种题要小心)4、 枚举1387,2363,2381,1054(剪枝要求较高)
5、,1650(小数的精度问题)5、 数据结构的典型算法容易:1182,1656,2021,2023,2051,2153,2227,2236,2247,2352,2395,不易:1145,1177,1195,1227,1661,1834,推荐:1330,1338,1451,1470,1634,1689,1693,1703,1724,1988,2004,2010,2119,2274,1125(弗洛伊德算法),2421(图的最小生成树)6、 动态规划1037Adecorativefen
6、ce1050TotheMax1088滑雪125StockbrokerGrapevine1141BracketsSequence1159Palindrome1160PostOffice1163TheTriangle1458CommonSubsequence1579FunctionRunFun1887TestingtheCATCHER1953WorldCupNoise2386LakeCounting7、 贪心,,1230,1323,1477,1716,1784,13281755(或用单纯形方法),2
7、054,1017,1328,1862,1922,2054,2209,2313,2325,23708、 模拟容易:1006,1008,1013,1016,1017,1169,1298,1326,1350,1363,1676,1786,1791,1835,1970,2317,2325,2390,不易:1012,1082,1099,1114,1642,1677,1684,1886,128119282083214120159、 递归166410、 字符串处理1488,159
8、8,1686,1706,1747,1748,1750,1760,1782,1790,1866,1888,1896,1951,2003,2121,2141,2145,2159,2337,2359,2372,2406,2408,1016105111261318157219171936203920832136227123172330,2121240311、 数论10