学习Mathematica迭代函数的几个画图例子:1.三角形沿着某一点旋转verticse = {{0, 0}, {1, 0}, {1/2, Sqrt[3]/2}};tri = Line[verticse /. {a_, b__}->{a, b, a}];Graphics[tri]rotation[...
分类:
其他好文 时间:
2014-10-26 21:13:48
阅读次数:
475
作者: 吴吉庆Version: 1.0release: 2009-11-04update: 2009-11-04为什么用平铺式窗口管理器?什么是平铺式窗口管理器(tiling window manager)? 顾名思义,就是窗口都在屏幕上平铺开, 窗口与窗口之间没有重叠。 像我们通常用的窗口管理器,...
分类:
其他好文 时间:
2014-10-22 17:29:18
阅读次数:
169
Tri Tiling
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7887
Accepted: 4134
Description
In how many ways can you tile a 3xn rectangle with 2x1 dominoe...
分类:
其他好文 时间:
2014-10-20 17:27:38
阅读次数:
210
Implement insert and delete in a tri-nary tree. A tri-nary tree is much like a binary tree but with three child nodes for each parent instead of two -...
分类:
其他好文 时间:
2014-10-19 02:40:16
阅读次数:
236
1、将tri初始化为[1],当rowIndex=0时,return的结果是:1,而题目要求应该是:[1],故将tri初始化为[[1]],返回结果设置为tri[0]即可满足要求;2、最开始第二层循环是从1到i进行遍历,这样就不好控制数据的更新,因为更新第j个数据要用到原tri行的第j-1个数据,而此时...
分类:
其他好文 时间:
2014-10-17 21:55:39
阅读次数:
264
模拟操作:elem.trigger(event);elem.triggerHandler(event);triggerHandler的不同:不会引起事件的默认行为.trigger() 会操作 jQuery 对象匹配的所有元素,而 .triggerHandler() 只影响第一个匹配元素。由 .tri...
分类:
其他好文 时间:
2014-10-15 17:43:11
阅读次数:
153
http://poj.org/problem?id=2506#include #include #include #include using namespace std;int a[260][260];int main(){ int n,i,j; memset(a,0,sizeof(a...
分类:
其他好文 时间:
2014-10-09 01:53:57
阅读次数:
183
假设手里有N个串,和原文进行匹配,如果跑KMP,得把原文跑N次,实在是太费时间了。AC自动机借助于Trie的压缩功能,将多个串压成一个“树”,用这个树进行KMP,这就是贝尔实验室发明的AC自动机。AC自动机主要有三个操作;insert,getfail,print,find。insert的操作和Tri...
分类:
其他好文 时间:
2014-10-02 22:59:53
阅读次数:
204
#include#include using namespace std;enum TriangleTye{leftBottom,leftUp,rightBottom,rightUp};struct TriangleMatrix{ int* nums; int scale; Tri...
分类:
其他好文 时间:
2014-09-26 21:21:48
阅读次数:
183
Tri TilingTime Limit:1000MSMemory Limit:65536KTotal Submissions:7841Accepted:4113DescriptionIn how many ways can you tile a 3xn rectangle with 2x1 dom...
分类:
其他好文 时间:
2014-09-19 20:54:15
阅读次数:
187