搜索资源列表
nearpiont
- 最接近点对问题是求二维坐标中的点对问题,该算法是为了将平面上点集S线性分割为大小大致相等的2个子集S1和S2,我们选取一垂直线l:x=m来作为分割直线。其中m为S中各点x坐标的中位数。由此将S分割为S1={p∈S|px≤m}和S2={p∈S|px>m}。从而使S1和S2分别位于直线l的左侧和右侧,且S=S1∪S2 。由于m是S中各点x坐标值的中位数,因此S1和S2中的点数大致相等。 递归地在S1和S2上解最接近点对问题,我们分别得到S1和S2中的最小距离δ1和δ2。现设δ=min(δ
cstring
- 定义一个字符串类String,其私有成员为一个字符串指针。设计构造函数,拷贝构造函数,析构函数,设置新值函数Set, 打印成员值函数Print。借助此String类,将操作符"=="、">"、"<"的重载函数设置为String类的成员函数,实现对操作符"=="、">"、"<"的重载,使之能直接比较两个String类类型的字符串的大小,设计各种情况调用此三个重载操作符。-definition of a string type String, its private members as a str
MCRGSA
- MCRGSA------组播路由问题遗传模拟退火算法 %M-----------遗传算法进化代数 %N-----------种群规模,取偶数 %Pm----------变异概率调节参数 %K-----------同一温度下状态跳转次数 %t0----------初始温度 %alpha-------降温系数 %beta--------浓度均衡系数 %ROUTES------备选路径集 %Num---------到各节点的备选路径数目 %Cost-------
updatesimplexmethod
- 单纯形法是一种不错的随机搜索算法,但是其受初始值的选取,步长大小的影响较大,容易陷入局部收敛。程序中列出了基本单纯形法,和几种改进的单纯形法,包括变步长的单纯形法,单纯形加遗传算法等。-simplex method is a good random search algorithm, but its initial value by the selection, step in a larger size, easy to be trapped into local convergence. P
Untitled1
- 【问题描述】 设计一个利用哈夫曼算法的编码和译码系统,重复地显示并处理以下项目,直到选择退出为止。 【基本要求】 (1)初始化:键盘输入字符集大小n、n个字符和n个权值,建立哈夫曼树; (2)编码:利用建好的哈夫曼树生成哈夫曼编码; (3)输出编码; (4)设字符集及频度如下表: 字符:A B C D E F 频度:4 9 23 2 17 15 字符:G H I J K 频度:1 2 3 3 4 -【Descr iption】 d
Haffmancode
- 课程设计: 1.求出在一个n×n的棋盘上,放置n个不能互相捕捉的国际象棋“皇后”的所有布局。 2.设计一个利用哈夫曼算法的编码和译码系统,重复地显示并处理以下项目,直到选择退出为止。 【基本要求】 1) 将权值数据存放在数据文件(文件名为data.txt,位于执行程序的当前目录中) 2) 分别采用动态和静态存储结构 3) 初始化:键盘输入字符集大小n、n个字符和n个权值,建立哈夫曼树; 4) 编码:利用建好的哈夫曼树生成哈夫曼编码; 5) 输出编码; 6)
graham
- 构造凸包接口函数,传入原始点集大小n,点集p(p原有顺序被打乱!),返回凸包大小,凸包的点在convex中-Construct convex hull interface function, introduced the original point set size n, the point set p (p the original order has been disrupted!), Returns the size of the convex hull, convex hull of
05
- 1.接受原始数据:从终端读入字符集大小n,n个字符和n个权值,建立哈夫曼树。2.编码:利用已建立好的哈夫曼树,对文件中的正文进行编码。3.译码:利用已建立好的哈夫曼树将代码进行译码。4.打印编码规则:即字符与编码的一一对应关系。-1. Accept the raw data: From the terminal reads the character set size n, n characters, and n-weights, the establishment of Huffman tre
clusterequal
- 将一个数据集通过聚类划分成若干大小相等的子集-decompositioning a large set into many subsets of equal set-size
huffman
- 从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树并将它存于文件hfmTree中。将已在内存中的哈夫曼树以直观的方式(比如树)显示在终端上; -Read from the terminal character set size n, and n-n-weight character and to build the Huffman tree and store it in the file hfmTree. Will have the Huffman tree in memory
huffman
- 从文件中读入字符集大小n,以及n个字符和n个权值。构建哈夫曼树,对每个字符生成哈夫曼编码。从文件中读入需编码的字符串,利用哈夫曼编码,对字符串进行编码,编码结果保存在文件。-The character read from the file set size n, and n-n character and the right values. Construction of Huffman tree generated Huffman code for each character. Read f
5901f92db5a9
- 一个完整的系统应具有以下功能: (1) I:初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立赫夫曼树,并将它存于文件hfmTree中。 (2) E:编码(Encoding)。利用已建好的赫夫曼树(如不在内存,则从文件hfmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件CodeFile中。 (3) D:译码(Decoding)。利用已建好的赫夫曼树将文件CodeFile中的代码进行译码,结果存入文件Textfil
ELM
- 训练集/测试集产生 load spectra_data.mat 随机产生训练集和测试集 temp = randperm(size(NIR,1)) 训练集——50个样本 P_train = NIR(temp(1:50),:) T_train = octane(temp(1:50),:) 测试集——10个样本 P_test = NIR(temp(51:end),:) T_test = octane(temp(51:end),:) N = si
Ed-hoffmann-decoder-
- 设计一个哈弗曼编译码器,功能如下: (1) 初始化:从终端读入字符集大小n,n个字符和n个权值,建立哈夫曼树,存入文件hfmTree (2) 编码:利用已建立好的哈夫曼树,对文件中的正文进行编码,存入文件CodeFile (3) 译码:利用已建立好的哈夫曼树将代码进行译码;或对目标正文编码,存入文件TextFile (4) 印代码文件:50个每行,存入文件CodePrin (5) 打印哈弗曼树:t同时将字符形式的哈弗曼树存入文件TreePrint -Design a Ha
CollisionSetSizeEstimate
- this the program for collision set size estimator simlated in matlab environment-this is the program for collision set size estimator simlated in matlab environment
set allows for an OFDM transmission
- This simulation scr ipt set allows for an OFDM transmission to be simulated. Imagetx.m generates the OFDM signal, saving it as a windows WAV file. This allows the OFDM signal to be played out a sound card and recorded back. Imagerx.m decodes the
Techniques-of-matching-images
- Variance map of an image is calculated by taking a square window of a set size around a center pixel, and calculating the variance of the values of the pixels. Census Transform is a form of non-parametric local transform (i.e. relies on the relativ
0203
- 利用赫夫曼树的编码思想,构造一个完整的赫夫曼编码系统。 要求如下: ①从键盘读入字符集大小n,以及n个字符和n个权值,建立赫夫曼树,然后对赫夫曼树进行编码,输出结果。 ②使用上述字符集创建一个任意的明文,对该明文进行编码,输出该明文的电文序列。 ③利用上述创建的编码集合,输入任意的电文序列,输出该电文的明文。-Use Huffman coding tree thinking, construct a complete Huffman coding syst
CODE
- Frame collision set size: code describe different tag estimation functions: H.Vogt maximum likelihood-Frame collision set size: code describe different tag estimation functions: H.Vogt maximum likelihood...
frame set size
- frame set size:code for estimation rfid function