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

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

時(shí)間:2024-04-14  來源:  作者: 我要糾錯(cuò)



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.

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

 





 

 

 

標(biāo)簽:

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

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

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-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>
      99在线小视频| 永久免费未满蜜桃| 超碰在线国产97| 日韩福利在线视频| 国产精品一品二区三区的使用体验| 日本一区二区三区在线免费观看| 一道本在线免费视频| 欧美一区二区三区久久久| 中文字幕久久熟女蜜桃| 国产黄色一区二区三区| 中文字幕久久av| 色乱码一区二区三区在线| 精品人妻aV中文字幕乱码色欲| 亚洲欧洲综合在线| 中文字幕有码av| 无码人妻精品一区二区三区蜜桃91 | 中文av字幕在线观看| 伦av综合一区| 国产又粗又猛又黄又爽无遮挡| 一级特黄a大片免费| 日本熟妇一区二区| 女同久久另类69精品国产| 国产91av在线播放| 超碰97av在线| 丰满岳乱妇国产精品一区| 91精品国产综合久| 亚洲色偷偷综合亚洲av伊人| 无限资源日本好片| 亚洲成人精品女人久久久| 日韩精品在线不卡| 日韩少妇一区二区| 日韩Av无码精品| 秋霞精品一区二区三区| 久久婷婷国产91天堂综合精品| 九九精品视频免费| 久久精品视频8| 欧美成人精品欧美一级私黄| 九九久久免费视频| 蜜臀久久99精品久久久久久| 欧美成人aaa片一区国产精品| 久久久久久久久久久影视| 九九视频免费在线观看| 免费人成视频在线播放| 日韩av无码一区二区三区不卡| 天天做天天干天天操| 中文字幕无人区二| 国产 欧美 在线| 精品人妻一区二区三区日产乱码| 精品人妻久久久久一区二区三区| 久久午夜免费视频| 色婷婷综合视频| 亚欧美在线观看| 亚洲乱色熟女一区二区三区| www.色国产| 精品久久久99| 日本中文字幕久久| 在线观看av网页| 国产精品久久久久毛片| 欧美 日韩 国产 在线| 在线观看免费视频a| youjizz在线视频| 九九九免费视频| 亚欧精品视频一区二区三区 | 国产精品亚洲欧美在线播放| 精品人妻在线播放| 日本一二三区在线| 97人妻一区二区精品免费视频| 国产亚洲精品精品精品| 日本高清久久久| 91tv国产成人福利| 久久黄色片网站| 一级做a爱片久久毛片| 国产精品久久久久久久成人午夜 | 国产传媒国产传媒| 人人爽人人爽人人片| 中文字幕人妻一区二区三区在线视频 | 亚洲人妻一区二区| 国产 日韩 欧美 综合| www.亚洲高清| 高清一区在线观看| 国产在线观看h| 第四色婷婷基地| 亚洲一区二区三区黄色| 91福利视频免费观看| 久久一区二区三区视频| www,av在线| 台湾佬中文在线| 一区二区三区四区影院| 国产精品人妻一区二区三区| 欧美另类视频在线观看| 成人av网站在线播放| 不卡av电影在线| 中文字幕五月天| 图片区 小说区 区 亚洲五月| 亚洲av永久纯肉无码精品动漫| 337p日本欧洲亚洲大胆张筱雨| 免费黄色三级网站| 亚洲毛片欧洲毛片国产一品色| 免费看黄色一级视频| 国产精品18在线| 亚洲欧洲国产视频| 欧美日韩精品在线观看视频| 国产三级精品三级在线| 亚洲欧美另类视频| 日韩av一二区| 欧美在线a视频| 久久久久精彩视频| 韩国av中文字幕| 国产在线a视频| 国产精品一区二区人妻喷水| 91亚洲国产成人久久精品麻豆| 亚洲不卡在线视频| 欧美在线a视频| 日本天堂网在线| 日本一道本视频| 视频区 图片区 小说区| 日本一区二区视频在线播放| 欧美成人一区二区三区高清| 蜜臀久久精品久久久用户群体| 久久黄色一级视频| 免费看黄色一级大片| 欧美日韩在线国产| 日本精品久久久久久| 日韩av片在线| 伊人久久一区二区| 亚洲天堂五月天| 国产美女高潮视频| 久久综合加勒比| 五月婷婷丁香在线| av网站在线不卡| 精品肉丝脚一区二区三区| 人人妻人人澡人人爽人人精品| 婷婷六月天在线| 91亚洲国产成人久久精品麻豆| www.狠狠干| 免费黄色在线网址| 一区二区三区 日韩| 高潮毛片无遮挡| 女同性恋一区二区三区| 亚洲精品18在线观看| 国产精品自拍99| 天天操天天操天天操| 亚洲欧美日韩综合在线| 国产毛片久久久久久| 国产农村妇女精品久久| 久久久久久福利| 小早川怜子一区二区三区| 亚洲 国产 欧美 日韩| 91国模少妇一区二区三区| 亚洲人人夜夜澡人人爽| 日本高清久久久| 一本色道久久综合精品婷婷| 亚洲国产成人精品综合99| 中文字幕a在线观看| 91麻豆精品在线| 国产一区二区三区精品在线| 精品亚洲aⅴ无码一区二区三区| 国产在线视频你懂的| 国产超碰人人模人人爽人人添| 丰满少妇高潮在线观看| 99热这里只有精| 三级网站免费看| 亚洲国产成人一区二区| 99久久99久久精品免费看小说.| 国产精品sm调教免费专区| 欧美在线一级片| 中文字幕亚洲欧美日韩| 国产成人精品一区二区三区在线观看 | 五月天婷婷丁香| 亚洲精品综合在线观看| 国产成人一级片| 国产精品视频在| 亚洲精品视频导航| 国产第一页在线观看| 六月婷婷综合网| 亚洲va天堂va欧美ⅴa在线| 亚洲精品中文字幕成人片| 欧美视频一区二区在线| 亚洲免费视频网| 国产精品人人爽人人爽| 欧美一区二区激情视频| 亚欧视频在线观看| 农村妇女精品一区二区| 中文字幕在线日亚洲9| 国产又大又黄视频| 伊人久久久久久久久久久久| 日韩a级片在线观看| 99精品视频免费看| 免费在线观看亚洲| 亚洲精品视频在线观看免费视频| 国产精品一区二区6| 97精品在线播放| 人人妻人人澡人人爽人人欧美一区 | 亚洲少妇一区二区三区| 天天看片天天操| 国产又粗又硬视频| 国产一级中文字幕| 亚洲色成人www永久网站| 中文亚洲av片在线观看| 波多野结衣不卡视频|