algorithmn parameter code 主要是以下三个函数 计算所有的可行点 怎么计算一个点的可行点 从可行点中计算路径path todo algorithmn 算法的解释 Dijkstra 其实就是A star或者Dijkstra(基于priority queue实现的)的路径规划算法,关键是相邻点之间的cost怎么计算,怎么从可行点找到path Navfn's optimal path is based on a path's "potential"(可能可以行走的目标
地址:http://poj.org/problem?id=1755 题目: Triathlon Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 6931 Accepted: 1797 Description Triathlon is an athletic contest consisting of three consecutive sections that should be completed as fast
复习C++的核心知识 函数与参数 传值参数.模板函数.引用参数.常量引用参数 传值参数 int abc(int a,int b,int c) { return a + b * c; } a.b.c是函数abc的形参,下面语句中调用函数abc: z = abc(2,x,y); 2.x.y就是分别于a b c对应的实参,形参a.b.c实际上是传值参数,在运行时,函数abc执行前,将实参复制给形参,复制过由形参类型的复制构造函数来完成,如果类型不同会进行转换.当函数运行结束后,形参类型的析构函数负责释
地址:http://poj.org/problem?id=2778 题目: DNA Sequence Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 15453 Accepted: 5964 Description It's well known that DNA Sequence is a sequence only contains A, C, T and G, and it's very useful to an