亚洲十八**毛片_亚洲综合影院_五月天精品一区二区三区_久久久噜噜噜久久中文字幕色伊伊 _欧美岛国在线观看_久久国产精品毛片_欧美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

    欧美在线free| 久久精品在线| 夜夜春成人影院| 正在播放日韩精品| 欧美精品一级二级三级| 亚洲欧美在线观看| 久久亚区不卡日本| 色婷婷综合五月| 国产午夜视频在线观看| 欧美a视频在线| 亚洲国产高清一区二区三区| 99精品久久99久久久久| 亚洲成人免费电影| 一本色道久久加勒比精品| 另类小说视频一区二区| 精品制服美女丁香| 麻豆国产精品777777在线| 国产精品一区不卡| 日日夜夜精品视频天天综合网| 成人亚洲视频| 美女日批视频在线观看| 欧洲亚洲两性| 国产探花在线精品| 日本成人7777| 精品国产一区二区三区| 99re8这里有精品热视频8在线| 欧美一级片在线| 原千岁中文字幕| 青檬在线电视剧在线观看| 欧美美女日韩| 日本中文一区二区三区| 精品久久久久久无| 成人短视频软件网站大全app| 美女精品在线观看| 国产欧美日韩视频在线观看| 日韩毛片精品高清免费| 久久久不卡网国产精品一区| 精品久久久免费| 精品国精品国产尤物美女| 欧美videofree性高清杂交| 日本不卡免费播放| 久久精子c满五个校花| 免费高清视频精品| 成人激情av网| 精品成人在线观看| 看黄网站在线观看| 免费人成黄页在线观看忧物| 免费看电影在线| 日本高清精品| 最新亚洲精品| 欧美国产中文高清| 精品一区二区国语对白| 国产精品初高中害羞小美女文| 日韩午夜精品电影| 日韩片欧美片| 精品国产伦一区二区三区免费 | 欧美aaa视频| 少妇高潮一区二区三区99| 亚洲情侣在线| 在线播放精品| 欧美丝袜美女中出在线| ts人妖交友网站| h片在线观看下载| 亚洲色图综合| 狠狠综合久久av一区二区蜜桃| 国内一区二区三区| 91麻豆精品国产91久久久久| 日本成人片在线| 亚洲视频一区| 亚洲国产欧美一区二区三区丁香婷| 激情小视频在线观看| 中文字幕欧美一区二区| yw在线观看| 天天超碰亚洲| 99精品欧美一区二区蜜桃免费| 欧美影院一区二区| 肉肉视频在线观看| 影院欧美亚洲| 疯狂做受xxxx欧美肥白少妇 | 久久麻豆视频| 卡一卡二国产精品| 91精品国产色综合久久| 欧美男女交配| 国产一区二区导航在线播放| 日韩精品在线网站| 国产精品美女久久久久| 成人午夜在线视频| 国产成人午夜电影| 欧美黑人做爰爽爽爽| 国产清纯美女被跳蛋高潮一区二区久久w | 麻豆国产精品一区二区三区 | 天天综合天天操| 日韩欧国产精品一区综合无码| 精品一区二区三区在线视频| 麻豆资源在线| 黄色欧美网站| 亚洲图片欧美激情| 国产原厂视频在线观看| 羞羞答答国产精品www一本| 在线91免费看| 亚洲一区电影| 《视频一区视频二区| a级毛片免费观看在线| 日韩精品一区第一页| 精品免费国产一区二区三区四区| 精品一区二区三区中文字幕视频| 91免费视频观看| 91在线不卡| 欧美亚洲网站| 日本三级电影网| 久久综合av| 欧美精品日韩精品| 国产精品自在线拍| 亚洲国产精品视频| 青草综合视频| 亚洲欧洲国产专区| 国产精品迅雷| 国产日韩精品视频一区| 丝袜国产在线| www..com久久爱| 欧美成人三区| 国产伦精品一区二区三区免费 | 亚洲国产精品成人一区二区在线| 欧美日本亚洲韩国国产| 日韩精品一区二区三区视频播放| 免费久久精品| 在线观看av不卡| 亚洲区小说区图片区qvod| 黄色一区二区在线| 免费精品一区| 粉嫩av一区二区三区免费野| 欧美成人精品一级| 婷婷国产在线综合| 日韩欧美另类中文字幕| 午夜精品福利一区二区三区av| 成人豆花视频| 一本色道久久加勒比精品| 激情亚洲另类图片区小说区| 日韩欧美国产一区二区| 天天久久夜夜| 欧美一区二区三区在线观看| 91亚洲成人| 成人综合av| 日韩电影在线免费看| 大片免费播放在线视频| 国产精品亚洲第一区在线暖暖韩国| 午夜免费播放观看在线视频| 波多野结衣在线一区| 538在线观看| 亚洲欧美日韩在线播放| 麻豆精品在线| 欧美日韩国产综合一区二区 | 日韩一区中文字幕| 欧美第一在线视频| 欧美日韩免费一区二区三区| 99精品视频在线观看播放| 天天操天天射天天插| 亚洲一区二区三区四区五区午夜 | 亚洲欧洲成人av每日更新| 国产精品亚洲一区二区在线观看 | 91福利在线播放| 五月天久久久| 在线观看国产福利视频| 成人黄色a**站在线观看| 亚洲第一av| 欧美特级限制片免费在线观看| 亚洲综合中文| 国产午夜精品一区理论片| 国产日韩欧美精品综合| 91蝌蚪精品视频| 97福利电影| www.成人网.com| 一区二区三区视频免费视频观看网站 | 欧美日韩水蜜桃| 婷婷六月天丁香| 成人精品免费视频| 日韩av黄色| 2020天天操| 国产一区二区在线免费观看| 最近高清中文在线字幕在线观看1| 欧美色视频日本版| 国产一区日韩一区| a免费在线观看| 日本精品一区二区三区高清 | 制服丝袜专区在线| 色女孩综合影院| 西西人体一区二区| av在线理伦电影| 欧美日韩在线播放一区| 日韩和欧美的一区| 欧美日韩精品免费观看视欧美高清免费大片| 在线观看一区日韩| 麻豆精品新av中文字幕| 91老师片黄在线观看| 欧美国产1区2区| 欧美午夜精品在线| 欧美sm极限捆绑bd| 理论片午夜视频在线观看| 外国电影一区二区| 国产一区二区三区免费观看在线|