% 文件名: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