虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

51<b>编程</b>器

  • 一:需求分析 1. 问题描述 魔王总是使用自己的一种非常精练而抽象的语言讲话,没人能听懂,但他的语言是可逐步解释成人能听懂的语言,因为他的语言是由以下两种形式的规则由人的语言逐步抽象上去的: -

    一:需求分析 1. 问题描述 魔王总是使用自己的一种非常精练而抽象的语言讲话,没人能听懂,但他的语言是可逐步解释成人能听懂的语言,因为他的语言是由以下两种形式的规则由人的语言逐步抽象上去的: ----------------------------------------------------------- (1) a---> (B1)(B2)....(Bm) (2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o] ----------------------------------------------------------- 在这两种形式中,从左到右均表示解释.试写一个魔王语言的解释系统,把 他的话解释成人能听得懂的话. 2. 基本要求: 用下述两条具体规则和上述规则形式(2)实现.设大写字母表示魔王语言的词汇 小写字母表示人的语言的词汇 希腊字母表示可以用大写字母或小写字母代换的变量.魔王语言可含人的词汇. (1) B --> tAdA (2) A --> sae 3. 测试数据: B(ehnxgz)B 解释成 tsaedsaeezegexenehetsaedsae若将小写字母与汉字建立下表所示的对应关系,则魔王说的话是:"天上一只鹅地上一只鹅鹅追鹅赶鹅下鹅蛋鹅恨鹅天上一只鹅地上一只鹅". | t | d | s | a | e | z | g | x | n | h | | 天 | 地 | 上 | 一只| 鹅 | 追 | 赶 | 下 | 蛋 | 恨 |

    标签: 语言 抽象

    上传时间: 2014-12-02

    上传用户:jkhjkh1982

  • We have a group of N items (represented by integers from 1 to N), and we know that there is some tot

    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

  • The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical)

    The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).

    标签: converts Toolbox complex logical

    上传时间: 2016-02-12

    上传用户:a673761058

  • 项目名称:测量放大器 压缩包里面含有设计测量放大器的c源程序(开发环境为keil)

    项目名称:测量放大器 压缩包里面含有设计测量放大器的c源程序(开发环境为keil),目标代码(可直接烧入AT89S52芯片运行),电路原理图等。 源程序含有软件模块:4×4矩阵键盘扫描,led显示,可编程信号衰减。 硬件模块:采用医学生理信号检测仪器的前置放大器的结构,可放大极其微弱信号,譬如毫伏级心电信号。在此基础上加入可编程衰减器。 实现功能:通过按键输入微弱信号的放大倍数,可以相应放大微弱信号。设置倍数时,有四个LED显示倍数,按“千”,“百”“十”,“个”顺序设置,待设置的位会闪烁等待设置。放大倍数为1~1000倍。,譬如可以把1mv的微弱电压放大至1v,误差小于0.3%。用到的芯片有at89s52,ADC7520,opa177,74ls245,74ls138等。纯属原创。

    标签: keil 测量放大器 项目 开发环境

    上传时间: 2016-04-24

    上传用户:FreeSky

  • KX_DVP3F型FPGA应用板/开发板(全套)包括:  CycloneII系列FPGA EP2C8Q208C8 40万们

    KX_DVP3F型FPGA应用板/开发板(全套)包括:  CycloneII系列FPGA EP2C8Q208C8 40万们,含20M-270MHz锁相环2个。  RS232串行接口;VGA视频口  高速SRAM 512KB。可用于语音处理,NiosII运行等。  配置Flash EPCS2, 10万次烧写周期 。  isp单片机T89S8253:MCS51兼容单片机,12KB在系统可编程Flash ROM,10万次烧 写周期;2KB在系统可编程EEPROM,10万次烧写周期;2.7V-5.5V工作电压;0-24MHz 工作时钟;  2数码管显示器、20MHz时钟源(可通过FPGA中的锁相环倍频);  液晶显示屏(20字X4行);  工作电源5V、3.3V、1.2V混合电压源,良好电磁兼容性主板。  配套示例程序、资料、编程软件光盘等。  4X4键盘,4普通按键,8可锁按键,8发光管  BlasterMV编程下载器和并口通信线,可完成FPGA编程下载和isp单片机的编程。KX_DV3F开发板的源程序

    标签: FPGA CycloneII KX_DVP 61592

    上传时间: 2014-01-08

    上传用户:aa17807091

  • 汉诺塔!!! Simulate the movement of the Towers of Hanoi puzzle Bonus is possible for using animation

    汉诺塔!!! 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

  • 通过红外遥控选择音乐

    通过红外遥控选择音乐,经过51控制蜂鸣器唱歌。

    标签: 红外遥控

    上传时间: 2017-03-01

    上传用户:lingzhichao

  • DSP5416时钟配制

    DSP5416时钟配制,片内定时器是一个软件可编程定时器,可以用来产生周期的中断信号。 定时器主要由 3 个寄存器所组成:定时器寄存器(TIM) 、定时器周期寄存器(PRD)和时器控制寄存器(TCR) 。这 3 个寄存器都有映象寄存器,它们在数据存储器中的地址分别24H、25H 和 26H。TIM 是一个递减计数器;PRD 中存放计数值;TCR 中有定时器的控制和状态位

    标签: 5416 DSP 时钟

    上传时间: 2014-01-05

    上传用户:GavinNeko

  • 将魔王的语言抽象为人类的语言:魔王语言由以下两种规则由人的语言逐步抽象上去的:α-〉β1β2β3…βm ;θδ1δ2…-〉θδnθδn-1…θδ1 设大写字母表示魔王的语言

    将魔王的语言抽象为人类的语言:魔王语言由以下两种规则由人的语言逐步抽象上去的:α-〉β1β2β3…βm ;θδ1δ2…-〉θδnθδn-1…θδ1 设大写字母表示魔王的语言,小写字母表示人的语言B-〉tAdA,A-〉sae,eg:B(ehnxgz)B解释为tsaedsaeezegexenehetsaedsae对应的话是:“天上一只鹅地上一只鹅鹅追鹅赶鹅下鹅蛋鹅恨鹅天上一只鹅地上一只鹅”。(t-天d-地s-上a-一只e-鹅z-追g-赶x-下n-蛋h-恨)

    标签: 语言 抽象 字母

    上传时间: 2013-12-19

    上传用户:aix008

  • 多路巡回检测

    多路巡回检测,已成功调试,12887芯片制作,51单片机编程

    标签: 多路 巡回检测

    上传时间: 2017-06-10

    上传用户:edisonfather