虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

MAX-Int

  • 构造哈夫曼树 哈弗曼树中没有度为一的节点

    构造哈夫曼树 哈弗曼树中没有度为一的节点,是标准的二叉树,所以有n个叶子结点时,需要一个长度为2n-1的一维数组存储哈弗曼树的结点。 (1)、n个叶子节点只有weight权值,处理非叶子节点,从ht[i](ht[1]~ht[n-1])中找到ht[i].weight最小的两个节点ht[s1]和ht[s2],这就是Select(int n,int &s1,int & s2,HTNode *ht)函数完成的功能。 (2)、调用select函数,并将ht[s1]和ht[s2]作为ht[l]的左右子树,即ht[s1]和ht[s2]双亲节点为ht[l],新的根节点的权值为其左右子树权值之和, ht[l].weight=ht[s1].weight+ht[s2].weight

    标签: 节点

    上传时间: 2016-06-13

    上传用户:ztj182002

  • %radon transform clear all % N=800 n=1:N fs=200 t=n/fs x1=exp(j*2*pi*(5*t+0.5*5*t.^2

    %radon transform clear all % N=800 n=1:N fs=200 t=n/fs x1=exp(j*2*pi*(5*t+0.5*5*t.^2)) x2=exp(j*2*pi*(5*t+0.5*15*t.^2)) x=x1+x2 %N=length(x) % ambifunb(x ) %*****************************************RAT naf=ambifunb(x) htl(abs(naf)) % [wh,rho,theta]=htl(abs(naf)) colormap([0,0,0]) % xlabel( 极半径 ) % ylabel( 角度 ) %**************************************%找出峰值点的坐标,计算初始频率和调频斜率(正确) %找出峰值点的坐标 b=max(max(wh)) [u,a]=find(wh>=0.8*b)

    标签: transform radon clear fs

    上传时间: 2014-10-27

    上传用户:Yukiseop

  • 这是在学习数据库时写的一个程序

    这是在学习数据库时写的一个程序,采取DAO访问ACCESS数据库的方式 1:在程序中使用了CButtonStyle这个免费类库。 2:在InitButtonSytle()中,为了使代码更短小,用循环实现了位图按钮。 // 用循环实现必须手动改动Resource.h中的定义 // 具体细节请参看源代码 for ( int nIco = IDI_JUMP, nBtn = IDC_JUMP nBtn >= IDC_LISTITEM nIco--, nBtn-- ) { CButtonStyle *Button = ButtonList.RemoveTail() Button->SubclassDlgItem( nBtn, this ) Button->SetIcon( nIco ) Button->SetInactiveBgColor() Button->SetInactiveFgColor() Button->SetActiveBgColor() }

    标签: 数据库 程序

    上传时间: 2013-12-24

    上传用户:moshushi0009

  • fft源代码,#include "f2407_c.h" #include "math.h" #define N 32 // FFT变换的点数 extern void fft(void);

    fft源代码,#include "f2407_c.h" #include "math.h" #define N 32 // FFT变换的点数 extern void fft(void); extern void resave(void); interrupt void phantom(void); void sysinit(void); extern int input[2*N];

    标签: include void fft define

    上传时间: 2016-06-28

    上传用户:LouieWu

  • 复数运算#include<iostream.h> class Complex { public: Complex( double r =0, double i =0 ) C

    复数运算#include<iostream.h> class Complex { public: Complex( double r =0, double i =0 ) Complex(int a) { Real = a Image = 0 } void print() const friend Complex operator+ ( const Complex & c1, const Complex & c2 ) friend Complex operator- ( const Complex & c1, const Complex & c2 ) friend Complex operator- ( const Complex & c ) private: double Real, Image }

    标签: Complex double iostream include

    上传时间: 2016-06-30

    上传用户:wang5829

  • 介绍了一种采用硬件控制的自动数据采集系统的设计方法

    介绍了一种采用硬件控制的自动数据采集系统的设计方法,包括数字系统自顶向下的设计思路、Verilog HDL对系统硬件的描述和状态机的设计以及MAX+PLUSII开发软件的仿真。设计结果表明:该采集系统具有很高的实用价值,极大地提高了系统的信号处理能力。

    标签: 硬件 控制 数据采集系统 自动

    上传时间: 2016-07-01

    上传用户:czl10052678

  • AutomaticPropertiesDefaultValues Article_src.zip PropertyInfo[] props = o.GetType().GetPropert

    AutomaticPropertiesDefaultValues Article_src.zip PropertyInfo[] props = o.GetType().GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static) for (int i = 0 i < props.Length i++) { PropertyInfo prop = props[i] if (prop.GetCustomAttributes(true).Length > 0) { object[] defaultValueAttribute = prop.GetCustomAttributes(typeof(DefaultValueAttribute), true) if (defaultValueAttribute != null) { DefaultValueAttribute dva = defaultValueAttribute[0] as DefaultValueAttribute if(dva != null) prop.SetValue(o, dva.Value, null) }

    标签: AutomaticPropertiesDefaultValues PropertyInfo Article_src GetPropert

    上传时间: 2014-11-22

    上传用户:xaijhqx

  • 我所采用的内存管理思想是链表管理思想

    我所采用的内存管理思想是链表管理思想,内存分配方案是最佳适应方案(best fit)。其主要的数据结构为 struct node { char* p int memosize int flag struct node* next } 这是一个链表的结点的数据结构,用它来管理内存的分配与回收。P 表示所指的分配的内存的首地址,memosize 表示分配的内存块的大小,flag 为一个标志量,表示内存块是否被占用。用 1 和 0 来表示被占用和不被占用。next 表示下一个结点的首地址。 内存管理包括一个分配内存的mm_request(unsigned int)函数,一个初始化所要管理的内存的mm_init()函数,一个空闲列表排序函数sort(),一个释放内存的mm_release(void* )函数和一个判断内存是否被占用的IsFree(int)函数。

    标签: 内存管理

    上传时间: 2016-07-06

    上传用户:qunquan

  • package query public class LinkQuery { private Node front private Node vear public Link

    package query public class LinkQuery { private Node front private Node vear public LinkQuery() { this.front=null this.vear=null } public void add(int i) { Node newNode=new Node(i) if(vear==null && front==null) { vear=newNode front=newNode return } vear.next=newNode vear=newNode } public int remove() { if(this.front==null) { System.out.println("队是空的,无法取") return -1 } int temp=this.front.data this.front=this.front.next if(this.front==null) { this.vear=null }

    标签: private public Node LinkQuery

    上传时间: 2016-07-08

    上传用户:天诚24

  • 密码算法程序包miracl contains all the source code for the latest version of MIRACL: a Multiprecision Int

    密码算法程序包miracl contains all the source code for the latest version of MIRACL: a Multiprecision Integer and Rational Arithmetic C/C++ library.

    标签: Multiprecision the contains version

    上传时间: 2016-07-08

    上传用户:xinyuzhiqiwuwu