% 文件名:randlsbget.m % 程序员:余波 % 编写时间:2007.6.25 % 函数功能: 本函数将完成提取隐秘于上的秘密信息 % 输入格式举例:result=( scover.jpg ,56, secret.txt ,2001) % 参数说明: % output是信息隐藏后的图象 % len_total是秘密信息的长度 % goalfile是提取出的秘密信息文件 % key是随机间隔函数的密钥 % result是提取的信息 function result=randlsbget(output,len_total,goalfile,key) ste_cover=imread(output) ste_cover=double(ste_cover) % 判断嵌入信息量是否过大 [m,n]=size(ste_cover) frr=fopen(goalfile, a ) % p作为信息嵌入位计数器将信息序列写回文本文件 p=1 % 调用随机间隔函数选取像素点 [row,col]=randinterval(ste_cover,len_toal,key) for i=:len_toal if bitand(ste_cover(row(i),col(i)),1)==1 fwrite(frr,1, bit1 ) result(p,1) else fwrite(frr,0, bit1 ) result(p,1)=0 end if p==len_total break end p=p+1 end fclose(frr)
标签: randlsbget result scover 2007
上传时间: 2015-11-10
上传用户:yzhl1988
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
标签: represented integers group items
上传时间: 2016-01-17
上传用户:jeffery
构造一个简单程序设计语言的词法分析器,要求: 1) 含有保留字program, begin, end, var, integer, if, then, else, do, while. 2) 标识符和无符号的整常数,其中保留字和标识符不区分大小写. 3) 含有界符和运算符如下:+,-, (, ), =, >, <, , :, :=.,,。 4) 输出二元组。
上传时间: 2014-01-04
上传用户:离殇
词法分析 1 试验目的 设计,编制并调试一个此法分析程序,加深对此法分原理的理解. 2 试验要求 1)待分析的简单语言的词法 * 关键字: begin if then while do end 所有关键字都是小写. 2)运算符和界符: : = + * - / < <= <> > >= = ( ) # 3)其他单词是标识符(ID)和整数型常数(NUM),通过一下正规式定义: ID=letter (letter|digit)* NUM=digit digit* 4)空格由空白,制表符和换行符组成,空格一般用来分隔ID,NUM,运算符,界符和关键字,此法分析阶段通常被忽略. 3 各种单词符号对应的种别码如表所示
上传时间: 2017-01-08
上传用户:dongqiangqiang
汉诺塔!!! Simulate the movement of the Towers of Hanoi puzzle Bonus is possible for using animation eg. if n = 2 A→B A→C B→C if n = 3 A→C A→B C→B A→C B→A B→C A→C
标签: the animation Simulate movement
上传时间: 2017-02-11
上传用户:waizhang
编译课上做的小程序,用四种分析方法分别实现(LL1,算符优先,递归下降,简单词法分析) 完成对正则文法所描述的Pascal语言子集单词符号的词法分析程序。 <标识符>→字母︱ <标识符>字母︱ <标识符>数字 <无符号整数>→数字︱ <无符号整数>数字 <单字符分界符> →+ ︱- ︱* ︱ ︱(︱) <双字符分界符>→<大于>=︱<小于>=︱<小于>>︱<冒号>=︱<斜竖>* <小于>→< <等于>→= <大于>→> <冒号> →: <斜竖> →/ 识别语言的保留字 :begin end if then else for do while and or not
上传时间: 2014-06-29
上传用户:sjyy1001
Use the fast Fourier transform function fft to analyse following signal. Plot the original signal, and the magnitude of its spectrum linearly and logarithmically. Apply Hamming window to reduce the leakage. . The hamming window can be coded in Matlab as for n=1:N hamming(n)=0.54+0.46*cos((2*n-N+1)*pi/N); end; where N is the data length in the FFT.
标签: matlab fft
上传时间: 2015-11-23
上传用户:石灰岩123
实验源代码 //Warshall.cpp #include<stdio.h> void warshall(int k,int n) { int i , j, t; int temp[20][20]; for(int a=0;a<k;a++) { printf("请输入矩阵第%d 行元素:",a); for(int b=0;b<n;b++) { scanf ("%d",&temp[a][b]); } } for(i=0;i<k;i++){ for( j=0;j<k;j++){ if(temp[ j][i]==1) { for(t=0;t<n;t++) { temp[ j][t]=temp[i][t]||temp[ j][t]; } } } } printf("可传递闭包关系矩阵是:\n"); for(i=0;i<k;i++) { for( j=0;j<n;j++) { printf("%d", temp[i][ j]); } printf("\n"); } } void main() { printf("利用 Warshall 算法求二元关系的可传递闭包\n"); void warshall(int,int); int k , n; printf("请输入矩阵的行数 i: "); scanf("%d",&k); 四川大学实验报告 printf("请输入矩阵的列数 j: "); scanf("%d",&n); warshall(k,n); }
上传时间: 2016-06-27
上传用户:梁雪文以
对PL/0作以下修改和扩充,并使用测试用例验证: (1)修改单词:不等号# 改为 != ,只有!符号为非法单词,同时#成为非法 符号。 (2)增加单词(只实现词法分析部分): 保留字 ELSE,FOR,STEP,UNTIL,DO,RETURN 运算符 *=(TIMESBECOMES),/=(SLASHBECOMES),&(AND),||(OR) 注释符 //(NOTE) (3)增加条件语句的ELSE子句(实现语法语义目标代码), 要求:写出相关文法和语法图,分析语义规则的实现。
上传时间: 2020-06-30
上传用户:12345a
1. 目的 规范产品的PCB焊盘设计工艺, 规定PCB焊盘设计工艺的相关参数,使得PCB 的设计满足可生产性、可测试性、安规、EMC、EMI 等的技术规范要求,在产品设计过程中构建产品的工艺、技术、质量、成本优势。 2. 适用范围本规范适用于空调类电子产品的PCB 工艺设计,运用于但不限于PCB 的设计、PCB 批产工艺审查、单板工艺审查等活动。本规范之前的相关标准、规范的内容如与本规范的规定相抵触的,以本规范为准3.引用/参考标准或资料TS-S0902010001 <〈信息技术设备PCB 安规设计规范〉>TS—SOE0199001 <〈电子设备的强迫风冷热设计规范〉〉TS—SOE0199002 〈<电子设备的自然冷却热设计规范>>IEC60194 〈<印制板设计、制造与组装术语与定义>> (Printed Circuit Board designmanufacture and assembly-terms and definitions)IPC—A-600F 〈<印制板的验收条件>〉 (Acceptably of printed board)IEC609504。规范内容4。1焊盘的定义 通孔焊盘的外层形状通常为圆形、方形或椭圆形。具体尺寸定义详述如下,名词定义如图所示。1) 孔径尺寸:若实物管脚为圆形:孔径尺寸(直径)=实际管脚直径+0。20∽0。30mm(8。0∽12。0MIL)左右;若实物管脚为方形或矩形:孔径尺寸(直径)=实际管脚对角线的尺寸+0.10∽0。20mm(4.0∽8。0MIL)左右。2) 焊盘尺寸: 常规焊盘尺寸=孔径尺寸(直径)+0.50mm(20.0 MIL)左右.…………
标签: PCB
上传时间: 2022-05-24
上传用户:canderile