免费一级欧美片在线观看网站_国产一区再线_欧美日本一区二区高清播放视频_国产99久久精品一区二区300

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編程設(shè)計
  • CS 455代做、Java編程語言代寫
  • 代做AST20201、代寫Java編程設(shè)計
  • SCC312代做、代寫Java編程語言
  • CSCI 2033代做、代寫Python, C++/Java編程
  • COMP3217代做、Python/Java編程設(shè)計代寫
  • 昆明生活資訊

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

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

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    免费一级欧美片在线观看网站_国产一区再线_欧美日本一区二区高清播放视频_国产99久久精品一区二区300
    成人欧美一区二区三区1314 | 亚洲国产一区二区三区 | 精品国产区一区| 精品一区二区三区在线观看国产| 久久综合久久久久88| 风间由美中文字幕在线看视频国产欧美 | 久久久国产午夜精品| 国产成人精品免费视频网站| 国产精品美女久久久久aⅴ| 91在线播放网址| 亚洲福利一区二区三区| 91.麻豆视频| 黄色日韩三级电影| 国产精品视频免费| 91黄色免费看| 蜜桃久久久久久| 欧美韩国一区二区| 91久久一区二区| 人人狠狠综合久久亚洲| 久久久精品国产99久久精品芒果| 北条麻妃一区二区三区| 一片黄亚洲嫩模| 欧美成人三级电影在线| 成人网在线播放| 亚洲午夜精品在线| 精品裸体舞一区二区三区| 成人av综合在线| 亚洲一线二线三线久久久| 欧美一区二区福利在线| 国产精品18久久久久久久久久久久 | 亚洲专区一二三| 日韩视频一区在线观看| 丰满少妇久久久久久久| 亚洲综合图片区| 欧美精品一区男女天堂| 91网站在线播放| 麻豆精品国产传媒mv男同| 中文字幕av一区二区三区免费看| 欧美性videosxxxxx| 精品一区二区三区蜜桃| 亚洲日本青草视频在线怡红院| 3atv一区二区三区| 成人av免费在线观看| 天天射综合影视| 国产精品美日韩| 91精品国产综合久久久久| 高清不卡一区二区在线| 污片在线观看一区二区| 国产欧美日本一区视频| 欧美日韩的一区二区| 国产成人精品1024| 性做久久久久久久免费看| 久久久精品国产免大香伊| 欧美三级资源在线| 国产ts人妖一区二区| 五月天激情综合| 亚洲欧洲av一区二区三区久久| 欧美一级在线视频| 97成人超碰视| 国产又黄又大久久| 亚洲v中文字幕| 国产精品久久久久久户外露出| 日韩视频中午一区| 一本大道久久a久久精品综合| 国产在线一区二区综合免费视频| 亚洲图片欧美色图| 国产精品乱人伦| 久久影院视频免费| 在线综合+亚洲+欧美中文字幕| 97se亚洲国产综合自在线观| 国内精品免费**视频| 午夜av区久久| 樱花草国产18久久久久| 国产性色一区二区| 日韩欧美一区二区免费| 欧美午夜精品一区二区三区| 成人国产亚洲欧美成人综合网| 久久99在线观看| 天堂va蜜桃一区二区三区漫画版| 亚洲人成网站精品片在线观看| 久久久久久久久97黄色工厂| 日韩视频不卡中文| 欧美人与性动xxxx| 欧美怡红院视频| 91麻豆免费观看| caoporn国产精品| 国产成a人亚洲| 国产在线一区二区| 久久99在线观看| 免费成人结看片| 日韩成人免费电影| 午夜在线电影亚洲一区| 一区二区三区自拍| 亚洲女子a中天字幕| 国产精品国产自产拍在线| 国产网站一区二区| 2023国产精华国产精品| 欧美成人性福生活免费看| 欧美一区二区三区视频免费| 欧美三级日韩三级国产三级| 91国偷自产一区二区开放时间| 一本色道a无线码一区v| 99精品视频一区二区| www.欧美精品一二区| 成人在线视频一区| 福利视频网站一区二区三区| 国产成人综合在线播放| 国产精品18久久久久久久久久久久 | 日韩女优电影在线观看| 日韩一区二区电影| 日韩一区二区三区视频在线| 制服丝袜日韩国产| 欧美一区二区三区啪啪| 日韩欧美的一区二区| 欧美大肚乱孕交hd孕妇| 精品国产乱码久久久久久牛牛| 精品女同一区二区| 久久天天做天天爱综合色| 久久综合九色综合欧美98| 国产亚洲欧洲997久久综合| 久久亚洲一级片| 欧美激情一区二区三区全黄 | 国产女主播视频一区二区| 国产女人18毛片水真多成人如厕| 国产精品无圣光一区二区| 中文字幕在线不卡一区 | 亚洲人成伊人成综合网小说| 国产精品久久久久久久久快鸭| 1024成人网| 一区二区三区视频在线观看| 亚洲国产综合色| 蜜臀av性久久久久蜜臀aⅴ流畅 | 国产一区欧美二区| 国产suv精品一区二区6| av电影在线观看完整版一区二区| 99v久久综合狠狠综合久久| 一本大道久久a久久精二百| 欧美日韩在线三区| 日韩欧美电影一区| 国产日韩精品一区二区三区| 中文字幕视频一区| 亚洲一区在线视频观看| 日韩av中文字幕一区二区三区| 激情久久五月天| 99在线精品一区二区三区| 欧美在线啊v一区| 日韩欧美国产小视频| 国产亚洲欧美在线| 亚洲欧美成人一区二区三区| 亚洲成人你懂的| 国模一区二区三区白浆| 成人av中文字幕| 欧美撒尿777hd撒尿| 精品三级av在线| 亚洲欧洲av在线| 日本va欧美va欧美va精品| 国产精品一区二区三区网站| 色婷婷激情久久| 日韩美一区二区三区| 国产精品免费久久| 婷婷成人综合网| 国产福利一区二区三区在线视频| 一本一道综合狠狠老| 欧美一级一区二区| 亚洲国产精品高清| 亚洲成av人综合在线观看| 韩国精品主播一区二区在线观看 | 亚洲一区在线观看网站| 久久精品国产第一区二区三区| 成人18视频在线播放| 欧美精品三级在线观看| 久久看人人爽人人| 亚洲最大色网站| 国产精品一卡二卡在线观看| 在线免费亚洲电影| 久久免费的精品国产v∧| 亚洲综合在线观看视频| 国产在线一区二区综合免费视频| 色婷婷综合五月| 精品国产乱码久久久久久夜甘婷婷 | 男女男精品网站| 91视频.com| 精品国产髙清在线看国产毛片| 亚洲另类中文字| 国产精品一区二区三区四区| 欧美性三三影院| 中文字幕国产一区二区| 日本成人中文字幕在线视频 | 69av一区二区三区| 日韩美女精品在线| 激情偷乱视频一区二区三区| 在线精品视频免费播放| 国产日韩欧美不卡| 日韩二区三区四区| 色综合中文综合网| 国产欧美日韩不卡| 蜜桃久久久久久久| 欧美午夜理伦三级在线观看| 欧美激情一区二区三区四区| 蜜臀久久99精品久久久画质超高清|