#include<iostream> using namespace std int main() { unsigned long x,warcraft,war,l cin> x while(x) { unsigned long *p=new unsigned long[x+1] if(p==NULL) { cerr<<"error!"<<endl abort() } for(warcraft=0 warcraft<=x warcraft++) *(p+warcraft)=0 *p=1 for(warcraft=0 warcraft<x warcraft++) { cout<<*p<<" " war=*p for(l=1 x>1 l++) { if(*(p+l)==0) { cout<<endl *(p+l)=1 break } else { cout<<*(p+l)<<" " *(p+l)=war+*(p+l) war=*(p+l)-war } } } cout<<endl delete [] p cin>>x } return 0 }
標簽: namespace iostream unsigned warcraft
上傳時間: 2015-12-12
上傳用戶:manlian
MPEG4 碼率控制 VM18 改進型算法,A New Rate Control Algorithm for MPEG-4 Video Coding
上傳時間: 2014-11-28
上傳用戶:qiaoyue
H264 的碼率控制標準算法 TMN8,rate control method for h.264
上傳時間: 2015-12-12
上傳用戶:jeffery
Modbus串口通訊協議通訊源代碼,采用C開發,UartWaitFuc作為入口文件,提供從bit到double word的讀寫操作功能
上傳時間: 2015-12-12
上傳用戶:huql11633
Author: wei liu Summary: simulation of binary and non-binary bch decoder MATLAB Release: R14SP1 Required Products: Communications Toolbox Description: simulation of binary bch decoding algorithm for bch(n, k) with t bits error correction capability.
標簽: simulation non-binary Summary Release
上傳時間: 2014-01-10
上傳用戶:frank1234
This application report describes the use of Timer_A3 to decode RC5 and SIRC TV IR remote control signals. The decoder described in this report is interrupt-driven and operates a background function using specific features the Timer_A3. Only a small portion of the MSP430 CPU?s nonreal-time resources is used. Specific hardware bit-latching capabilities of the Timer_A3 module are used for real-time decoding of the IR data signal, independent and asynchronous to the CPU. CPU activity and power consumption are kept to an absolute minimum level. The Timer_A3 decoder implementation also allows other tasks to occur simultaneously if required. The solutions provided are written specifically for MSP430x11x(1) and MSP430x12x derivatives, but can be adapted to any other MSP430 incorporating Timer_A3. 電視遙控器設計基於MSP430
標簽: application describes Timer_A control
上傳時間: 2014-01-01
上傳用戶:qq21508895
AES Core Modules In this document I describe components designated to encoding and decoding using AES. aes enc — parametrizable component which can encrypt input data, using 128, 192 and 256 bit key, • aes dec — parametrizable component which can decrypt input data, using 128, 192 and 256 bit key, • key expansion — parametrizable component which can produce key expansion, using 128, 192 and 256 bit key,
標簽: components designated document describe
上傳時間: 2015-12-22
上傳用戶:Late_Li
This is a collection of m-files I created to complete a research project into the DC components of various encoding techniques. Eight of the files create random bit sequences that conform to their coding requirements. The others were files I found useful in the scope of the project and supplement the generating m-files.
標簽: collection components complete research
上傳時間: 2015-12-24
上傳用戶:lnnn30
We address the problem of blind carrier frequency-offset (CFO) estimation in quadrature amplitude modulation, phase-shift keying, and pulse amplitude modulation communications systems.We study the performance of a standard CFO estimate, which consists of first raising the received signal to the Mth power, where M is an integer depending on the type and size of the symbol constellation, and then applying the nonlinear least squares (NLLS) estimation approach. At low signal-to noise ratio (SNR), the NLLS method fails to provide an accurate CFO estimate because of the presence of outliers. In this letter, we derive an approximate closed-form expression for the outlier probability. This enables us to predict the mean-square error (MSE) on CFO estimation for all SNR values. For a given SNR, the new results also give insight into the minimum number of samples required in the CFO estimation procedure, in order to ensure that the MSE on estimation is not significantly affected by the outliers.
標簽: frequency-offset estimation quadrature amplitude
上傳時間: 2014-01-22
上傳用戶:牛布牛
Stellaris Luminary Micro 系列之 DK-LM3S101 多個學習范例全都是基于 Keil 工程版的范例, 附 LM3S101_Kit 原理圖,而范例內容列舉如下: 1.BitBand 2.Comparator 3.GPIO_JTAG 4.GPIO_LED 5.Hello 6.Interrupts 7.QS_DK_LM3S101 8.SSI_Atmel 9.Timers 10.UART_Out 11.WatchDog 等
標簽: Stellaris 101 Luminary DK-LM
上傳時間: 2015-12-31
上傳用戶:qq1604324866