克鲁斯卡尔
struct edge
{
int u, v, w;
}e[maxn];
int f[110];
bool cmp(edge a, edge b)
{
return a.w < b.w;
}
int find(int x)
{
if(x != f[x])
return f[x] = find(f[x]);
return f[x];
}
int MST()
{
int...
分类:
其他好文 时间:
2014-05-23 02:15:51
阅读次数:
267
误差输入点和原始信号输入点之间的通路增益对系统的影响
当R作用时,N=0;
系统是常见的二阶单位反馈系统
在阶跃信号作用下
闭环传递函数当s->0时
ess = s->0 s*E(s) = s*(R(s)-C(s))
于是稳态误差ess = 0
当N作用时,R =0;
系统是常见的...
分类:
其他好文 时间:
2014-05-23 01:18:07
阅读次数:
228
该Demo运行后,会显示所有你sd卡上的音乐文件列表, 并可以点击列表选择某一首歌曲进行播放。
运行效果:
源代码:
activity_audio_browser.xml:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schema...
分类:
移动开发 时间:
2014-05-23 00:34:40
阅读次数:
410
注意两点
1.通过android:checkedButton="@+id/lunch"而不是item中的 android:checked="true"设置的某人被选中状态
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
a...
分类:
其他好文 时间:
2014-05-23 00:04:35
阅读次数:
344
public class TraditionalThreadTest {
static class Outputer {
public void output1(String name) {
synchronized (Outputer.class) {
for (int i = 0; i < name.length(); i++) {
System.out.pri...
分类:
其他好文 时间:
2014-05-22 23:53:45
阅读次数:
442
话不多少,直接上代码,思路还是挺简单的。
UIWebView *webView = [[UIWebView alloc]initWithFrame:self.view.frame];
// HTML文件来自Project
// 步骤:path - > url - > request with url - > loadRequest
NSStrin...
分类:
编程语言 时间:
2014-05-22 23:53:05
阅读次数:
442
环境:win 2003 + oracle 10g
win 2003服务器物理内存4G
oracle10g SGA 1504M
事故背景:
调整SGA大小,因为OS的内存只有4G,建议SGA的大小不要超过60%,我调整为2G
SQL> alter systemset sga_max_size=2000m ...
分类:
其他好文 时间:
2014-05-22 23:46:00
阅读次数:
430
ocm session4数据仓库的管理,包括rman恢复,物化视图,外部表...
分类:
其他好文 时间:
2014-05-22 23:31:07
阅读次数:
400
代码越少比不意味着能耗越少,代码执行效率高也并不意味着能耗低,重要的是我们需要了解计算机构造,编程语言的原理,熟练搭配,争取做一个低功耗的程序员,节能的程序员,低功耗的程序等于执行程序耗资少,也等于减少碳排放。...
分类:
其他好文 时间:
2014-05-22 18:36:24
阅读次数:
275
//域登录 判断是内网还是外网请求
public function regip($ip){
$ip = ip2long($ip);
$net_a = ip2long('10.255.255.255') >> 24; //A类网预留ip的网络地址
$net_b = ip2long('172.31.255.255') >...
分类:
其他好文 时间:
2014-05-22 18:28:04
阅读次数:
249