-
用matlab写的huffman编码程序
1)输入下面几种符号,并调用概率计算函数prob计算其出现的概率,初始为四棵不同的小二叉树; a(10) b(20) c(30) d(40)2)在1中得到的树里找到概率值最小的两棵树,将他们分别作为左、右子树连成一棵大一点的二叉树,该二叉树的概率值为两棵树概率值之和。2的做法,直到所有的符号都连入树中。
- 2022-01-21 23:52:23下载
- 积分:1
-
Quicksort
快速排序&huffman-Quicksort
- 2022-09-05 00:25:03下载
- 积分:1
-
generate random passwords, user
生成随机密码,好用不错-generate random passwords, user-friendly good
- 2022-06-02 07:16:46下载
- 积分:1
-
各种排序算法小结
各种排序算法小结-various sorting algorithm Summary
- 2022-02-20 17:17:33下载
- 积分:1
-
(我的课程报告)基本卡尔曼滤波实现的代码
可绘制模型状态、状态预报、模型输出、输出预报。程序中可改变某些参数观察变化...
(我的课程报告)基本卡尔曼滤波实现的代码
可绘制模型状态、状态预报、模型输出、输出预报。程序中可改变某些参数观察变化-my homework:a matlab program about kalman filter
- 2022-12-05 20:45:03下载
- 积分:1
-
使用希尔排序法对一维数组排序
希尔排序(Shell Sort)是插入排序的一种。是针对直接插入排序算法的改进。该方法又称缩小增量排序,因DL.Shell于1959年提出而得名。本实例演示如何使用希尔排序法对一维数组进行排序
- 2022-03-19 14:51:18下载
- 积分:1
-
高斯
GAUSS-SEIDEL法的Matlab程序-A programm realizing GUASS-SEIDEL algorithm,written in Matlab.
- 2022-01-29 00:52:29下载
- 积分:1
-
这是一个简单的演示如何评价文本的数学表达式
This a simple demo of how to evaluate mathematical expressions in text
format, including provision for variables and functions. The code consists of
three simple classes: 1) Calc - which does the main calculations, 2) Stack -
which is used to push and pop intermediate operators and numbers and 3)
Symbol Table. The symbol table is a collection of calc symbols, a type structure
consisting of various elements, including the expression name, function name,
and the final value of the expression The evaluation procedure is done in three
steps: 1) simplify the expression by removing all the elements within () and
storing them in subexpressions within the symbol table. 2) Each of these sub
expressions are then converted to RPN format (Reverse polar notation) and
evaluated 3) Finally, the main expression is converted to RPN and evaluated-This is a simple demo of how to evaluate mathematical expressions in text
format, including provision for variables and functi
- 2022-02-20 06:26:41下载
- 积分:1
-
信息检索袋
应用背景该代码执行创建包的话,随着堵塞和停用词去除, ; ;计算机视觉词袋模型 ;(弓模型)可以应用于 ;图像分类,通过处理图像的特征词。在文档分类中,一个单词的袋子,是一个稀疏向量的单词的出现计数,这是,一个稀疏的,直方图和,通过词汇。计算机视觉,一个视觉词汇的袋,是一个具有局部图像特征的词汇的出现计数的向量。关键技术Python是随着使用的词典在Python。用弓模型来表示图像,图像可以被视为文档。同样,“文字”在图像中需要被定义。要做到这一点,它通常包括以下三个步骤: ;特征检测、特征描述,并生成。[ 1 ] ;一个弓模型的定义可以是“直方图表示基于独立特征”。[ 2 ] ;基于内容的图像检索(CBIR)出现在这个图像表示技术的早期采用者。[ 3 ]
- 2023-04-25 02:50:03下载
- 积分:1
-
simulated annealing algorithm in the loan portfolio optimization of
模拟退火算法在贷款组合优化决策中的应用-simulated annealing algorithm in the loan portfolio optimization of
- 2022-11-22 22:35:03下载
- 积分:1