摘要:
近期在准备复习算法设计的考试,下边记录一些,看笔记时突然想到的解法。 问题是这种 用递归实现 n 个元素的全排列。 当时老师给出的解答是 假定第i个元素 ri 放在首位,于是 f(r1,r2,…,rn) = f(ri U {r1, r2,….,rn}) = U (ri & f(r1,r2, …, r
阅读全文
posted @ 2017-07-25 21:30
lxjshuju
阅读(356)
推荐(0)
编辑
摘要:
jsp项目不同jsp之间假设只通过超链接进行跳转,安全性太低,不能满足现实生活中对安全性的要求! 为了提高安全性。能够通过Servlet进行跳转,进行跳转的时候为了进一步实现其安全性,能够通过间jsp文件放在WEB-INF目录里面。这样安全性就能得到提升。可是问题伴随而来,放在WEB-INF目录里面
阅读全文
posted @ 2017-07-25 20:03
lxjshuju
阅读(430)
推荐(0)
编辑
摘要:
DMA: 1.使用DAC的时候。将转化后得到的模拟信号通过IO口输出的时候。为什么还将IO口配置能输入模式 PS:stm32手冊上定义PA4和PA5分别和DAC1通道和DAC2通道相连 ; DMA1和DMA2使用按个通道手冊中也是有规定的: 波形数据从内存带DAC是怎么DMA是怎么传输的?: /*
阅读全文
posted @ 2017-07-25 18:26
lxjshuju
阅读(523)
推荐(0)
编辑
摘要:
须要推断是否有正权环存在,Bellman-Ford算法就能够辣~ AC代码: #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; struct Edge
阅读全文
posted @ 2017-07-25 17:46
lxjshuju
阅读(92)
推荐(0)
编辑
摘要:
DZY has a hash table with p buckets, numbered from 0 to p - 1. He wants to insert n numbers, in the order they are given, into the hash table. For the
阅读全文
posted @ 2017-07-25 16:22
lxjshuju
阅读(122)
推荐(0)
编辑
摘要:
sudo ln -s /path/to/module.ko /lib/modules/`uname -r` sudo depmod -a #depmod will output a dependency list suitable for the modprobe utility. sudo mod
阅读全文
posted @ 2017-07-25 15:04
lxjshuju
阅读(186)
推荐(0)
编辑
摘要:
分别分析一下两种写法是否正确。假设不对。请说明原因 写法一: short s=1; s = s + 1; 写法二: short s=1; s += 1;解答: 写法一不对,会报出以下的错误:无法将类型“int”隐式转换为“short”。存在一个显式转换(是否缺少强制转换?) 分析: short ke
阅读全文
posted @ 2017-07-25 13:50
lxjshuju
阅读(182)
推荐(0)
编辑