狠狠综合久久久久综合网址-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>
    天天视频天天爽| 在线看的黄色网址| 中国老女人av| 日韩欧美中文视频| 色一情一区二区| 日日噜噜噜噜久久久精品毛片| 麻豆tv在线播放| 999在线观看视频| 日韩一级性生活片| 免费国产a级片| 人妻有码中文字幕| 黄色片视频在线| 成人高清在线观看视频| 奇米777四色影视在线看| 玖玖精品在线视频| 日韩精品 欧美| 欧美黑人又粗又大又爽免费| 一区二区三区入口| 亚洲国产欧美91| 人人干视频在线| 2025韩国理伦片在线观看| 亚洲欧美天堂在线| 六月婷婷激情网| av片中文字幕| 国产不卡的av| 免费不卡av在线| 怡红院亚洲色图| 成人小视频在线观看免费| 无码播放一区二区三区| 亚洲这里只有精品| 欧美另类videosbestsex日本| 亚洲 欧美 综合 另类 中字| 黄色三级视频片| 国产 国语对白 露脸 | 国产九九热视频| 国产在线观看欧美| 国产超碰在线播放| 屁屁影院ccyy国产第一页| 能看的毛片网站| 免费在线黄网站| 99久久99精品| 国产精品69页| 美脚丝袜脚交一区二区| 国产精品久久久久久9999| 国产69精品久久久久久久| 日本77777| 欧美在线观看视频网站| 精品少妇人欧美激情在线观看| 第四色婷婷基地| 欧美一级片中文字幕| 国产精品久久久久9999爆乳| 黄色三级视频在线播放| 久久婷婷国产91天堂综合精品| www.亚洲视频.com| 97超碰免费观看| 日本黄色播放器| 亚洲三级在线观看视频| 在线观看免费视频高清游戏推荐| 九一国产精品视频| 真人抽搐一进一出视频| 大地资源网在线观看免费官网| 潘金莲激情呻吟欲求不满视频| 无码无遮挡又大又爽又黄的视频| 蜜臀av无码一区二区三区| 国产卡一卡二在线| 亚洲AV无码成人精品一区| 日本网站在线看| 国内av一区二区| 高潮一区二区三区| 午夜不卡福利视频| 97超碰人人看| 最新视频 - x88av| 成人毛片100部免费看| 国产av熟女一区二区三区| 丰满人妻一区二区三区53号 | 毛毛毛毛毛毛毛片123| 国产在线观看中文字幕| 国产精品av免费| 18禁裸男晨勃露j毛免费观看| 国产一区二区四区| 久久9精品区-无套内射无码| 中文字幕乱码人妻综合二区三区 | 中国丰满人妻videoshd| 午夜视频在线瓜伦| 最新天堂在线视频| 日韩a一级欧美一级| 日本丰满少妇黄大片在线观看| 超碰人人爱人人| 日韩少妇内射免费播放| 超碰在线公开97| 日韩欧美精品免费| 一区二区三区国产免费| 国产手机视频在线观看| 色综合久久久久无码专区| xx欧美撒尿嘘撒尿xx| 欧美视频在线第一页| 国产精品天天av精麻传媒| 青青草原播放器| 国产精品wwwww| 91九色国产ts另类人妖| 日韩精品免费播放| 黄色a级片免费看| www.色就是色| 亚洲熟妇av日韩熟妇在线| www.com操| 国产日产欧美视频| 日韩不卡一二区| 一级在线免费视频| 国产3p露脸普通话对白| 小早川怜子一区二区三区| 蜜桃传媒一区二区三区| 国产日韩第一页| 色婷婷激情视频| 久久久久久久久久福利| 男人的天堂狠狠干| 欧美日韩午夜爽爽| 香蕉精品视频在线| 国产喷水theporn| 怡红院av亚洲一区二区三区h| 日本三日本三级少妇三级66| 中国黄色片免费看| 国产情侣av自拍| 六月丁香婷婷激情| 亚欧无线一线二线三线区别| 国产尤物av一区二区三区| 超碰人人草人人| 三级a三级三级三级a十八发禁止| 91视频最新入口| 鲁一鲁一鲁一鲁一色| 日韩xxxx视频| 国产素人在线观看| 一区二区传媒有限公司| 国产午夜福利100集发布| 黄色一级片av| 免费的一级黄色片| 欧美久久在线观看| 日韩精品一区在线视频| 久久精品视频16| 日韩网址在线观看| 三级在线免费看| 最新国产黄色网址| 亚洲av毛片在线观看| 男女爱爱视频网站| 精品无码国模私拍视频| av高清在线免费观看| 欧美精品一区二区三区免费播放| 日韩 欧美 高清| 五月六月丁香婷婷| 久久久久久久免费视频| 国产精品久久..4399| 日本wwww视频| 日本黄色福利视频| 日本不卡一区二区三区四区| av久久久久久| 无码日韩人妻精品久久蜜桃| 久久精品视频在线观看免费| 青青草免费在线视频观看| www插插插无码视频网站| 中文字幕在线导航| 黄瓜视频免费观看在线观看www| 黄色一级大片免费| 五月婷婷深爱五月| 日韩中文字幕亚洲精品欧美| 免费高清在线观看免费| 中文字幕日韩久久| a在线视频观看| 日本在线观看视频一区| 久久综合九色综合88i| 日本中文字幕影院| 精品少妇一区二区三区在线| 久久出品必属精品| 久久综合九色综合88i| 日韩欧美中文视频| 熟女少妇精品一区二区| 青青草原网站在线观看| 午夜激情av在线| 国产二区视频在线播放| 欧美一级中文字幕| 日韩成人精品视频在线观看| 男人操女人免费软件| 精品一区二区三区无码视频| 亚洲一区精品视频在线观看| 无码精品国产一区二区三区免费| 91免费版看片| 中国 免费 av| 国产精品嫩草影院8vv8| 国产男女在线观看| 欧美三级在线观看视频| 国产精品视频二| 日韩中文在线字幕| 伊人国产精品视频| 污污视频在线免费| 一二三级黄色片| 国产美女视频免费看| 拔插拔插华人永久免费| 日韩中文字幕a| 精品亚洲视频在线| 国产欧美综合一区| 一本大道东京热无码aⅴ| 国产又粗又爽又黄的视频|