精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕

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

    精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕
    <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
    <ul id="e4iaa"></ul>
    <blockquote id="e4iaa"><tfoot id="e4iaa"></tfoot></blockquote>
    • <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
      <ul id="e4iaa"></ul>
      <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp><ul id="e4iaa"></ul>
      <ul id="e4iaa"></ul>
      <th id="e4iaa"><menu id="e4iaa"></menu></th>
      国产激情精品久久久第一区二区| 亚洲人成人一区二区在线观看 | 成人在线视频一区二区| 老司机免费视频一区二区| 美女网站色91| 亚洲不卡一区二区三区| 亚洲午夜视频在线| 一区二区三区欧美日| 亚洲综合一区二区三区| 亚洲高清不卡在线| 日韩av一级片| 国产伦精品一区二区三区视频青涩 | 精品国产一区二区三区不卡| 日韩视频免费观看高清完整版在线观看 | 亚洲图片欧美综合| 香蕉乱码成人久久天堂爱免费| 亚洲电影在线免费观看| 免费观看成人av| 国产成人鲁色资源国产91色综| 成人黄色电影在线| 色天天综合久久久久综合片| 欧美日韩一区成人| 久久色成人在线| 亚洲欧美日韩一区二区 | 精品久久国产老人久久综合| 久久免费看少妇高潮| 国产精品久久久久久久浪潮网站| 亚洲精品视频免费看| 日韩和欧美一区二区三区| 国产在线精品一区二区不卡了| 99久久国产综合精品麻豆| 欧美日韩mp4| 欧美激情一区二区三区蜜桃视频| 亚洲男人的天堂av| 国产一区激情在线| 欧美色视频在线观看| 久久免费精品国产久精品久久久久| 亚洲日本成人在线观看| 青青草国产精品亚洲专区无| 菠萝蜜视频在线观看一区| 337p亚洲精品色噜噜| 成人免费在线视频| 老鸭窝一区二区久久精品| 色综合久久久久综合体桃花网| 日韩三级免费观看| 亚洲一卡二卡三卡四卡| 高清日韩电视剧大全免费| 欧美精品日日鲁夜夜添| 1000部国产精品成人观看| 国内精品第一页| 欧美精品 日韩| 一区二区三区四区av| 国产精品系列在线观看| 日韩三级免费观看| 视频一区中文字幕| 欧美性大战xxxxx久久久| 欧美激情一区二区在线| 精品在线播放免费| 欧美一区二区三区视频免费 | 久久精品国产99国产| 欧美色大人视频| 一区二区三区在线高清| 91亚洲男人天堂| 国产精品视频第一区| 国产成人高清在线| 久久先锋影音av| 国产麻豆视频精品| 精品国产污污免费网站入口 | 欧美一区二区人人喊爽| 亚洲成av人片www| 欧美在线你懂得| 亚洲在线视频免费观看| 一本色道久久综合亚洲精品按摩| 国产欧美在线观看一区| 风流少妇一区二区| 中文字幕一区二区5566日韩| 岛国一区二区三区| 日韩美女精品在线| 色婷婷激情综合| 亚洲gay无套男同| 制服丝袜av成人在线看| 美女网站一区二区| 国产亚洲婷婷免费| 97se狠狠狠综合亚洲狠狠| 亚洲欧美偷拍三级| 欧美特级限制片免费在线观看| 成人激情文学综合网| 国产亚洲一本大道中文在线| 久久综合999| 精品影视av免费| 久久在线观看免费| 不卡在线观看av| 亚洲一区二区三区中文字幕| 3751色影院一区二区三区| 九色综合国产一区二区三区| 国产夜色精品一区二区av| aaa国产一区| 亚洲第一福利视频在线| 26uuu亚洲| 色香色香欲天天天影视综合网| 亚洲va天堂va国产va久| 精品少妇一区二区三区免费观看 | 日韩欧美成人一区二区| 国内精品久久久久影院色 | 免费高清在线一区| 国产欧美日韩视频在线观看| 91网页版在线| 美女视频黄 久久| 国产精品激情偷乱一区二区∴| 色婷婷国产精品久久包臀| 美女视频免费一区| 亚洲男同性恋视频| 久久久另类综合| 欧美日韩中文字幕精品| 国产精品一二三四区| 午夜精品在线视频一区| 国产欧美一区二区精品忘忧草| 欧美亚洲综合色| 国产另类ts人妖一区二区| 亚洲国产精品视频| 国产精品无人区| 日韩欧美国产成人一区二区| 日本韩国欧美一区| 粉嫩高潮美女一区二区三区| 日日摸夜夜添夜夜添国产精品 | 国产麻豆精品一区二区| 亚洲成av人片www| 亚洲欧美日韩国产综合| 久久奇米777| 日韩欧美成人激情| 538在线一区二区精品国产| 99国产精品久久久久久久久久久| 久久精品噜噜噜成人88aⅴ| 夜夜精品浪潮av一区二区三区| 国产三区在线成人av| ww亚洲ww在线观看国产| 在线综合亚洲欧美在线视频 | 久久精品国内一区二区三区| 亚洲一区影音先锋| 亚洲免费毛片网站| 亚洲天堂成人在线观看| 国产精品美女一区二区三区 | 在线观看亚洲一区| 97久久人人超碰| av一本久道久久综合久久鬼色| 国产精品一区二区在线观看不卡| 麻豆91在线看| 极品少妇一区二区三区精品视频| 免费成人结看片| 久久精品国产成人一区二区三区| 图片区小说区国产精品视频| 亚洲图片欧美色图| 亚洲成av人片在线| 蜜臀av一区二区| 国内精品国产三级国产a久久| 久久精品99久久久| 国产精品88av| 本田岬高潮一区二区三区| 不卡av在线网| 欧美中文字幕不卡| 欧美精三区欧美精三区| 日韩欧美在线网站| 国产婷婷色一区二区三区四区| 久久日韩粉嫩一区二区三区| 亚洲国产精品99久久久久久久久| 中文字幕的久久| 亚洲理论在线观看| 天天色天天爱天天射综合| 免费高清不卡av| 国产91丝袜在线播放九色| av在线这里只有精品| 欧美亚一区二区| 日韩一区二区三| 国产精品无码永久免费888| 亚洲欧美视频在线观看视频| 亚洲国产成人高清精品| 国产真实乱对白精彩久久| av一区二区三区| 欧美一区国产二区| 国产精品丝袜黑色高跟| 亚洲无人区一区| 国产精品一区二区黑丝| 在线视频观看一区| 久久一留热品黄| 亚洲国产中文字幕在线视频综合| 免费人成黄页网站在线一区二区| 成人妖精视频yjsp地址| 67194成人在线观看| 国产精品青草综合久久久久99| 婷婷综合久久一区二区三区| 国产精品99久久久久久似苏梦涵 | 亚洲少妇中出一区| 久久精品国内一区二区三区| 91影视在线播放| 久久精品人人做人人综合| 亚洲丶国产丶欧美一区二区三区| 国产精品一区二区久激情瑜伽| 欧美精品一二三| 中文字幕一区二区不卡| 国产一区二区三区四区五区入口|