一:需求分析 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
婴儿出生信息登记系统 .按键1可以录入一条婴儿材料,其中婴儿母亲、婴儿性别和护理人员代码不能为空,其他数据如果需要为空请输入 / 。 2.按键2可以查看婴儿材料保存文件里面的所有婴儿材料。 3.按键3可以通过输入婴儿父母姓名、婴儿性别、婴儿出生医院或者婴儿出生日期进行查找。 4.按键4可以显示超低重婴儿材料,超低重婴儿标准是低于1kg。 5.按键5可以通过输入婴儿编号确定需要修改材料的婴儿,然后可以通过输入所需修改的项目,对婴儿材料除婴儿编号以外的数据进行修改。 6.按键6可以通过输入婴儿编号来确定要删除的婴儿材料。 7.按键7查看使用说明。 8.按键8退出婴儿信息登记系统。
上传时间: 2013-12-24
上传用户:BIBI
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
问题描述 给定n个矩阵A1,A2,…,An,其中,Ai与Aj+1是可乘的,i=1,2,…,n-1。 你的任务是要确定矩阵连乘的运算次序,使计算这n个矩阵的连乘积A1A2…An时总的元素乘法次数达到最少。 例如:3个矩阵A1,A2,A3,阶分别为10×100、100×5、5×50,计算连乘积A1A2A3时按(A1A2)A3所需的元素乘法次数达到最少,为7500次。
标签: 矩阵
上传时间: 2013-12-20
上传用户:banyou
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
S60-programming-a-tutorial-guide-symbian. 1 Introduction to Mobile-Phone Systems 1 1.1 Wireless Technologies 1 1.2 Cellular Systems 2 1.3 Elements of a Mobile-Phone System 4 1.4 Keeping Users’ Calls Separate 5 1.5 Multipath Propagation 7 1.6 2G Mobile-Phone Systems 9 1.7 GPRS Systems 10 1.8 3G Mobile-Phone Systems 13 1.9 IP Multimedia Subsystem 16 1.10 Mobile-Phone Hardware 17 2 Introduction to Symbian OS 19 Introduction 19 2.1 The Development of Symbian OS 20 2.2 Symbian OS User Interfaces 21 2.3 Coding Idioms 23 2.4 Tool Chains 28 3 The Console Application 33 Introduction 33 3.1 Creating a Console Application 33 3.2 CBase Classes 38 3.3 Protecting Memory 38 3.4 Putting It Into Practice: An Engine for a Simple Card Game 46 Summary 56
标签: programming-a-tutorial-guide-symb Introduction Mobile-Phone Wireless
上传时间: 2016-05-14
上传用户:dianxin61
通过外部的键盘可以对系统进行复位控制和显示档位选择,不同的档位选择不同的输入电压范围(0~5、5~50)。 (1)控制部分:采用FPGA为控制核心 (2)AD转换部分:采用逐次逼近(比较)型AD转换器ADC0809; (3)显示部分:采用液晶LCD显示
上传时间: 2016-06-17
上传用户:妄想演绎师
本实例演示了一个用C语言编写的十全十美小游戏,使游戏在图形模式下运行 该游戏的思想很简单,就是用25个方块组成一个5乘5的矩阵,用户以一个方块为中心在整个矩阵中填充一个由五个方块组成的十字。当用户在重复位置填充时程序判断当前位置是否已经填充过,已填充过的 地方由于重复填充会2变为非填充状态。这样用户在不同位置一直填充下去,直到这个矩阵都被填满为止,游戏结束
上传时间: 2014-10-29
上传用户:1101055045
RECOMMENDATION ITU-R M.1653*,** Operational and deployment requirements for wireless access systems including radio local area networks in the mobile service to facilitate sharing between these systems and systems in the Earth exploration-satellite service (active) and the space research service (active) in the band 5 470-5 570 MHz within the 5 460 5 725 MHz range
标签: RECOMMENDATION requirements Operational deployment
上传时间: 2016-10-21
上传用户:miaochun888
目 录 前 言 1 第一章 概述 1 1.1课题来源 1 1.2 开发工具的选用 2 1.2.1 Visual Basic的使用 2 1.2.2 Microsoft Access的使用 3 1.3 系统的初步调查 3 1.4 系统的可行性研究 4 1.4.1技术上的可行性 4 1.4.2管理上的可行性 4 1.4.3安全上的可行性 4 1.5 系统分析 4 1.5.1系统的安全性 4 1.5.2系统的快捷性 5 1.5.3系统的准确性 5 1.5.4系统的严谨性 5 第二章 概要设计 5 2.1 系统设计思路 5 2.1.1界面设计 5 2.1.2用户登陆 5 2.1.3学籍信息内容查询和录入 6 2.1.4数据库分析 6 2.2 设计简述 6 2.2.1 vb设计的界面简述 6 2.2.2 Access2000设计数据库 7 2.2.3系统简图 7 2.3 设计需求 7 2.3.1 运行设计 7 2.3.2 出错处理设计 8 2.3.3安全保密设计 8 2.3.4维护设计 8 第三章 详细设计 9 3.1 数据库的实现 9 3.1.1课程表 9 3.1.2学生情况表 9 3.1.3学生与课程表 9 3.2 界面的实现 9 3.2.1登陆界面 9 3.2.3 主界面 10 3.2.4 基本信息录入 11 3.2.5 成绩录入 14 3.2.6 信息查询 16 3.2.7 报表输出 18 第四章 数据测试 18 第五章 总结 19 5.1 编程心得 19 5.2 感谢 19 参考文献 20
标签: Microsoft Visual Access Basic
上传时间: 2014-11-26
上传用户:xieguodong1234