狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线

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)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • NBA直播 短信驗證碼平臺 幣安官網下載 歐冠直播 WPS下載

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

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

    狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线
  • <dl id="akume"></dl>
  • <noscript id="akume"><object id="akume"></object></noscript>
  • <nav id="akume"><dl id="akume"></dl></nav>
  • <rt id="akume"></rt>
    <dl id="akume"><acronym id="akume"></acronym></dl><dl id="akume"><xmp id="akume"></xmp></dl>
    欧美精品无码一区二区三区| 国产精品中文久久久久久| 欧美黄网在线观看| 深爱五月综合网| 国产女同无遮挡互慰高潮91| 欧美日韩成人免费视频| 久久久福利影院| 色网站在线视频| 永久免费网站视频在线观看| 国产成人免费高清视频| 中文字幕第一页在线视频| 中文字幕成人免费视频| 中文字幕免费高清在线| 偷拍盗摄高潮叫床对白清晰| 91pony九色| 日韩视频在线观看视频| 日韩 欧美 视频| 啊啊啊国产视频| 国产资源中文字幕| 日韩久久久久久久久久久久| 天堂8在线天堂资源bt| 欧洲精品一区二区三区久久| av7777777| 日b视频免费观看| 在线黄色免费看| 欧美色图色综合| 在线观看免费不卡av| 91免费国产精品| 中文字幕国内自拍| 欧美日韩中文字幕在线播放| 99久久国产宗和精品1上映| a级免费在线观看| 香蕉视频xxxx| 九九九九九国产| 欧美日韩国产精品激情在线播放| 中文 日韩 欧美| 狠狠热免费视频| 久久网站免费视频| 国产精品www在线观看| 亚洲国产欧美91| 女同性恋一区二区| 麻豆中文字幕在线观看| 天天摸天天碰天天添| 草草久久久无码国产专区| 国产精品视频网站在线观看| 国产精品久久成人免费观看| 亚洲精品视频三区| 中文字幕免费高| 成年在线观看视频| 国产精品后入内射日本在线观看| 欧美一级视频在线播放| 久草青青在线观看| 浓精h攵女乱爱av| 手机看片日韩国产| 国产麻豆电影在线观看| 法国空姐在线观看免费| 中日韩av在线播放| 日韩av中文字幕第一页| 免费无码av片在线观看| 日本黄网站免费| 亚洲这里只有精品| 99视频在线视频| 9l视频自拍9l视频自拍| 国产视频一视频二| 欧美性受黑人性爽| xxxx一级片| 97在线免费公开视频| 欧美成人手机在线视频| av动漫免费看| 五月六月丁香婷婷| 国产91在线免费| koreanbj精品视频一区| 一二三四中文字幕| 亚洲一区精品视频在线观看| 成人一级片网站| 日本精品一区在线观看| 激情综合在线观看| 极品美女扒开粉嫩小泬| 国内自拍中文字幕| 最近中文字幕一区二区| 日本在线观看免费视频| 国产精品视频黄色| 日韩精品一区二区三区不卡| 免费男同深夜夜行网站 | www.夜夜爱| 亚洲 欧洲 日韩| 欧美三级午夜理伦三级老人| 天天看片天天操| 日本福利视频在线观看| 国产xxxx振车| 182午夜视频| avove在线观看| 999香蕉视频| 成人av一级片| 欧美亚洲一二三区| ww国产内射精品后入国产| 99999精品| 日韩视频在线免费播放| 色呦呦网站入口| 福利视频999| 亚洲天堂av线| 欧美成人福利在线观看| 污污网站免费看| 一区二区三区视频网| 激情久久综合网| 在线观看中文av| 日本a在线天堂| 97超碰人人澡| 免费看污黄网站| www亚洲成人| 天堂v在线视频| 无码人妻精品一区二区三区在线| 国产白丝袜美女久久久久| 哪个网站能看毛片| 亚洲成人天堂网| 神马午夜伦理影院| 久久精品xxx| 亚洲精品久久久中文字幕| 亚欧精品在线视频| 18禁免费观看网站| 手机在线国产视频| 国产午夜福利100集发布| 日本www.色| 国产91沈先生在线播放| 久久国产亚洲精品无码| 国产欧美自拍视频| 国产一级片自拍| 成人三级视频在线播放| 成人在线免费观看网址| 免费看国产曰批40分钟| 经典三级在线视频| 午夜视频在线网站| 2021狠狠干| 成年人黄色在线观看| www.com久久久| 天堂网在线免费观看| 成人观看免费完整观看| 日本中文字幕在线不卡| 在线视频观看一区二区| 能在线观看的av网站| 国产成人艳妇aa视频在线| 久久av高潮av| 人妻久久久一区二区三区| 国产免费一区二区三区视频| 欧美精品一区免费| 激情婷婷综合网| 国产又粗又长又爽又黄的视频| 亚洲一级片免费观看| 99er在线视频| 黄色高清无遮挡| 欧洲金发美女大战黑人| 777久久久精品一区二区三区| wwwxxx黄色片| 少妇高潮流白浆| 欧美成人xxxxx| 日韩video| 日韩欧美xxxx| 精品无码国模私拍视频| 欧美成人三级在线播放| 日韩精品在线观看av| 亚洲精品怡红院| 丰满的少妇愉情hd高清果冻传媒| av观看免费在线| av7777777| 黄色a级片免费看| 天天成人综合网| 777精品久无码人妻蜜桃| 不要播放器的av网站| 欧美激情第四页| 在线观看免费av网址| 丰满的少妇愉情hd高清果冻传媒| 国产深夜男女无套内射| 成人综合视频在线| 亚洲高清在线不卡| 亚洲精品在线视频播放| 国产一区二区视频免费在线观看| 中文字幕永久视频| 欧美无砖专区免费| 黄色一级大片免费| 99热这里只有精品免费| 中文字幕の友人北条麻妃| 成年网站免费在线观看| 亚洲图片 自拍偷拍| 天天色综合社区| 最新av网址在线观看| 丁香花在线影院观看在线播放| 日韩欧美精品免费| 9色视频在线观看| 911福利视频| 丰满的少妇愉情hd高清果冻传媒 | 免费不卡av在线| www.在线观看av| 激情综合网俺也去| 天天干天天色天天干| www.久久久精品| 99精品在线免费视频| 黄色永久免费网站| 男人日女人bb视频| 亚洲第一区第二区第三区| 国产一区二区视频播放|