4.2 有向图

4.2.1 术语 由一组顶点和一组有方向的边组成的,每条有方向的边都连接着有序的一对顶点 4.2.2 有向图的数据类型 public class Digraph Digraph(int V) 创建一幅含有V个顶点但没有边的有向图

第4章 图

4.1 无向图 图是由一组顶点和一组能够将两个顶点相连的边组成的 4.1.2 表示无向图的数据类型 public class Graph Graph(int V) 创建一个含有V个顶点但不含有边的图 Graph(In in) 从标准输入流 in

spring Security

maven 1 2 3 4 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> config 1 2 3 4 5 6 7 8 9 10 @Configuration public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests() .anyRequest().authenticated() .and().formLogin().loginProcessingUrl("/login").permitAll() .and().csrf().disable(); } } 1 2 spring.security.user.name=admin spring.security.user.password={bcrypt}$2a$10$io1baOv5SiP2G0DR.Dye.OQjtj1W8Aba31pGecyYdxgoXLkLjdfm.

3.4 散列表

用散列函数将被查找的键转化为数组的一个索引 处理碰撞冲突:拉链法和线性探测法 3.4.1 散列函数 3.4.1.2 正整数 除留余数法(k%M,M是素数) 3.4.1.3 浮点数 将键表示为

redis

集群脚本 redis根目录新建cluster文件夹 拷贝3节点配置文件到cluster文件夹 redis.7000.conf redis.7001.conf redis.7002.conf 修改对应配置项 1 2 3 4 5 port 7000 cluster-enabled yes cluster-config-file nodes.7000.conf cluster-node-timeout 5000 appendonly yes r