邻接矩阵存储图,n<= 100, 使用多源最短路算法Floyd算法(\(O(n^3)\)),求出重要城市之间最短路径。 遍历所有可能的配对,找出最小路径代价。具体的,求出所有重要城市的全排列,让相邻两城市配对,累加路径代价,再更新最小代价。 import java.util.*; public cl ...
分类:
其他好文 时间:
2020-07-01 22:05:20
阅读次数:
69
hiredis 的应用程序出错。 ./example-libevent: error while loading shared libraries: libhiredis.so.0.14: cannot open shared object file: No such file or directo ...
分类:
其他好文 时间:
2020-07-01 13:03:53
阅读次数:
97
1.subprocess.CalledProcessError: Command ‘[‘where’, ‘cl’]’ returned non-zero exit status 1. 这个问题是因为电脑安装的VS2017,没有将编译器路径加入环境变量。解决方法参考链接为 https://blog.c ...
分类:
其他好文 时间:
2020-07-01 09:16:52
阅读次数:
58
线上一个mysql5.6主从复制被操作系统重启弄崩溃了。重新搭建主从复制时, start slave io_thead; start slave sql_thread; 之后,show slave status\G 报错: ERROR 1872 (HY000): Slave failed to in ...
分类:
其他好文 时间:
2020-07-01 00:23:54
阅读次数:
91
ArrayList in Java is used to store dynamically sized collection of elements. Contrary to Arrays that are fixed in size, an ArrayList grows its size au ...
分类:
编程语言 时间:
2020-06-30 14:52:12
阅读次数:
62
本章通过讨论Git的基本架构组成和一些重要概念,来探讨Git的不同之处和原因。 一: 基本概念 1、版本库。 1】Git版本库只是一个简单的数据库,包含所有用来维护与管理项目的修订版本和历史记录。 2】Git版本库不但提供版本库中的所有文件的副本,还提供版本库本身的副本。 3】版本库配置是不随着cl ...
分类:
其他好文 时间:
2020-06-30 13:05:52
阅读次数:
49
1、解压压缩包 我的放到:K:\Mysql5.7\mysql-5.7.15-winx64 2、配置环境变量 新建MYSQL_HOME: K:\Mysql5.7\mysql-5.7.15-winx64 path 添加 : %MYSQL_HOME%\bin 3、新建并修改配置文件my.ini [mysq ...
分类:
数据库 时间:
2020-06-30 10:32:08
阅读次数:
81
这两种模型都是为了做到一种左右固定中间自适应的效果,听到的有人对于圣杯布局和双飞翼布局的描述很形象,首先一个圣杯的左右把柄和圣杯是一体的,所以body里面的代码是这样的: 1 <div class="container"> 2 <div class="center"></div> 3 <div cl ...
分类:
其他好文 时间:
2020-06-29 23:08:56
阅读次数:
112
https://blog.csdn.net/linyeban/article/details/53812641 在Eclipse中遇到The type XXX cannot be resolved. It is indirectly referenced from required .class f ...
分类:
其他好文 时间:
2020-06-29 16:56:58
阅读次数:
83
Path: Compose Functors -> Monad Transformers -> Free Monad Compose Functors: Let's say we have a Task holding a Either. And we want simply apply a .ma ...
分类:
其他好文 时间:
2020-06-29 15:05:19
阅读次数:
52