0 1 2 3 4 5 6 7 8 //下标
{ 9 , 4 , 3 , 7 , 3 , 8 , 2 , 4 , 8 }//通过mergesort函数递归 来切 开始的时候fir=0, las=8, mid=4 所以下标0-4,分为前组 5-8分为后组
{ 9 , 4 , 3 , 7 , 3 }{ 8 , 2 , 4 , 8 }
{ 9 , 4 , 3 }{...
分类:
其他好文 时间:
2014-08-13 19:00:47
阅读次数:
160
在代码中使用到了函数的默认参数,在函数的定义和实现中都填写的默认参数,结果出现了错误:代码: 1 #ifndef FIRSTPAGE_H 2 #define FIRSTPAGE_H 3 4 #include 5 #include "ui_firstdialog.h" 6 7 class Fir...
分类:
编程语言 时间:
2014-08-08 15:58:36
阅读次数:
343
Prepare Hadoop Streaming Hadoop streaming allows you to create and run Map/Reduce jobs with any executable or script as the mapper and/or the reducer....
分类:
其他好文 时间:
2014-08-05 13:47:29
阅读次数:
426
应用: ① ② ③ 公式: 自适应滤波器中最重要的一个环节就是其系数的更新算法,如果不对自适应滤波器的系数更新的话,那么它就只是一个普通的FIR滤波器了。系数更新算法有很多种类,最基本、常用、简单的一种方法叫做NLMS(归一化最小均方),让我们先来看看它的数学公式表达: 设置自适应滤波器系数h的所有...
分类:
其他好文 时间:
2014-08-02 17:53:13
阅读次数:
309
EK算法:
int fir[maxn];
int u[maxm],v[maxm],cap[maxm],flow[maxm],nex[maxm];
int e_max;
int p[maxn],q[maxn],d[maxn];
void add_edge(int _u,int _v,int _w)
{
int e;
e=e_max++;
u[e]=_u;v[e]=_v;c...
分类:
其他好文 时间:
2014-07-29 14:20:08
阅读次数:
232
考察的是结构体的二次快排
#include
#include
typedef struct Node{
int fir;
int end;
}Node;
Node node[110];
int cmp(const void *a,const void *b)
{
return (*(node *)a).end>(*(node *)b).end?1:-1;
}
i...
分类:
其他好文 时间:
2014-07-28 16:15:23
阅读次数:
218
/** * 单链表节点类 * @param */class Node{ protected T value; protected Node next;}/** * 单链表类 * @param */public class ChainList{ private Node fir...
分类:
其他好文 时间:
2014-07-25 14:16:21
阅读次数:
253
Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the fir...
分类:
其他好文 时间:
2014-07-22 22:51:35
阅读次数:
146
FPGA面积优化
1 对于速度要求不是很高的情况下,我们可以把流水线设计成迭代的形式,从而重复利用FPGA功能相同的资源。
2 对于控制逻辑小于共享逻辑时,控制逻辑资源可以用来复用,例如FIR滤波器的实现过程中,乘法器是一个共享的资源,我们可以通过控制资源实现状态机,从而复用乘法器,当然这样也牺牲了面积。
3 对于具有类似计数单元的模块,可以采用全局的计数器,以减小面积。例如...
分类:
其他好文 时间:
2014-07-17 20:37:46
阅读次数:
329
题意:http://acdream.info/problem?pid=1112Problem DescriptionHere is Alice and Bob again !Alice and Bob are playing a game. There are several numbers.Fir...
分类:
其他好文 时间:
2014-07-14 23:51:56
阅读次数:
425