11 2019 档案
摘要:#include <stdio.h> int main() { union{ short s; char c[sizeof(short)]; }un; un.s = 0x0102; if (sizeof(short) == 2) { if (un.c[0] == 1 && un.c[1] == 2)
阅读全文
摘要:来自:https://blog.csdn.net/qq_32998153/article/details/79680704
阅读全文
摘要:open表 close表 //处理过的节点f(n) = g(n) + h(n)f(n) --从起点经由n到达终点的最短路径的估计g(n) --从起点到n点已找到最短路径代价(代价函数)h(n) --从n点到终点的最短路径的代价估计(启发式函数) 1.把起点S放入open表2.从open表找f值最小的
阅读全文