问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

acm竞赛的算法总共有那些范围? 求大牛概括......

发布网友 发布时间:2022-04-12 13:07

我来回答

4个回答

懂视网 时间:2022-04-12 17:28

On Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours. The game is played on an ice game board on which a square mesh is marked. They use only a single stone. The p

On Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours. The game is played on an ice game board on which a square mesh is marked. They use only a single stone. The purpose of the game is to lead the stone from the start to the goal with the minimum number of moves.

Fig. 1 shows an example of a game board. Some squares may be occupied with blocks. There are two special squares namely the start and the goal, which are not occupied with blocks. (These two squares are distinct.) Once the stone begins to move, it will proceed until it hits a block. In order to bring the stone to the goal, you may have to stop the stone by hitting it against a block, and throw again.


Fig. 1: Example of board (S: start, G: goal)

The movement of the stone obeys the following rules:

  • At the beginning, the stone stands still at the start square.
  • The movements of the stone are restricted to x and y directions. Diagonal moves are prohibited.
  • When the stone stands still, you can make it moving by throwing it. You may throw it to any direction unless it is blocked immediately(Fig. 2(a)).
  • Once thrown, the stone keeps moving to the same direction until one of the following occurs:
  • The stone hits a block (Fig. 2(b), (c)).
  • The stone stops at the square next to the block it hit.
  • The block disappears.
  • The stone gets out of the board.
  • The game ends in failure.
  • The stone reaches the goal square.
  • The stone stops there and the game ends in success.
  • You cannot throw the stone more than 10 times in a game. If the stone does not reach the goal in 10 moves, the game ends in failure.

  • Fig. 2: Stone movements

    Under the rules, we would like to know whether the stone at the start can reach the goal and, if yes, the minimum number of moves required.

    With the initial configuration shown in Fig. 1, 4 moves are required to bring the stone from the start to the goal. The route is shown in Fig. 3(a). Notice when the stone reaches the goal, the board configuration has changed as in Fig. 3(b).


    Fig. 3: The solution for Fig. D-1 and the final board configuration

    热心网友 时间:2022-04-12 14:36

    初级:
    一.基本算法:
    (1)枚举. (poj1753,poj2965)
    (2)贪心(poj1328,poj2109,poj2586)
    (3)递归和分治法.
    (4)递推.
    (5)构造法.(poj3295)
    (6)模拟法.(poj1068,poj2632,poj1573,poj2993,poj2996)
    二.图算法:
    (1)图的深度优先遍历和广度优先遍历.
    (2)最短路径算法(dijkstra,bellman-ford,floyd,heap+dijkstra)
    (poj1860,poj3259,poj1062,poj2253,poj1125,poj2240)
    (3)最小生成树算法(prim,kruskal)
    (poj1789,poj2485,poj1258,poj3026)
    (4)拓扑排序 (poj1094)
    (5)二分图的最大匹配 (匈牙利算法) (poj3041,poj3020)
    (6)最大流的增广路算法(KM算法). (poj1459,poj3436)
    三.数据结构.
    (1)串 (poj1035,poj3080,poj1936)
    (2)排序(快排、归并排(与逆序数有关)、堆排) (poj2388,poj2299)
    (3)简单并查集的应用.
    (4)哈希表和二分查找等高效查找法(数的Hash,串的Hash)
    (poj3349,poj3274,POJ2151,poj1840,poj2002,poj2503)
    (5)哈夫曼树(poj3253)
    (6)堆
    (7)trie树(静态建树、动态建树) (poj2513)
    四.简单搜索
    (1)深度优先搜索 (poj2488,poj3083,poj3009,poj1321,poj2251)
    (2)广度优先搜索(poj3278,poj1426,poj3126,poj3087.poj3414)
    (3)简单搜索技巧和剪枝(poj2531,poj1416,poj2676,1129)
    五.动态规划
    (1)背包问题. (poj1837,poj1276)
    (2)型如下表的简单DP(可参考lrj的书 page149):
    1.E[j]=opt{D[i]+w(i,j)} (poj3267,poj1836,poj1260,poj2533)
    2.E[i,j]=opt{D[i-1,j]+xi,D[i,j-1]+yj,D[i-1][j-1]+zij} (最长公共子序列)
    (poj3176,poj1080,poj1159)
    3.C[i,j]=w[i,j]+opt{C[i,k-1]+C[k,j]}.(最优二分检索树问题)
    六.数学
    (1)组合数学:
    1.加法原理和乘法原理.
    2.排列组合.
    3.递推关系.
    (POJ3252,poj1850,poj1019,poj1942)
    (2)数论.
    1.素数与整除问题
    2.进制位.
    3.同余模运算.
    (poj2635, poj3292,poj1845,poj2115)
    (3)计算方法.
    1.二分法求解单调函数相关知识.(poj3273,poj3258,poj1905,poj3122)
    七.计算几何学.
    (1)几何公式.
    (2)叉积和点积的运用(如线段相交的判定,点到线段的距离等). (poj2031,poj1039)
    (3)多边型的简单算法(求面积)和相关判定(点在多边型内,多边型是否相交)
    (poj1408,poj1584)
    (4)凸包. (poj2187,poj1113)

    热心网友 时间:2022-04-12 15:54

    1.图论
    2.数据结构
    3.搜索
    4.动态规划
    5.模拟
    6.数学
    7.计算几何
    8.博弈论
    9.字符串

    热心网友 时间:2022-04-12 17:29

    数论 图 数据结构
    声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
    在公交车上实施扒窃,会受到怎样的处罚? 交通违法行为识别 公交车扒窃会如何处罚? 郑州鱼缸清洗找哪家公司做得比较好? 郑州有没有专业维修鱼缸,清洗鱼缸的? ...的鱼缸,放在办公室养些鱼水草之类的。郑州哪里有卖这样的鱼缸。_百... 我们公司想要定做个观赏鱼缸,不知道郑州哪家公司最专业? 谁知道郑州生态鱼缸定做哪家做的效果最好? 联想电脑启用无线功能的功能键? 笔记本电脑怎么连接网笔记本电脑怎样连接无线网 在医院拍片子学平险给报销吗 兴业银行信用卡中心审核要多少天呀,已经审核1个星期了还没有结果? 兴业银行信用卡总行审核中得多长时间啊,现在已经7天了 广州喷砂洗牙和超声波洗牙区别 常见的洗牙方法有几种?超声波洗牙和喷沙洗牙的作用差异? 在汕头这边的医院做超声波洗牙和普通洗牙有什么区别? 请问我一个人开钟点房是不是不正常? 三明市成东大饭店两个人开,钟点房,出示一个人的身份证可以吗? 一个人租房子可以带人进去住吗,一个人房租 成年人情侣去宾馆开房钟点房一个人有身体证可以吗? _百度问一问 一个人能去宾馆开钟点房吗? 钟点房一个人开好房,可以来客人嘛? ACM竞赛搜索题中怎样区分是用宽度优先和深度优先啊? 战列舰怎么素描?不要太像这种就可以,请教会画画的人~ 渡江第一船怎么画 长沙公寓御龙天下用电多少钱一度 湖南省的电费收费标准是多少钱一度的电(商业用电) 湖南石门县居民用电多少钱1度? python 怎么提取表格中的附件 论文如果引用了网页该怎么写参考文献,就是参考文献的格式怎么写注意我引用的不是书刊而是网页。 为什么我的战神笔记本开机了,进不去桌面,显示请稍后 不辞是什么意思 有不辞两个字的诗句.- - 神舟战神Z6的笔记本如何能找到 最后一次正确配置 的选项 大善不辞小恶里的“不辞”是什么意思呢? 八秩不辞是什么意思? 不辞什么什么成语 “海不辞滴水,故能成其大;山不辞土石,故能成其高”的意思是什么? 不辞七月什么意思? 不辞一切什么意思? 不辞劳功是什么意思 “八秩不辞”的意思? 什么不什么辞四字词 不辞辛苦的辞是什么意思 我家刚安的移动宽带20m 手机连wifi下载速度一直都是1.1 怎么突破啊? 移动宽带下载速度慢 移动宽带网速慢解决办法 烟台大学每个专业排名怎样? 烟台大学专业排名,特色重点专业有哪些