日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲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

              亚洲国产经典视频| 国产精品久久久久9999高清| 日韩西西人体444www| 欧美香蕉大胸在线视频观看| 久久久噜噜噜久久中文字免| 亚洲视频二区| 一区二区三区视频在线看| 激情丁香综合| 国产欧美日韩在线视频| 欧美日韩一区免费| 欧美高清在线视频| 久久久亚洲欧洲日产国码αv | 国产精品久久久久久久午夜 | 亚洲国产欧洲综合997久久| 国产麻豆一精品一av一免费| 欧美日韩免费精品| 欧美理论电影网| 欧美国产精品劲爆| 久久亚洲精品一区| 性色av一区二区三区| 一区二区三区免费网站| 亚洲精品一二区| 亚洲精品久久7777| 亚洲精品乱码视频| 亚洲人成77777在线观看网| 亚洲大胆女人| 亚洲国产精品一区二区三区| 在线免费观看成人网| 精品999网站| 影音欧美亚洲| 亚洲精品1区2区| 亚洲黄色小视频| 亚洲高清激情| 亚洲理论电影网| 艳女tv在线观看国产一区| 亚洲美女91| 中文亚洲免费| 欧美一二三区在线观看| 久久都是精品| 久久先锋影音| 欧美国产日韩免费| 欧美日韩国产综合网| 欧美午夜在线| 国产精品网站视频| 在线播放精品| 99热这里只有精品8| 夜夜嗨av一区二区三区中文字幕| 亚洲一区激情| 久久精品综合| 欧美精品一区二区三区在线播放| 欧美日韩一区综合| 国产欧美日韩一区二区三区在线 | 狠狠色伊人亚洲综合网站色| 在线观看日韩国产| 9l视频自拍蝌蚪9l视频成人| 午夜久久影院| 欧美三级韩国三级日本三斤| 麻豆免费精品视频| 在线精品福利| 亚洲精品一级| 亚洲欧美综合另类中字| 麻豆国产精品777777在线| 欧美日韩国产系列| 国内精品久久久久久久影视麻豆 | 免费成年人欧美视频| 欧美日韩在线不卡一区| 极品日韩久久| 欧美一区二区三区的| 欧美精品首页| 在线观看视频一区二区| 亚洲欧美日本国产有色| 欧美国产成人在线| 一区二区在线视频| 午夜免费久久久久| 欧美日韩国产精品成人| 亚洲国产精品成人久久综合一区| 亚洲自拍偷拍色片视频| 欧美激情精品久久久久久| 国产又爽又黄的激情精品视频| 亚洲伦理在线观看| 免费欧美日韩| 极品少妇一区二区三区精品视频| 亚洲欧美日韩精品| 欧美亚男人的天堂| 夜夜夜精品看看| 欧美精品性视频| 最近看过的日韩成人| 久久全国免费视频| 国产综合视频在线观看| 午夜国产精品视频免费体验区| 欧美日韩免费在线视频| 亚洲精品国产精品国自产观看浪潮| 欧美伊人精品成人久久综合97| 欧美性大战久久久久久久蜜臀| 日韩视频免费| 欧美视频福利| 亚洲在线视频免费观看| 国产精品久久一卡二卡| 午夜国产精品视频免费体验区| 欧美性猛交99久久久久99按摩| 一区二区三区日韩精品| 欧美四级在线| 亚洲欧美一区二区原创| 国产欧美丝祙| 久久精品主播| 亚洲欧洲一区二区三区在线观看| 欧美xxx在线观看| 99精品欧美一区二区三区| 欧美日韩一区在线| 欧美亚洲一区| 狠狠色狠狠色综合日日tαg | 欧美成人免费观看| 一区二区国产精品| 国产精品亚发布| 久久久一二三| 日韩天堂在线观看| 国产精品视频一二三| 性欧美精品高清| 在线精品亚洲| 欧美日韩一区二区在线视频| 午夜一区二区三区不卡视频| 黄色日韩在线| 国产精品久久久久久久久免费桃花| 欧美一乱一性一交一视频| 亚洲高清在线观看| 国产精品拍天天在线| 久久久久久午夜| 亚洲美女色禁图| 韩国av一区二区三区在线观看| 免费成人毛片| 欧美一区二区播放| 亚洲精品乱码久久久久久日本蜜臀| 国产精品毛片在线| 美女国产一区| 欧美伊人精品成人久久综合97| 亚洲区免费影片| 国产午夜精品在线| 欧美日韩妖精视频| 麻豆精品精华液| 欧美在线999| 一区二区福利| 亚洲国产成人久久综合| 欧美国产日韩一区二区| 午夜国产一区| 亚洲一区三区电影在线观看| 伊人激情综合| 国产日产精品一区二区三区四区的观看方式| 久久成人这里只有精品| 亚洲综合三区| 亚洲一区二区三区高清不卡| 永久555www成人免费| 国产视频久久| 国产乱码精品一区二区三区五月婷| 欧美精品亚洲| 欧美成人免费一级人片100| 久久精品国产精品亚洲精品| 香蕉乱码成人久久天堂爱免费| 亚洲少妇最新在线视频| 日韩午夜电影av| 亚洲欧洲在线视频| 亚洲区欧美区| 日韩亚洲一区二区| 亚洲美女诱惑| 一区二区三区日韩| 一区二区三区免费网站| 一区二区三区四区精品| 日韩一本二本av| 亚洲视频观看| 午夜在线视频观看日韩17c| 中文亚洲欧美| 欧美中文日韩| 久久精品国产亚洲a| 久久一区二区精品| 久久这里有精品15一区二区三区| 久久中文字幕导航| 欧美理论电影网| 欧美日韩在线免费视频| 国产精品欧美日韩一区| 国产情人综合久久777777| 国产午夜精品一区理论片飘花| 国产日韩欧美综合一区| 在线日本成人| 99热免费精品在线观看| 性色av一区二区三区| 久久天天躁狠狠躁夜夜爽蜜月| 欧美大片91| 欧美视频在线播放| 国产欧美一区二区三区沐欲| 在线观看不卡av| 99国产成+人+综合+亚洲欧美| 亚洲天堂成人在线视频| 久久av一区二区三区亚洲| 你懂的一区二区| 欧美三日本三级三级在线播放| 国产精品专区第二| 亚洲黄色有码视频| 亚洲一区二区在线播放| 免费成人av| 国产日韩精品一区二区浪潮av| 在线免费观看一区二区三区|