99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

CMPT 489代做、Program Synthesis編程設(shè)計(jì)代寫(xiě)

時(shí)間:2023-12-07  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



CMPT 489 / 980 Program Synthesis
Final Project
Phase I is due by 11:59pm PT on Wednesday Nov 8, 2023. Phase II is due by 11:59pm PT on Tuesday
Dec 5, 2023. Please submit them to Canvas on time. No late submission is accepted.
Requirements:
• This project must be your own work. No collaboration is permitted.
• The programming language of this project is Java 11.
• You can learn the code on slides and start from it.
• You can use third-party libraries but not existing synthesizers. However, you can implement the
algorithms in existing synthesizers by yourself.
1 Problem Description
Consider the following context-free grammar G
E ::= Ite(B, E, E) | Add(E, E) | Multiply(E, E) | x | y | z | 1 | 2 | 3
B ::= Lt(E, E) | Eq(E, E) | And(B, B) | Or(B, B) | Not(B)
x, y, z ∈ Variables 1, 2, 3 ∈ Constants
Here, E is the start symbol. E and B are non-terminals; all other symbols are terminals. The meaning
of terminal symbols are self-explanatory. Specifically, Ite is the if-then-else operator. Add is the addition
(+) operator. Multiply is the multiplication (∗) operator. x, y, z are integer variables. 1, 2, 3 are integer
constants. Lt is the less-than (<) operator. Eq is the equals (==) operator. And is the logical conjunction
(&&). Or is the logical disjunction (||). Not is the logical negation (!).
In this project, you need to write an example-based program synthesizer in Java. Specifically, the
synthesizer takes as input a list of input-output examples and the context-free grammar G and produces
as output an implementation of f(x, y, z) in the language of G such that f(x, y, z) is consistent with the
provided examples. You can assume f only uses three variables x, y, z, and all their types are Int. The return
type of f is also Int. If the synthesis succeeds, your program should print the program, e.g., Add(Add(y,
z), x), to the console. Otherwise, if the synthesis fails, the program should print null.
2 Codebase
A codebase is provided as the starting point. It contains the basic framework for the synthesizer. Details
are explained as follows.
Package synth.cfg
This package defines the data structure for the context-free grammar (CFG). It has the following classes
• Symbol. An abstract class for symbols in the CFG.
• Terminal. A subclass of Symbol that corresponds to terminals in the CFG.
• NonTerminal. A subclass of Symbol that corresponds to non-terminals in the CFG.
1
• Production. A class for productions in the CFG. A production is of the form
ReturnSymbol ::= Operator(ArgSymbol, ..., ArgSymbol)
• CFG. A class for representing the CFG. The most important method is getProductions, which takes
as input a non-terminal symbol N and returns as output a list of all productions with N being the
left-hand-side of the production.
Package synth.core
This package contains the classes for synthesizers, examples, programs, and interpreters.
• ASTNode. A class for general Abstract Syntax Tree (AST) nodes. The symbol fields corresponds to
the symbol in the CFG. The children field corresponds to the children nodes.
• Program. A class for representing a program. It only has one field root, which is the root node of the
corresponding AST.
• Example. A class that defines the data structure of an example. The input field is a map from variable
names to their values. The output field is the output value.
• Interpreter. A class that defines an interpreter of the language of G. The most important method
is the static method evaluate, which takes as input a program and an environment and returns as
output the evaluation result. The environment is essentially a map from variable names to their values,
just like the input field of Example. Concrete examples on how to use Interpreter.evaluate are
provided in the test class synth.core.InterpreterTests.
• ISynthesizer. An interface that defines the input and output of a synthesizer. The inputs are a CFG
and a list of examples. The output is a program.
• TopDownEnumSynthesizer. A top-down enumerative synthesizer that implements the ISynthesizer
interface. You need to implement this class.
Package synth.util
This package contains the utility classes and methods.
• FileUtils. A class for file operations. The readLinesFromFile static method reads a file into a list
of strings, where each line of the file is a string.
• Parser. A class for parsing the examples. The parseAnExample static method parses text of the form
“x=a, y=b, z=c -> d” to an object of class Example. The parseAllExamples static method parses
a list of examples from a list of strings, where each string corresponds to an example. It ignores empty
strings.
Class synth.Main
The main class of the framework. It has two methods.
• main. It is the entry of the program. It takes one command-line argument args[0] for the path to
the examples file.
• buildCFG. It builds the CFG G in Section 1.
Tests
JUnit tests are provided in the src/test directory. You are welcome to add more!
• synth.core.InterpreterTests. It contains several unit tests for the interpreter, which is also helpful
for understanding the usage of the interpreter.
2
Other Files
• pom.xml. The configuration file for Maven.
• examples.txt. A sample examples file.
3 Compilation and Execution
Compilation. This codebase uses the Maven build system. Suppose you enter the Synth directory, the
project can be easily compiled with one command
$ mvn package
Then you should be able to see the message “BUILD SUCCESS”. A directory called target will be created
and a jar file called synth-1.0.jar will be generated inside the target.
Execution. In the Synth directory, you can execute the program using the following command (use ;
instead of : in Windows)
$ java -cp lib:target/synth-1.0.jar synth.Main <path-to-examples-file>
where <path-to-examples-file> is the path to the examples file. For example, you can run
$ java -cp lib:target/synth-1.0.jar synth.Main examples.txt
You will see a runtime exception with message “To be implemented”, because the synthesizer is not implemented yet. After you finish implementing the synthesizer, you should see something like (not unique)
Add(Add(y, z), x)
4 Phase I
In Phase I, you need to implement a top-down enumerative synthesizer in synth.core.TopDownEnumSynthesizer.
Deliverable
A zip file called Phase1 Firstname Lastname.zip that contains at least the followings:
• The entire Synth directory. You can change existing code if you want, but please make sure the project
can be compiled and executed as explained in Section 3.
• A short report (**2 pages) called Phase1 Firstname Lastname.pdf that explains the design choices,
features, tests, issues (if any), and anything else that you want to explain about your program.
5 Phase II
In Phase II, you can implement any synthesis algorithm that improves the performance of the synthesizer on
the same problem. You also need to create a small benchmark set and evaluate your algorithm
over the benchmarks.
A zip file called Phase2 Firstname Lastname.zip that contains at least the followings:
• The entire Synth directory. You can change existing code if you want, but please make sure the project
can be compiled and executed as explained in Section 3.
• A long report (5-6 pages) called Phase2 Firstname Lastname.pdf that explains the algorithms,
benchmarks, evaluation results, design choices, features, tests, issues (if any), and anything else
that you want to explain about your program.
請(qǐng)加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:CS 202代寫(xiě)、代做Operating Systems設(shè)計(jì)
  • 下一篇:CPT109程序代做、代寫(xiě)C/C++編程語(yǔ)言
  • 無(wú)相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷(xiāo)助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷(xiāo)助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開(kāi)團(tuán)工具
    出評(píng) 開(kāi)團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
  • 短信驗(yàn)證碼 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                欧美精品在线观看一区二区| 亚洲欧美二区三区| 久久久久久久久久久久久夜| 国产精品高清亚洲| 丝袜美腿亚洲一区| 成人h动漫精品一区二| 欧美成人午夜电影| 亚洲国产欧美另类丝袜| 成人黄色网址在线观看| 日韩美女久久久| 丰满放荡岳乱妇91ww| 日韩一区二区电影在线| 亚洲靠逼com| 成人av电影免费在线播放| 国产精品美女久久久久久久久| 九九**精品视频免费播放| 在线成人免费观看| 久久aⅴ国产欧美74aaa| 欧美日韩国产片| 一区二区理论电影在线观看| 成人一级片网址| 久久综合久色欧美综合狠狠| 久久精品国产亚洲aⅴ | 在线视频你懂得一区二区三区| 国产亚洲综合色| 国精产品一区一区三区mba视频| 91精品国产免费| 日韩精品一区第一页| 久久综合狠狠综合久久综合88| heyzo一本久久综合| 国产精品美女一区二区三区 | 国产天堂亚洲国产碰碰| 色拍拍在线精品视频8848| 国产精品久久久久久一区二区三区| 91福利在线播放| 亚洲国产综合在线| 国产日产欧美精品一区二区三区| 国产激情精品久久久第一区二区| 国产日韩欧美在线一区| 精品视频免费在线| 青青草国产精品亚洲专区无| 欧美大片在线观看一区| 黑人巨大精品欧美黑白配亚洲| 中文字幕中文乱码欧美一区二区| 欧美老年两性高潮| 色综合久久88色综合天天6| 精品系列免费在线观看| 亚洲影院在线观看| 欧美日韩卡一卡二| 成人av资源在线观看| 蜜臀av国产精品久久久久| 国产三级三级三级精品8ⅰ区| 欧美日韩一级二级三级| av一区二区久久| 国产成+人+日韩+欧美+亚洲| 国产丝袜在线精品| 久久综合99re88久久爱| 欧美日韩精品二区第二页| 成人h动漫精品一区二| 国产一区二三区| 亚洲女同一区二区| 久久奇米777| 精品久久久久久无| 欧美一二三区在线观看| 7777精品伊人久久久大香线蕉| 日本大胆欧美人术艺术动态| 国产日韩精品视频一区| 精品第一国产综合精品aⅴ| 91网上在线视频| 免费精品视频最新在线| 亚洲成av人综合在线观看| 欧美tickling网站挠脚心| 91麻豆精品国产91久久久资源速度 | 美国十次了思思久久精品导航| 亚洲电影第三页| 亚洲风情在线资源站| 亚洲一区二区五区| 亚洲午夜久久久久久久久电影网 | 日本不卡123| 蜜桃av一区二区在线观看| 日韩精品欧美精品| 奇米精品一区二区三区四区| 奇米影视7777精品一区二区| 日日摸夜夜添夜夜添亚洲女人| 日韩在线a电影| 另类小说视频一区二区| 国产尤物一区二区| 国产成人精品影视| 成人18视频日本| 91一区二区三区在线播放| 色94色欧美sute亚洲线路二| 欧美午夜电影网| av福利精品导航| 色香蕉成人二区免费| 在线观看日产精品| 欧美久久久一区| 2014亚洲片线观看视频免费| 国产亚洲制服色| 亚洲精品高清在线| 天堂蜜桃91精品| 韩国精品在线观看| 成人18精品视频| 欧美日韩免费高清一区色橹橹 | 2020国产精品| 亚洲乱码日产精品bd| 婷婷丁香久久五月婷婷| 亚洲一区二区视频在线观看| 午夜激情一区二区三区| 韩国欧美国产1区| 不卡电影一区二区三区| 欧美精品日日鲁夜夜添| 久久美女高清视频| 亚洲欧洲精品一区二区精品久久久| 久久亚洲综合色| 亚洲日本韩国一区| 奇米四色…亚洲| www.亚洲在线| 欧美一级日韩免费不卡| 国产精品久久久久久久裸模| 亚洲国产精品一区二区久久 | 欧美在线制服丝袜| 精品精品欲导航| 亚洲黄色片在线观看| 九九久久精品视频| 亚洲日本va在线观看| 五月婷婷激情综合网| 欧美日韩一区二区不卡| 色乱码一区二区三区88| 欧美一区二区高清| 亚洲视频一区在线| 久久 天天综合| 在线亚洲一区二区| 久久久不卡网国产精品二区| 亚洲午夜av在线| 成人妖精视频yjsp地址| 欧美一级高清大全免费观看| 亚洲柠檬福利资源导航| 国内精品视频666| 欧美日韩国产成人在线91| 中文字幕一区二区日韩精品绯色| 久久国产夜色精品鲁鲁99| 色综合久久久久综合体| 久久女同精品一区二区| 免费在线成人网| 欧美三区免费完整视频在线观看| 国产精品亲子乱子伦xxxx裸| 久久99国产精品免费| 欧美精品日日鲁夜夜添| 亚洲一区电影777| 一本一道久久a久久精品 | 亚洲人成伊人成综合网小说| 国产成人午夜高潮毛片| 欧美成人a视频| 蜜臀91精品一区二区三区 | 久久久久久免费网| 九九精品一区二区| 日韩亚洲国产中文字幕欧美| 亚洲午夜在线视频| 色狠狠综合天天综合综合| 亚洲欧美一区二区视频| 成人免费看视频| 国产性色一区二区| 国产精品一区在线观看乱码| 精品一区二区三区在线观看 | 欧美一区二区成人6969| 日韩黄色片在线观看| 欧美日韩一区二区电影| 亚洲国产精品麻豆| 欧美日韩免费高清一区色橹橹| 亚洲电影在线播放| 欧美久久久一区| 日本午夜精品视频在线观看| 欧美一区二区视频在线观看2020| 舔着乳尖日韩一区| 欧美一区三区四区| 精品一区二区在线看| 精品国产乱码久久久久久蜜臀| 韩日av一区二区| 国产精品美女久久久久久久 | 欧美电影在线免费观看| 久久91精品久久久久久秒播| 2023国产一二三区日本精品2022| 国产在线观看一区二区| 国产欧美综合在线观看第十页| 成人国产精品免费观看动漫| 亚洲男人的天堂一区二区| 欧美影视一区在线| 日韩**一区毛片| 国产亚洲精品资源在线26u| 成人小视频免费在线观看| 亚洲黄色在线视频| 日韩视频在线观看一区二区| 国产成人精品免费看| 亚洲欧美日韩在线播放| 欧美日韩不卡一区| 国产精品中文有码| 一区二区三区高清不卡| 精品女同一区二区| 99久久综合色| 天天影视涩香欲综合网|