The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition
标签: government streamline important alphabet
上传时间: 2015-06-09
上传用户:weixiao99
实现(2,1,7)卷积编码以及相应的viterbi译码
标签:
上传时间: 2015-06-14
上传用户:linlin
提供了一个硬判决的viterbi译码器(2,1,3) 有源程序及算法描述,未成定稿,只供参考 (vhdl 语言描述)
上传时间: 2015-07-16
上传用户:天诚24
OSInit() OSTaskCreate(Task1, &task_1, &TaskStk[0][TASK_STK_SIZE-1], 1) OSTaskCreate(Task2, &task_2, &TaskStk[1][TASK_STK_SIZE-1], 2) OSTaskCreate(Task3, &task_3, &TaskStk[2][TASK_STK_SIZE-1], 3) OSStart() return 0
标签: OSTaskCreate Task TASK_STK_SIZE TaskStk
上传时间: 2015-09-10
上传用户:电子世界
上下文无关文法(Context-Free Grammar, CFG)是一个4元组G=(V, T, S, P),其中,V和T是不相交的有限集,S∈V,P是一组有限的产生式规则集,形如A→α,其中A∈V,且α∈(V∪T)*。V的元素称为非终结符,T的元素称为终结符,S是一个特殊的非终结符,称为文法开始符。 设G=(V, T, S, P)是一个CFG,则G产生的语言是所有可由G产生的字符串组成的集合,即L(G)={x∈T* | Sx}。一个语言L是上下文无关语言(Context-Free Language, CFL),当且仅当存在一个CFG G,使得L=L(G)。 *⇒ 例如,设文法G:S→AB A→aA|a B→bB|b 则L(G)={a^nb^m | n,m>=1} 其中非终结符都是大写字母,开始符都是S,终结符都是小写字母。
标签: Context-Free Grammar CFG
上传时间: 2013-12-10
上传用户:gaojiao1999
提供实现了(2,1,7)卷积码的维特比译码的源程序,采用了最大似然算法,介绍了软判决维特比译码算法过程的三个步骤:初始化、度量更新和回溯译码。
标签:
上传时间: 2015-11-02
上传用户:梧桐
The latest release, ver 1.16 of the ARM (7TDMI, 720T, 920T) port for uC/OS-II V2.61 (and higher) includes ports for the following platforms: 1. S3c2410x ( ARM920T from Samsung ) on SMDK2410 eval board. 2. LPC2xxx - LPC210x & LPC213x ( ARM7TDMI-S from Philips ) on IAR s Kickstart & OLIMEX boards. 3. EP7312 ( ARM720T from CIRRUS ) on CDK238 eval board. Should also work on boards based on the CS89712. Tool-chains: GCC 3.3.2, ADS 1.2 & SDT 2.51. Op-modes: Pure ARM & ARM-THUMB interworked. Endianess: Big endian & Little endian modes
标签: release latest higher OS-II
上传时间: 2014-01-26
上传用户:小眼睛LSL
SMC1602A(16*2)模拟口线接线方式 连接线图: --------------------------------------------------- |LCM-----51 | LCM-----51 | LCM------51 | --------------------------------------------------| |DB0-----P0.0 | DB4-----P0.4 | RW-------P2.5 | |DB1-----P0.1 | DB5-----P0.5 | RS-------P2.6 | |DB2-----P0.2 | DB6-----P0.6 | E--------P2.7 | |DB3-----P0.3 | DB7-----P0.7 | VLCD接1K电阻到GND| --------------------------------------------------- Keyboard接线 PS/2--------51 1 DATA------P3.4 3 GND 4 VCC 5 CLK-------P3.3 接在51的外部中断,触发方式为低电平 本程序源码只供学习参考,不得应用于商业用途,如有需要请联系作者。
上传时间: 2014-01-05
上传用户:gaojiao1999
卷积码(2,1,6),完整的工程文件,已经调试通过
标签: 卷积码
上传时间: 2015-12-04
上传用户:561596
车间调度(matlab).rar 1、初始化参数: 族群 60,循环500次,交叉0。8 变异 0。6 代沟0。9 2、初始化群:按调度优先级编码,比如 3个零件,每个零件3个工序,就初始化: 1、3、4、5、6、7、8、9、2 2、1、3、4、5、6、7、8、9 等等
上传时间: 2014-01-21
上传用户:lijinchuan