在SICP 32(48)页根据书中给出的关系(bn/2)2=(b2)n/2,并且使用一个不变量记录中间结果,写出对数步数内迭代计算幂的函数:方法一(not me):;;; 16-fast-expt.scm(define (fast-expt b n) (expt-iter b n 1))(de...
分类:
其他好文 时间:
2015-03-21 13:58:15
阅读次数:
124
http://www.rsyslog.com/http://www.rsyslog.com/doc/v5-stable/troubleshooting/troubleshoot.htmlRSYSLOG is the rocket-fast system for log processing.It o...
分类:
其他好文 时间:
2015-03-20 18:04:16
阅读次数:
171
Fast Compressive Tracking
(快速压缩跟踪)
虽然目前有很多种的跟踪算法,但是由于姿态的变化、光照的变化、障碍物等原因的存在,导致很多算法的鲁棒性不好。
目前比较主流的跟踪算法有两种,generative tracking algorithms(生成跟踪算法)和discriminative algorithms(判别跟踪算法)。
生成跟踪算法,顾名思义边生成边跟踪...
分类:
编程语言 时间:
2015-03-20 14:32:24
阅读次数:
6040
DescriptionLittle Y finds there is a very interesting formula in mathematics:XY mod Z = KGiven X, Y, Z, we all know how to figure out K fast. However,...
分类:
其他好文 时间:
2015-03-20 10:40:10
阅读次数:
146
思路:生成全排列,用next_permutation,注意生成之前先对那个字符数组排序。
AC代码:
#include
#include
#include
#include
#include
using namespace std;
char str[20];
int main() {
int n;
cin >> n;
while(n--) {
scanf("%...
分类:
其他好文 时间:
2015-03-19 23:58:30
阅读次数:
234
introduction ????git is a fast,scalable and distributed version control system with an unusually rich command set that provides high-level operations and full access to internals....
分类:
其他好文 时间:
2015-03-18 21:53:43
阅读次数:
165
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:
Can you solve it without using extra space?解题思路设链表长度为n,头结点与循环节点之间的长度为k。定义两个指针slow和fast,slow每次走...
分类:
其他好文 时间:
2015-03-18 14:07:38
阅读次数:
116
原文:https://wiki.base22.com/display/btg/How+to+setup+SLF4J+and+LOGBack+in+a+web+app+-+fastLogback is intended as a successor to the popular log4j proje...
分类:
移动开发 时间:
2015-03-17 17:52:21
阅读次数:
179
innodb存储引擎1.存储:数据目录。可以通过配置修改 存储文件:frm,ibd结尾的文件。frm存储表结构,ibd存储索引和数据 存储日志:ib_logfilen文件2.innodb存储引擎开启或关闭: 关闭innodb_fast_shutdown= 0 完成所有的full purge和merg...
分类:
数据库 时间:
2015-03-17 15:44:30
阅读次数:
183
Problem Description
One day, Alice and Bob felt bored again, Bob knows Alice is a girl who loves math and is just learning something about matrix, so he decided to make a crazy problem for her.Bob has...
分类:
其他好文 时间:
2015-03-16 19:22:16
阅读次数:
102