一:需求分析 1. 問題描述 魔王總是使用自己的一種非常精練而抽象的語(yǔ)言講話,沒人能聽懂,但他的語(yǔ)言是可逐步解釋成人能聽懂的語(yǔ)言,因?yàn)樗恼Z(yǔ)言是由以下兩種形式的規(guī)則由人的語(yǔ)言逐步抽象上去的: ----------------------------------------------------------- (1) a---> (B1)(B2)....(Bm) (2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o] ----------------------------------------------------------- 在這兩種形式中,從左到右均表示解釋.試寫一個(gè)魔王語(yǔ)言的解釋系統(tǒng),把 他的話解釋成人能聽得懂的話. 2. 基本要求: 用下述兩條具體規(guī)則和上述規(guī)則形式(2)實(shí)現(xiàn).設(shè)大寫字母表示魔王語(yǔ)言的詞匯 小寫字母表示人的語(yǔ)言的詞匯 希臘字母表示可以用大寫字母或小寫字母代換的變量.魔王語(yǔ)言可含人的詞匯. (1) B --> tAdA (2) A --> sae 3. 測(cè)試數(shù)據(jù): B(ehnxgz)B 解釋成 tsaedsaeezegexenehetsaedsae若將小寫字母與漢字建立下表所示的對(duì)應(yīng)關(guān)系,則魔王說的話是:"天上一只鵝地上一只鵝鵝追鵝趕鵝下鵝蛋鵝恨鵝天上一只鵝地上一只鵝". | t | d | s | a | e | z | g | x | n | h | | 天 | 地 | 上 | 一只| 鵝 | 追 | 趕 | 下 | 蛋 | 恨 |
上傳時(shí)間: 2014-12-02
上傳用戶:jkhjkh1982
非常好的優(yōu)化算法的書,詳細(xì)介紹了蟻群算法和粒子群算法以及相關(guān)的matlab工具箱,講了理論和應(yīng)用給出了工具箱的下載地址。 Swarm intelligence is an innovative computational way to solve hard problems. In particular, particle swarm optimization, also commonly known as PSO, mimics the behavior of a swarm of insects or a school of fish. If one of the particle discovers a good path to food the rest of the swarm will be able to follow instantly even if they are far away in the swarm. Swarm behavior is modeled by particles in multidimensional space that have two characteristics: a position and a velocity. These particles wander around the hyperspace and remember the best position that they have discovered. They communicate good positions to each other and adjust their own position and velocity based on these good positions.
標(biāo)簽: 優(yōu)化算法
上傳時(shí)間: 2014-01-26
上傳用戶:zgu489
Free open-source disk encryption software for Windows Vista/XP, Mac OS X, and Linux Main Features: * Creates a virtual encrypted disk within a file and mounts it as a real disk. * Encrypts an entire partition or storage device such as USB flash drive or hard drive. * Encrypts a partition or drive where Windows is installed (pre-boot authentication). * Encryption is automatic, real-time (on-the-fly) and transparent. * Provides two levels of plausible deniability, in case an adversary forces you to reveal the password: 1) Hidden volume (steganography) and hidden operating system. 2) No TrueCrypt volume can be identified (volumes cannot be distinguished from random data). * Encryption algorithms: AES-256, Serpent, and Twofish. Mode of operation: XTS. Further information regarding features of the software may be found in the:http://www.truecrypt.org/
標(biāo)簽: open-source encryption Features software
上傳時(shí)間: 2013-12-20
上傳用戶:123啊
漢諾塔!!! 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
標(biāo)簽: the animation Simulate movement
上傳時(shí)間: 2017-02-11
上傳用戶:waizhang
Real-Time Design Patterns: Robust Scalable Architecture for Real-Time Systems. In this book, Bruce Douglass illustrates for the first time how two important contemporary software engineering advances鈥攑atterns and the UML鈥攃an be applied advantageously to the concepts and techniques traditionally used in mainstream real-time software.
標(biāo)簽: Real-Time Architecture Patterns Scalable
上傳時(shí)間: 2013-12-13
上傳用戶:6546544
This file is distributed in the hope that it will be useful, but WITHOUT * WARRANTY OF ANY KIND. * * Author(s): Ole Saether * * DESCRIPTION: * * Hello World program. Please note that this program runs the internal 8051 * on the default power up frequency of 4MHz. See ex3c.c for an example on how * to switch to 16MHz. * * The functionality is the same as in ex1a.asm. * * COMPILER: * * This program has been tested with Keil V7.07a. * * $Revision: 3 $ *
標(biāo)簽: distributed WARRANTY WITHOUT useful
上傳時(shí)間: 2017-05-17
上傳用戶:515414293
This file is distributed in the hope that it will be useful, but WITHOUT WARRANTY OF ANY KIND. Author(s): Ole Saether DESCRIPTION: nRF9E5 Hello World program. Please note that this program runs the internal 8051 on the default power up frequency of 4MHz. See ex3a.asm for an example on how to switch to 16MHz. The functionality is the same as in ex1c.c. ASSEMBLER: You need as31.exe to assemble this program. It can be downloaded from this web page: http://www.pjrc.com/tech/8051/ $Revision: 4 $
標(biāo)簽: distributed WARRANTY WITHOUT useful
上傳時(shí)間: 2017-05-17
上傳用戶:wuyuying
將魔王的語(yǔ)言抽象為人類的語(yǔ)言:魔王語(yǔ)言由以下兩種規(guī)則由人的語(yǔ)言逐步抽象上去的:α-〉β1β2β3…βm ;θδ1δ2…-〉θδnθδn-1…θδ1 設(shè)大寫字母表示魔王的語(yǔ)言,小寫字母表示人的語(yǔ)言B-〉tAdA,A-〉sae,eg:B(ehnxgz)B解釋為tsaedsaeezegexenehetsaedsae對(duì)應(yīng)的話是:“天上一只鵝地上一只鵝鵝追鵝趕鵝下鵝蛋鵝恨鵝天上一只鵝地上一只鵝”。(t-天d-地s-上a-一只e-鵝z-追g-趕x-下n-蛋h-恨)
上傳時(shí)間: 2013-12-19
上傳用戶:aix008
本代碼為編碼開關(guān)代碼,編碼開關(guān)也就是數(shù)字音響中的 360度旋轉(zhuǎn)的數(shù)字音量以及顯示器上用的(單鍵飛梭開 關(guān))等類似鼠標(biāo)滾輪的手動(dòng)計(jì)數(shù)輸入設(shè)備。 我使用的編碼開關(guān)為5個(gè)引腳的,其中2個(gè)引腳為按下 轉(zhuǎn)輪開關(guān)(也就相當(dāng)于鼠標(biāo)中鍵)。另外3個(gè)引腳用來 檢測(cè)旋轉(zhuǎn)方向以及旋轉(zhuǎn)步數(shù)的檢測(cè)端。引腳分別為a,b,c b接地a,c分別接到P2.0和P2.1口并分別接兩個(gè)10K上拉 電阻,并且a,c需要分別對(duì)地接一個(gè)104的電容,否則 因?yàn)榫幋a開關(guān)的觸點(diǎn)抖動(dòng)會(huì)引起輕微誤動(dòng)作。本程序不 使用定時(shí)器,不占用中斷,不使用延時(shí)代碼,并對(duì)每個(gè) 細(xì)分步數(shù)進(jìn)行判斷,避免一切誤動(dòng)作,性能超級(jí)穩(wěn)定。 我使用的編碼器是APLS的EC11B可以參照附件的時(shí)序圖 編碼器控制流水燈最能說明問題,下面是以一段流水 燈來演示。
標(biāo)簽: 代碼 編碼開關(guān)
上傳時(shí)間: 2017-07-03
上傳用戶:gaojiao1999
*** HyperString v6.0 *** (c)1996-2000 EFD Systems, All rights reserved efd@mindspring.com *** THIS IS NOT PUBLIC DOMAIN SOFTWARE *** See below for license agreement, disclaimer, installation and use. Introduction --------------------------------------------------------- Welcome to HyperString! One of the most significant new features with Delphi32 is long dynamic strings. However, the built-in functions don t really exploit the full potential of these new strings. HyperString provides over 400 fast, efficient string management routines to help you realize the full power of this highly versatile new data type.
標(biāo)簽: HyperString reserved Systems rights
上傳時(shí)間: 2017-07-04
上傳用戶:mhp0114
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1