MATLAB中的常用函数1. 特殊变量与常数主题词意义主题词意义ans计算结果的变量名computer确定运行的计算机eps浮点相对精度Inf无穷大I虚数单位inputname输入参数名NaN非数nargin输入参数个数nargout输出参数的数目pi圆周率nargoutchk有效的输出参数数目re...
分类:
其他好文 时间:
2014-08-19 14:14:54
阅读次数:
417
The 3n + 1 problem
Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld
& %llu
Description
Problems in Computer Science are often classified as belonging to a certain class of ...
分类:
其他好文 时间:
2014-08-19 12:57:54
阅读次数:
248
Summation of sequence of integersis always a common problem in Computer Science. Rather than computing blindly,some intelligent techniques make the task simpler. Here you have to find thesummation of ...
分类:
其他好文 时间:
2014-08-18 22:10:23
阅读次数:
314
题目大意:
求出每一个结点距离叶子节点的最大距离。
思路分析:
假设1为树的根。
通过一遍dfs 可以求出每个节点到儿子节点上的叶子节点的最远距离。
然后我们要做的就是如果更新答案。
问题就是如果我们开始求的最大值本来就是一个儿子更新的,如果再深搜的话又会造成重复更新。
所以就记录两个值,最大值和次大值。
然后不断更新这两个值。
#include
#includ...
分类:
其他好文 时间:
2014-08-18 18:44:32
阅读次数:
225
在 Windows Mobile Device Center 处点击 Mobile Device Settings, Connection Settings, 选择 This computer connects to => The Internet 按 [OK] 退出在 WM 设备上,设置 => 连...
《programming computer vision with python 》中denoise 算法有误,从网上好了可用的代码贴上,以便以后使用。书中错误的代码:def denoise(im,U_init,tolerance=0.1,tau=0.125,tv_weight=100): m...
分类:
编程语言 时间:
2014-08-18 14:22:32
阅读次数:
429
Background
Problems that require minimum paths through some domain appear in many different areas of computer science. For example, one of the constraints in VLSI routing problems is minimizing wire ...
分类:
其他好文 时间:
2014-08-18 00:20:23
阅读次数:
331
1.硬盘的查看方式;
2.获得硬盘SCSI(Small Computer System Interface)ID;
3.绑定共享存储;
4.绑定共享存储的脚本;
分类:
系统相关 时间:
2014-08-17 18:15:42
阅读次数:
415
A computer-implemented method and apparatus in a computer system of processing data generated by a first application program in a second application p...
分类:
移动开发 时间:
2014-08-16 22:21:11
阅读次数:
345
Detect the Virus
Time Limit: 2 Seconds Memory Limit: 65536 KB
One day, Nobita found that his computer is extremely slow. After several hours' work, he finally found that it was a virus that...
分类:
其他好文 时间:
2014-08-16 09:44:50
阅读次数:
377