日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

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

    日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

              9000px;">

                        欧美成人手机在线视频| 中文字幕有码无码人妻av蜜桃| 日韩视频在线观看一区| 538国产视频| 黄色一级片免费的| 综合 欧美 亚洲日本| 午夜性福利视频| 国产伦精品一区二区三区视频我| 9久久婷婷国产综合精品性色| 中文字幕精品无码一区二区| 在线观看免费成人av| 天天综合天天添夜夜添狠狠添| 日本一区二区网站| 日韩综合在线观看| 亚洲精品国产suv一区| 国产一级做a爱片久久毛片a| 日韩欧美一级大片| www.97视频| 日本一道本视频| 一二三四在线观看视频| 久久免费精品国产| 最近国语视频在线观看免费播放| 国产无套内射又大又猛又粗又爽 | 国产suv一区二区| 四虎成人在线播放| 国产精品111| 一区二区三区四区免费| 精品无码人妻少妇久久久久久| 亚洲天堂av线| 少妇荡乳情欲办公室456视频| 国产亚洲精品女人久久久久久| 亚洲产国偷v产偷v自拍涩爱| 精品熟女一区二区三区| avtt香蕉久久| 在线视频这里只有精品| 日本精品在线观看视频| 国产一区二区视频免费观看| 亚洲精品一区二区三区区别| 日本中文在线视频| 久久久.www| 国产伦精品一区二区三区四区 | 中文字幕日韩免费| 久久久无码人妻精品一区| 一二三四区视频| 天天色综合天天色| www.cao超碰| 少妇荡乳情欲办公室456视频 | 伊人网在线综合| 国产精品综合在线| 中文字幕第九页| 欧美一区二区三区爽爽爽| 91亚洲视频在线观看| 欧美黄色激情视频| 精品少妇一区二区三区免费观| 不卡av中文字幕| 亚洲免费成人在线| 天天摸天天碰天天爽天天弄| 开心激情综合网| 国产精品怡红院| 91丨porny丨在线中文| 中文字幕成人动漫| 色婷婷视频在线| 精品国产人妻一区二区三区| www.色日本| 91亚洲一线产区二线产区| 中文字幕亚洲精品一区| 手机在线成人av| 欧美特黄一级片| 男人天堂手机在线观看| 久久久精品国产sm调教| 黄色成人免费看| 精品国产av一区二区| 国产精品亚洲lv粉色| 国产高潮国产高潮久久久91| av在线无限看| 国产xxxx孕妇| 国产又粗又大又黄| 精品国自产在线观看| 精品少妇人妻av一区二区三区 | 欧美激情久久久久久久| 免费黄色av网址| 欧美一级淫片免费视频黄| 欧美成人精品一区二区综合免费| 欧美大喷水吹潮合集在线观看| 免费中文字幕视频| 日本一道本视频| 天堂成人在线视频| 中文字幕美女视频| 亚洲激情 欧美| 999久久久久| wwww.国产| 国产精品成人国产乱| 国产美女永久免费| 久久久免费高清视频| 日本护士做爰视频| 天天av天天翘| 亚洲精品午夜久久久久久久 | 久久视频免费看| 美女黄色片视频| 天天干天天操天天做| 中文字幕第三区| 国产肥白大熟妇bbbb视频| 精品人妻午夜一区二区三区四区| 欧美人妻一区二区三区| 五月婷婷视频在线| 一级片视频免费观看| 国产精品无码久久av| 欧美国产一级片| 中文字幕av免费观看| www.成年人| 九九热在线视频播放| 日韩av电影网| 中文字幕一二三区| wwwav网站| 九九九在线观看| 日本一区二区三区久久| 一区二区久久精品66国产精品| 亚洲色偷精品一区二区三区| 丁香社区五月天| 久久婷婷综合国产| 制服丝袜第一页在线观看| 18禁一区二区三区| 黄色aaa大片| 日日碰狠狠添天天爽| 亚洲天堂视频一区| 国产一级片免费观看| 日韩中文字幕免费观看| 中文字幕人妻色偷偷久久| av在线播放中文字幕| 久久精品国产成人av| 午夜精品久久久久久久96蜜桃| 亚洲一二区在线观看| 久久aaaa片一区二区| 亚欧精品视频一区二区三区| 一级黄色片在线免费观看| 国产美女免费无遮挡| 日韩三级在线观看视频| 97超碰国产在线| 人妻91麻豆一区二区三区| 亚洲免费黄色片| 另类小说色综合| 亚洲欧美天堂在线| 美女毛片在线观看| 一本久道久久综合无码中文| 国产无遮挡又黄又爽在线观看| 少妇搡bbbb搡bbb搡打电话| 最近国语视频在线观看免费播放| 狠狠躁夜夜躁av无码中文幕| 中文资源在线播放| 精品在线观看一区| 亚洲欧美一二三区| 日韩av综合在线| av大片免费在线观看| 嫩草影院一区二区| 亚洲一级特黄毛片| 人妻视频一区二区| 国产超碰人人模人人爽人人添| 无码精品视频一区二区三区 | 绯色av蜜臀vs少妇| 亚洲 自拍 另类 欧美 丝袜| 国产又粗又大又爽视频| 亚洲熟妇一区二区| 色婷婷激情五月| 精品久久久久一区二区 | 91tv国产成人福利| 五月婷婷激情久久| 欧美 日韩 成人| 国产高潮在线观看| 亚洲欧美在线不卡| 无码人妻丰满熟妇精品| 久久久久成人精品无码中文字幕| 一出一进一爽一粗一大视频 | 亚洲av鲁丝一区二区三区| 免费看特级毛片| 成人黄色三级视频| 伊人久久一区二区三区| 欧美熟妇激情一区二区三区| 国产sm主人调教女m视频| 中文字幕一区二区三区四| 欧美图片第一页| 黄色香蕉视频在线观看| www.88av| 亚洲综合成人av| 天天干天天操天天做| 久久亚洲AV成人无码国产野外| 一级片中文字幕| 伊人网视频在线| 熟妇人妻无乱码中文字幕真矢织江| 国产又粗又猛视频免费| 超碰在线人人爱| 亚洲熟妇av乱码在线观看| 亚洲av无码一区二区三区人| 人人草在线观看| 久久久久久久亚洲| 精品国产乱码久久久久夜深人妻| 国产ts在线播放| 丰满人妻一区二区三区大胸| 18精品爽视频在线观看| 亚洲欧美偷拍一区| 亚洲天堂av一区二区三区|