CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - 7.14
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - 7.14 - List
[
Compress-Decompress algrithms
]
yu
DL : 0
选择一幅黑白色类似于圆形的图片,运行后的A为黑色像素数,B为边界像素数,4*3.14*A/(B*B)即圆形度,此值越接近1,说明越像圆形,偏离1比如0.7,说明已经不算是圆形
Date
: 2008-10-13
Size
: 2.74kb
User
:
梁娟
[
Compress-Decompress algrithms
]
yu
DL : 0
选择一幅黑白色类似于圆形的图片,运行后的A为黑色像素数,B为边界像素数,4*3.14*A/(B*B)即圆形度,此值越接近1,说明越像圆形,偏离1比如0.7,说明已经不算是圆形-Select a site similar to a circular black and white pictures, run after A black pixels, B for border pixels, 4* 3.14* A/(B* B) that is circular degrees, this value is more close to 1, note more like a round, such as the 0.7 deviation from the one that has not a circular
Date
: 2025-12-18
Size
: 2kb
User
:
梁娟
[
Compress-Decompress algrithms
]
14-2
DL : 0
该运行实例中,令文本串长度为7,随机产生的文本串为0010100,分布在3个节点上;模式串长度为2,随机产生的模式串为01。最后,节点0和1上分别得到一个匹配位置。 -abc
Date
: 2025-12-18
Size
: 3kb
User
:
周晓牧
[
Compress-Decompress algrithms
]
DS4
DL : 0
设电文字符集D及各字符出现的概率F如下: D={a,b,c,d,e,f,g,h}(字符数n=8) F={5,29,7,8,14,23,3,11}( ) 编写完成下列功能的程序: ①构造关于F的Huffman树; ②求出并打印D总各字符的Huffman编码。 程序结构: 类型说明; 构造Huffman树的函数:Huffman_tree(H[m+1]); 求Huffman编码的函数:Huffman_code(code[n+1]); main() { 变量说明; 输入字符集D及频率F; 调用Huffman_tree(H); 调用Huffman_code(code); 打印编码; Y 继续? N 停止 } -设电文字符集D及各字符出现的概率F如下: D={a,b,c,d,e,f,g,h}(字符数n=8) F={5,29,7,8,14,23,3,11}( ) 编写完成下列功能的程序: ①构造关于F的Huffman树; ②求出并打印D总各字符的Huffman编码。 程序结构: 类型说明; 构造Huffman树的函数:Huffman_tree(H[m+1]); 求Huffman编码的函数:Huffman_code(code[n+1]); main() { 变量说明; 输入字符集D及频率F; 调用Huffman_tree(H); 调用Huffman_code(code); 打印编码; Y 继续? N 停止 }
Date
: 2025-12-18
Size
: 101kb
User
:
Kai
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.