久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

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

    久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

    日本一二三四区视频| 8x8x华人在线| 国产精品视频黄色| 欧美一级在线看| 三级在线免费观看| 日本老熟妇毛茸茸| 成人观看免费完整观看| 男女曰b免费视频| 欧美女同在线观看| 国产传媒免费观看| 久久综合久久网| 男女视频网站在线观看| www黄色av| 日韩欧美一区二| 少妇黄色一级片| 免费成人进口网站| 日韩亚洲欧美视频| 成年人视频大全| 女人天堂av手机在线| 五月天国产视频| 最新天堂中文在线| 久久久99精品视频| 性鲍视频在线观看| 午夜福利123| 亚洲一区二区福利视频| 无码人妻精品一区二区蜜桃百度| 天天视频天天爽| 日本熟妇人妻中出| 天天爽天天爽夜夜爽| 日本999视频| 成人免费无码av| 密臀av一区二区三区| 妞干网在线免费视频| 欧美激情国产精品日韩| 久章草在线视频| 北条麻妃av高潮尖叫在线观看| 久久午夜夜伦鲁鲁一区二区| 嫩草av久久伊人妇女超级a| 日韩中文字幕组| 国内自拍视频一区| 亚洲综合av在线播放| 亚洲色图欧美自拍| 六月婷婷激情网| 波多野结衣av一区二区全免费观看| 九九九在线观看视频| 亚洲视频在线a| 老司机久久精品| 国产精品久久成人免费观看| 日韩中文在线字幕| www.日本少妇| 日本精品www| 亚洲娇小娇小娇小| 免费久久久久久| 欧美视频在线观看视频| 丰满少妇被猛烈进入高清播放| 国产成人精品无码播放| 久久久久久久久久久久久久久国产| 艳母动漫在线免费观看| 黄页网站大全在线观看| www.国产区| 欧美成人三级在线播放| 在线观看污视频| 各处沟厕大尺度偷拍女厕嘘嘘| 黄色大片在线免费看| 精品中文字幕av| 一二三级黄色片| 无码av天堂一区二区三区| 韩国日本在线视频| 亚洲综合激情五月| 欧美在线观看视频网站| 国产乱叫456| 人人妻人人澡人人爽欧美一区双| 欧美日韩亚洲第一| 国产大片一区二区三区| 欧美成人三级在线视频| 午夜在线观看av| 黄色一级大片免费| 青青草精品视频在线观看| 中文字幕第一页亚洲| 欧美牲交a欧美牲交aⅴ免费下载| 99999精品| www黄色av| 国产成人艳妇aa视频在线| 一级黄色片播放| 国产精品50p| 超碰免费在线公开| 99蜜桃臀久久久欧美精品网站| 爽爽爽在线观看| 女人和拘做爰正片视频| 国产av不卡一区二区| av免费在线播放网站| 97av中文字幕| 国产永久免费网站| 91视频最新入口| 久久观看最新视频| 91小视频在线播放| 欧美女人性生活视频| 成年丰满熟妇午夜免费视频 | 日本a级片在线播放| 在线免费观看av的网站| 伊人成色综合网| 最新黄色av网站| 视频在线观看免费高清| 无码人妻丰满熟妇区五十路百度| 成人免费a级片| 日本高清一区二区视频| 嫩草av久久伊人妇女超级a| 男人添女人下面高潮视频| 女同性恋一区二区| www.五月天色| 日本中文字幕二区| 国产精品区在线| 一级黄色香蕉视频| 国产精品99久久免费黑人人妻| 国产精品裸体瑜伽视频| 日本一本草久p| 国产九九九九九| 欧美交换配乱吟粗大25p| 亚洲制服在线观看| 伊人成人222| 一起操在线视频| 在线免费av播放| 日韩中文字幕组| 亚欧在线免费观看| 国产视频一区二区视频| 美女黄色片视频| 已婚少妇美妙人妻系列| 三级4级全黄60分钟| 国产无套内射久久久国产| 一二三四视频社区在线| 日日摸日日碰夜夜爽无码| 精品视频在线观看一区| www.av91| 男女超爽视频免费播放| 亚洲精品蜜桃久久久久久| 青草视频在线观看视频| 免费视频爱爱太爽了| 国产美女在线一区| 国产精品网站免费| 免费观看日韩毛片| 精品www久久久久奶水| 日本老熟妇毛茸茸| 日韩一级免费片| 97人人爽人人| 熟女熟妇伦久久影院毛片一区二区| 少妇熟女一区二区| 中文字幕色呦呦| 日韩欧美不卡在线| 中国丰满人妻videoshd| 色悠悠久久综合网| 992kp免费看片| 妺妺窝人体色www看人体| 欧美,日韩,国产在线| 男人天堂成人在线| 亚洲免费999| 99热一区二区三区| 自拍日韩亚洲一区在线| 国产男女激情视频| 日本一二区免费| av日韩在线看| 欧美深夜福利视频| 午夜免费看视频| 国产日韩欧美大片| 久久成人免费观看| 99热这里只有精品在线播放| 免费在线观看污网站| 欧美激情亚洲天堂| 色婷婷综合久久久久中文字幕| 国内自拍第二页| 国产高清av在线播放| 91视频免费版污| 黄色网zhan| 免费在线激情视频| 色婷婷综合在线观看| 国产黄页在线观看| 中日韩av在线播放| 成人免费在线网| 亚洲成人天堂网| 僵尸世界大战2 在线播放| av污在线观看| 久久久久99精品成人片| 亚洲欧美激情网| 国产精品无码电影在线观看| av无码精品一区二区三区| 国产成人三级视频| 宅男噜噜噜66国产免费观看| 强伦女教师2:伦理在线观看| 男人靠女人免费视频网站| 国产精品jizz在线观看老狼| 日韩精品一区二区三区久久| 午夜免费一级片| 久久婷婷五月综合色国产香蕉| 日韩 欧美 自拍| 日韩肉感妇bbwbbwbbw| 你懂的av在线| 久久人人爽人人片| 国产精品无码一本二本三本色| www.一区二区.com| 中文字幕久久av| 欧美性大战久久久久xxx|