日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲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)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • NBA直播 短信驗證碼平臺 幣安官網下載 歐冠直播 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

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

              9000px;">

                        91色porny| 日韩精品一区二区在线观看| 日韩女优av电影| 免费成人av在线播放| 制服丝袜一区二区三区| 青青草91视频| 久久一夜天堂av一区二区三区| 久久aⅴ国产欧美74aaa| 久久精品在线观看| 色综合久久中文综合久久97| 亚洲天堂网中文字| 欧美日韩一区二区三区四区五区| 性久久久久久久| 精品久久久久久久久久久久久久久久久| 精品亚洲国产成人av制服丝袜| 精品人在线二区三区| 高清国产午夜精品久久久久久| 中文字幕一区日韩精品欧美| 欧美一a一片一级一片| 久久国产剧场电影| 成人免费小视频| 67194成人在线观看| 东方欧美亚洲色图在线| 午夜视频在线观看一区二区三区| 精品国产一区二区三区不卡 | 激情五月婷婷综合网| 亚洲日本一区二区| 日韩精品影音先锋| 91女神在线视频| 国产黄人亚洲片| 日本成人在线电影网| 亚洲免费高清视频在线| 精品国产一区久久| 欧美高清你懂得| 色88888久久久久久影院按摩| 国产一区二区伦理| 青青国产91久久久久久| 午夜精品久久久久久久99樱桃| 国产精品久久三| 国产亚洲婷婷免费| 精品国产91亚洲一区二区三区婷婷| 欧美在线一二三四区| 色婷婷av久久久久久久| 99精品久久99久久久久| 国产福利一区二区三区在线视频| 日本欧美一区二区在线观看| 亚洲成人免费视频| 一区二区免费视频| 一个色综合网站| 亚洲丰满少妇videoshd| 一区二区不卡在线视频 午夜欧美不卡在| 亚洲国产精品黑人久久久| 26uuu另类欧美亚洲曰本| 日韩三级视频中文字幕| 欧美日韩一区在线| 欧美日韩一区在线| 欧美调教femdomvk| 欧美夫妻性生活| 欧美日韩亚洲丝袜制服| 欧美日韩一级二级三级| 欧美日韩在线播| 欧美丰满一区二区免费视频| 欧美色图天堂网| 欧美群妇大交群的观看方式| 欧美日韩一区二区不卡| 91亚洲资源网| 欧美日韩大陆在线| 一本色道久久综合亚洲aⅴ蜜桃| 国产乱码精品一品二品| 奇米影视一区二区三区小说| 91麻豆精品国产91久久久久久久久| 欧美三级在线看| 99久久婷婷国产综合精品电影| 国产ts人妖一区二区| 国产一区二区三区美女| 国产一区二区三区免费在线观看| 久久成人18免费观看| 青青草97国产精品免费观看无弹窗版 | 91社区在线播放| 国产一区二区成人久久免费影院| 日韩高清国产一区在线| 日韩国产精品久久| 日本成人在线看| 久久国产精品第一页| 亚洲制服欧美中文字幕中文字幕| 亚洲二区在线观看| 五月激情综合色| 免费久久99精品国产| 免费一级片91| 九九久久精品视频| 成人禁用看黄a在线| 一本到不卡免费一区二区| 日本高清不卡一区| 欧美日韩高清影院| 久久午夜国产精品| 偷拍日韩校园综合在线| 精品亚洲aⅴ乱码一区二区三区| 国产精品正在播放| 97久久精品人人做人人爽50路| 一本色道a无线码一区v| 在线成人免费观看| 国产日韩影视精品| 亚洲一区二区综合| 精品一区二区三区日韩| 欧美日韩色综合| 欧美成人精品福利| 国产精品国产自产拍在线| 亚洲一区二区三区四区在线观看| 日本va欧美va精品| 不卡av免费在线观看| 欧美精品久久一区| 中文字幕精品在线不卡| 亚洲成av人片| 国产91高潮流白浆在线麻豆 | 风间由美中文字幕在线看视频国产欧美| 成人动漫在线一区| 欧美美女网站色| 亚洲欧美在线视频| 亚洲欧美日韩小说| 青青草97国产精品免费观看| 成人黄色小视频| 亚洲国产精品t66y| 国产成人在线视频免费播放| 欧美大白屁股肥臀xxxxxx| 欧美不卡在线视频| 麻豆免费看一区二区三区| 成人aaaa免费全部观看| 精品国产伦理网| 日韩在线卡一卡二| 欧美视频一区二区三区在线观看| 欧美高清你懂得| 裸体歌舞表演一区二区| 欧美日韩国产另类不卡| 亚洲日本在线看| 国产成人精品一区二| 日韩一区二区三区视频| 亚洲一区二区三区美女| 蜜臀av性久久久久蜜臀av麻豆| 日韩三级av在线播放| 亚洲成av人片在线观看| 91在线你懂得| 亚洲欧美一区二区在线观看| 国产精品一区一区| 中文字幕欧美三区| 色婷婷av一区二区三区大白胸| 亚洲午夜激情网页| 欧美大片在线观看一区二区| 国产激情91久久精品导航| 亚洲人成网站色在线观看| 欧美日韩电影一区| 欧美videossexotv100| 日本aⅴ免费视频一区二区三区| 在线不卡欧美精品一区二区三区| 亚洲综合色视频| 欧美主播一区二区三区| 91麻豆国产福利在线观看| 中文字幕在线播放不卡一区| 99在线视频精品| 亚洲欧美另类久久久精品| 97久久超碰国产精品| 亚洲国产成人va在线观看天堂| 成人午夜免费电影| 午夜精品久久久久影视| 欧美日韩亚洲综合在线| 日本女优在线视频一区二区| 精品国产一区二区三区不卡| 在线亚洲+欧美+日本专区| 麻豆91精品91久久久的内涵| 日韩美女在线视频 | 欧美一区二区三区性视频| 蜜桃免费网站一区二区三区| 日韩欧美区一区二| 国产成人免费视| 亚洲人成亚洲人成在线观看图片| 国产精品18久久久| 午夜免费久久看| 精品欧美乱码久久久久久1区2区| 一区二区成人在线视频| 欧美浪妇xxxx高跟鞋交| 久久电影网站中文字幕| 欧美高清视频在线高清观看mv色露露十八 | 欧美大片在线观看一区二区| 成人av综合在线| 亚洲成人高清在线| 国产午夜亚洲精品不卡| 日本韩国欧美一区| 黄页视频在线91| 一级日本不卡的影视| 亚洲日本乱码在线观看| 欧美va亚洲va在线观看蝴蝶网| 欧美高清你懂得| av毛片久久久久**hd| 美腿丝袜一区二区三区| 有坂深雪av一区二区精品| 精品国产免费视频| 欧美在线不卡视频| 在线精品视频免费观看| 国产福利一区二区三区在线视频| 亚洲国产va精品久久久不卡综合| 久久一区二区视频|