爱情鸟第一论坛com高清免费_91免费精品国自产拍在线可以看_亚洲一区精品中文字幕_男人操心女人的视频

COMP 2049 代做代寫 c++,java 編程

時間:2024-04-14  來源:  作者: 我要糾錯



COMP 2049 Languages and Computation Coursework: Floating-Point Numbers and Simple Arithmetic Expressions
1 Floating-Point Numbers
Design a right-linear grammar G1 that generates the language of binary floating-point literals according to the following rules:
• Each number may be signed or unsigned.
– unsigned as in 1.01, signed as in +1.01 or -1.10
• The numerical part (also called the value field) must be non-empty and may optionally include a decimal point ’.’, in which case it must be followed by some other digits. For instance:
– In the number +110.11, the value filed is 110.11.
– 1 and .01, -.001, 001 are all acceptable, but 1., +, - and λ are not.
• There may be an optional exponent field, in which case, it must contain the letter ’e’, followed by a signed or unsigned integer.
– For instance, 101e+1 or -1.1e10 are acceptable, but 1.01e, 1.01e-1.1 and e11 are not. Furthermore, there must be at least one digit between the decimal point ’.’ and the letter ’e’. Hence,
strings such as 11.e01 are not acceptable.
Task 1. Implement the grammar G1 in JFLAP, and test it on some input strings of your choice.
A screenshot of the result of parsing of some sample input strings for grammar G1 in JFLAP is provided in Figure 1.
Figure 1: Some sample input and the corresponding results
Remark 1.1 In all of the tasks of this coursework, the default parsing method should be the “brute force parsing”. Hence, to test your grammars in JFLAP on several input strings, choose the tab “Input” and then the item “Multiple Brute Force Parse”.
 1

2 Arithmetic Expressions
For the second task, you are required to design a context-free grammar (CFG) G2 that generates the language of arithmetic expressions over natural numbers in binary format. Each arithmetic expression is constructed from the following:
• Binary unsigned integer literals, with leading zeros accepted;
• Arithmetic operators +, -, *, and /;
• Properly nested parentheses.
For instance, an expression such as (11+0101)/001 must be accepted, whereas ((11-01) must be rejected because the parentheses do not match.
Task 2. Implement the grammar G2 in JFLAP and test it on some input expressions of your choice.
Check all the production rules of the grammar G2 to see if there are any λ-productions or unit- productions. If there are any such productions, you may notice that for more complicated input strings, it takes a long time for JFLAP to parse the string. In fact, at times it may enter into a non-terminating loop.
Task 3. Use JFLAP to remove the λ-productions and unit-productions of the grammar G2 to obtain the gram- mar G3. Then, try to parse the same strings as before and notice that it takes a shorter time to parse them, and the parser does not enter into non-terminating loops.
In JFLAP, to remove λ-productions and unit-productions, you may first choose the tab “Convert”, and then the item “Transform Grammar”. A screenshot of the result of parsing of some sample input strings for grammar G3 in JFLAP is provided in Figure 2. To compare the efficiency of G2 and G3, you may use the sample input “1+1-(1/1*1)”.
Figure 2: Some sample input and the corresponding results
3 Submission
You must submit one zip file which contains three JFLAP files, named according to the following templates: 1. A JFLAP file for grammar G1 of Task 1 named:
ID_Surname_FirstName_01.jff 2. A JFLAP file for grammar G2 of Task 2 named:
ID_Surname_FirstName_02.jff 3. A JFLAP file for grammar G3 of Task 3 named:
 4. The zip file named:
ID_Surname_FirstName_03.jff ID_Surname_FirstName.zip
2

Remark 3.1 In case the grammar G2 of Task 2 that you have designed already has no λ-productions and no unit-productions, then you may submit the same grammar as G3. Nonetheless, even in this case, you must submit three files with the naming conventions as specified above.
• Release date: Tuesday, April 2nd, 2024
• Deadline: Friday, April 19th, 2024, 17:00 • Weight: 15% of the module mark
• How to submit: Via Moodle
4 Marking Scheme
Correctness: (80%) Correct answers for the three tasks contribute to 80% of the total mark, as follows: • Task 1: 40%
• Task 2: 20%
• Task 3: 20%
Format: (20%)
1. While the grammar G3 of Task 3 is generated by JFLAP, the grammars for Tasks 1 and 2 must be written by you. For grammars G1 and G2, all productions with the same left-hand-side variable must appear in one block one after another. (15%)
2. The zip file and three JFLAP files must be named according to the templates given above. (5%).
Late Submissions: The standard University penalty for late submission is applied, i.e., 5% absolute
standard University scale per day, until the mark reaches zero.
Use of Other Technologies: If you use technologies other than those specified in the assignment brief, e.g., chatGPT, 50% absolute deduction.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

 





 

 

 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:代做ICS4U、代寫 java 程序語言
  • 下一篇:代寫 CS6114 Coding Video for Streaming
  • 代做IDEPG001、代寫c/c++,Java編程設計
  • CS 455代做、Java編程語言代寫
  • 代做AST20201、代寫Java編程設計
  • SCC312代做、代寫Java編程語言
  • CSCI 2033代做、代寫Python, C++/Java編程
  • COMP3217代做、Python/Java編程設計代寫
  • 昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    爱情鸟第一论坛com高清免费_91免费精品国自产拍在线可以看_亚洲一区精品中文字幕_男人操心女人的视频
    <strike id="bfrlb"></strike><form id="bfrlb"><form id="bfrlb"><nobr id="bfrlb"></nobr></form></form>

        <sub id="bfrlb"><listing id="bfrlb"><menuitem id="bfrlb"></menuitem></listing></sub>

          <form id="bfrlb"></form>

            <form id="bfrlb"></form>

              <address id="bfrlb"></address>

              <address id="bfrlb"></address>
              中文一区在线| 欧美成年人视频网站| 老司机精品视频网站| 国产一区二区精品| 欧美视频在线观看一区二区| 欧美在线亚洲在线| 欧美激情综合在线| 欧美大成色www永久网站婷| 欧美福利一区二区| 午夜一区二区三区不卡视频| 国产日韩欧美夫妻视频在线观看| 9l国产精品久久久久麻豆| 欧美精选在线| 亚洲国产经典视频| 国产精品成人一区二区三区吃奶| 狼人天天伊人久久| 亚洲中午字幕| 久久频这里精品99香蕉| 亚洲七七久久综合桃花剧情介绍| 欧美日韩成人| 亚久久调教视频| 亚洲一区美女视频在线观看免费| 亚洲蜜桃精久久久久久久| 免费成人在线观看视频| 欧美日韩一二三区| 国产亚洲一区二区精品| 欧美日韩国产a| 国产精品久久久| 欧美黄色网络| 亚洲一二三四区| 在线观看av一区| 久久精品一区二区| 蜜臀av性久久久久蜜臀aⅴ四虎| 好看的日韩视频| 亚洲午夜一区二区三区| 国产一区二区三区黄视频| 亚洲一区二区不卡免费| 国产精品一区二区三区观看| 久久午夜视频| 亚洲一区区二区| 久久国产精品色婷婷| 国产一区二区三区在线观看免费视频| 欧美日韩亚洲综合| 欧美日韩精品不卡| 久久久夜色精品亚洲| 亚洲乱码视频| 欧美成人精品h版在线观看| 欧美日韩国产色站一区二区三区| 国产精品一区2区| 欧美久久久久久久| 国产精品视频免费在线观看| 亚洲欧洲中文日韩久久av乱码| 午夜精品国产精品大乳美女| 国产亚洲网站| 亚洲国产欧美一区二区三区同亚洲| 欧美福利视频在线| 久久精视频免费在线久久完整在线看| 国产一区二区久久久| 国语对白精品一区二区| 国产精品久久久久秋霞鲁丝| 亚洲欧洲av一区二区三区久久| 一区二区欧美日韩| 亚洲欧美日本国产有色| 香蕉久久一区二区不卡无毒影院| 精品盗摄一区二区三区| 欧美超级免费视 在线| 先锋影音久久| 欧美日韩国产在线看| 欧美体内she精视频在线观看| 另类国产ts人妖高潮视频| 在线观看日韩国产| 欧美视频国产精品| 亚洲调教视频在线观看| 亚洲免费av片| 久久一区二区三区国产精品| 欧美日韩亚洲不卡| 久久这里有精品15一区二区三区| 久久婷婷国产麻豆91天堂| 一区二区在线观看av| 国产精品日韩电影| 国产精品理论片| 宅男噜噜噜66一区二区| 国产一区二区精品久久| 亚久久调教视频| 日韩午夜中文字幕| 久久一综合视频| 欧美在线观看视频| 亚洲欧洲精品一区| 欧美日韩亚洲一区二区三区四区| 国产精品午夜电影| 影音先锋日韩资源| 亚洲韩国精品一区| 亚洲激情在线播放| 免费日韩视频| 亚洲专区在线视频| 亚洲视频专区在线| 另类人畜视频在线| 91久久极品少妇xxxxⅹ软件| 欧美日韩在线播放| 欧美色综合网| 欧美亚洲日本国产| 免费av成人在线| 在线观看久久av| 国产精品第一页第二页第三页| 99热这里只有精品8| 欧美一站二站| 狠狠色综合网| 国产精品久久久久av免费| 老色鬼精品视频在线观看播放| 老司机精品福利视频| 欧美日韩成人综合| 亚洲国产精品高清久久久| 国产在线乱码一区二区三区| 国产日韩欧美电影在线观看| 99成人精品| 免费日韩av片| 亚洲一区二区三区精品在线观看| 欧美日韩大陆在线| 亚洲亚洲精品在线观看| 久久精品国产视频| 久久精品免费| 亚洲视频精选在线| 亚洲综合电影| 国产精品护士白丝一区av| 欧美国产一区二区| 亚洲精品一区二区三区四区高清| 欧美精品在线网站| 欧美jjzz| 欧美一区二区三区精品电影| 午夜精品剧场| 国产精品自拍视频| 久久综合久久综合久久综合| 欧美日韩一本到| 在线观看不卡| 欧美一区二区性| 亚洲婷婷国产精品电影人久久| 亚洲乱码国产乱码精品精天堂| 久久影院午夜片一区| 欧美日韩高清在线一区| 欧美激情第一页xxx| 久久在精品线影院精品国产| 亚洲你懂的在线视频| 久久亚洲精品网站| 欧美性猛交xxxx乱大交退制版| 欧美性猛交xxxx乱大交蜜桃| 狠狠色综合日日| 欧美视频精品一区| 亚洲午夜一区二区三区| 亚洲免费久久| 久久只精品国产| 在线欧美日韩国产| 欧美尤物巨大精品爽| 欧美另类在线播放| 欧美日韩在线精品一区二区三区| 亚洲免费观看高清完整版在线观看熊| 原创国产精品91| 一区二区福利| 欧美午夜精品久久久久久孕妇| 亚洲黑丝一区二区| 国产精品激情| 欧美在线高清视频| 国内精品久久久久久| 亚洲免费在线观看| 欧美大片第1页| 亚洲欧美中文字幕| 国产精品高精视频免费| 欧美日韩一区二区三区免费看| 老**午夜毛片一区二区三区| 136国产福利精品导航网址应用| 久久gogo国模啪啪人体图| 欧美激情国产精品| 136国产福利精品导航网址| 亚洲欧美日韩一区二区三区在线观看| 欧美三级午夜理伦三级中文幕| 欧美视频在线看| 一区二区三区回区在观看免费视频| 欧美私人啪啪vps| 欧美交受高潮1| 欧美精品观看| 欧美日韩国产成人精品| 亚洲国产精品久久精品怡红院| 久久99在线观看| 亚洲精品国产精品国自产在线| 久久久av毛片精品| 国产精品国产a级| 国内精品写真在线观看| 暖暖成人免费视频| 欧美多人爱爱视频网站| 亚洲一区二区不卡免费| 伊人久久大香线蕉av超碰演员| 欧美日本一区| 国产精品视频免费观看| 在线观看欧美精品| 久久久亚洲人| 亚洲一区日本| 久久久精品2019中文字幕神马| 麻豆精品视频在线| 噜噜噜久久亚洲精品国产品小说| 亚洲福利视频三区| 欧美日本精品一区二区三区|