国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

CMPT 489代做、Program Synthesis編程設計代寫

時間:2023-12-07  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



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.
請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:CS 202代寫、代做Operating Systems設計
  • 下一篇:CPT109程序代做、代寫C/C++編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    99视频国产精品免费观看| 亚洲一卡二卡| 国产成人一区二区三区别| 久久精品国产综合精品| 亚洲在线免费看| 每日在线更新av| 久久精品成人一区二区三区| 91美女福利视频高清| 国产精品一区二区av| 色偷偷av亚洲男人的天堂| 中文字幕一区二区三区乱码| 国内一区二区三区在线视频| 国产精品中文在线| 国产精品色悠悠| 中文字幕在线乱| 国产欧美一区二区视频| 久久天天躁夜夜躁狠狠躁2022| 日韩欧美电影一区二区| 久久久久高清| 大j8黑人w巨大888a片| 99久久激情视频| 亚洲日本精品一区| 91久久久久久久久| 亚洲国产日韩欧美| 97精品一区二区三区| 在线视频福利一区| 成人短视频在线观看免费| 欧美日韩国产成人在线| 国产日韩精品在线播放| 超在线视频97| 国产美女久久久| 中文字幕一区二区三区在线乱码| 国产精品自产拍在线观看| 蜜臀久久99精品久久久久久宅男| 国产亚洲精品网站| 国产精品高清在线观看| 精品无人乱码一区二区三区的优势| 国产精品国色综合久久| 国产欧美日韩丝袜精品一区| 九九热精品视频| 99久热re在线精品996热视频| 中文字幕在线乱| 91精品国产自产在线老师啪| 少妇人妻无码专区视频| 国产超级av在线| 欧美怡春院一区二区三区| 日韩有码片在线观看| 欧美日韩一区二区在线免费观看| 国产精品精品视频一区二区三区| 国产一区二区在线免费| 亚洲最大成人网色| 国产传媒久久久| 欧美国产一二三区| 国产aaa精品| 久久免费视频1| 日韩手机在线观看视频| 国产精品美女黄网| 97人人模人人爽人人少妇| 日韩精品一区二区三区久久| 国产精品区一区二区三含羞草| 国产区日韩欧美| 天堂а√在线中文在线| 日韩中文字幕在线看| 国产一区二区三区精彩视频| 亚洲a一级视频| 国产精品无码av无码| 成人综合视频在线| 日本高清不卡在线| 久久91亚洲精品中文字幕| 久久久神马电影| 国外色69视频在线观看| 亚洲一区二区久久久久久| www.日韩视频| av电影一区二区三区| 日韩伦理一区二区三区av在线| 国产精品久久久久99| 91精品中文在线| 欧美二区三区在线| 亚洲永久在线观看| 久久精品国产欧美亚洲人人爽| 国产女人精品视频| 日韩国产精品一区二区| 色综合久久久888| 日韩中文字幕视频在线观看| 成人黄动漫网站免费| 欧美精品一区免费| 亚州国产精品久久久| 国产精品久久久久久久久久尿| 久久婷婷开心| 国内精品久久国产| 天天夜碰日日摸日日澡性色av| 国产精品电影网| 久久久久久中文| 97人人模人人爽人人喊38tv| 国精产品一区一区三区有限在线| 日韩人妻精品无码一区二区三区| 在线播放豆国产99亚洲| 国产精品海角社区在线观看| 91精品国产99久久久久久红楼| 一本色道婷婷久久欧美| 国产av无码专区亚洲精品| 免费国产a级片| 日本手机在线视频| 国产综合在线观看视频| 精品免费一区二区三区蜜桃| 一区二区精品视频| 国产精品成人国产乱一区| 久久综合久久色| 国产精品一区二区你懂得| 精品999在线观看| 日韩精品资源| 欧美一区二区三区四区夜夜大片| 国产精品国产三级国产专区51| 久久国产成人精品国产成人亚洲| 超碰成人在线免费观看| 国产一区二区三区四区五区在线| 琪琪亚洲精品午夜在线| 日本a视频在线观看| 天天干天天色天天爽| 亚洲一二区在线| 中文字幕色呦呦| 欧美日韩国产成人在线| 国产精品久久av| 久久九九热免费视频| 国产成人无码av在线播放dvd| 国产不卡视频在线| 久久99精品久久久久子伦| 国产超级av在线| 久久亚洲高清| 久久久亚洲国产精品| 国产成人精品久久亚洲高清不卡| 国产精品av免费| 国产精品91视频| 久久人人爽人人爽人人片av高清| 97久久精品在线| 国产极品尤物在线| 久久久中精品2020中文| 久久er99热精品一区二区三区| 久久精品二区| 色777狠狠综合秋免鲁丝| 国产成人鲁鲁免费视频a| 国产精品三级网站| 久久在精品线影院精品国产| 久久国产精品久久精品| 亚洲一区二区三区四区视频| 大j8黑人w巨大888a片| 日韩欧美猛交xxxxx无码| 欧美亚洲国产另类| 韩国视频理论视频久久| 蜜桃在线一区二区三区精品| 国产在线观看福利| 国产精品综合久久久久久| 91久久在线视频| 日韩亚洲欧美中文高清在线| 国产精品电影久久久久电影网| 美女精品视频一区| 午夜精品一区二区三区在线视| 日韩欧美手机在线| 美女黄毛**国产精品啪啪| 成人av电影免费| 久久精品国产理论片免费| 国产精品视频入口| 中文字幕色一区二区| 日本精品一区二区三区在线播放视频| 日本a级片在线观看| 麻豆蜜桃91| 91精品久久久久久久久久久久久久| 久久久久久久久久伊人| 久久av.com| 日韩av成人在线| 国产一级黄色录像片| 久久久视频免费观看| 国产精品久久久久久久久久东京| 亚洲综合视频1区| 青青在线视频免费观看| 国产男女在线观看| 久久大片网站| 久久6免费高清热精品| 日本不卡视频在线播放| 国内精品久久国产| 91精品国产乱码久久久久久蜜臀| 精品国产欧美成人夜夜嗨| 伊人精品久久久久7777| 欧美一区免费视频| 91久久中文字幕| 国产精品久久九九| 日韩在线国产| 国产日产亚洲精品| 久久riav| 亚洲综合中文字幕在线观看| 激情综合在线观看| 久久亚洲精品欧美| 精品伦理一区二区三区| 日韩精品福利片午夜免费观看| 国产精品影院在线观看| 日韩视频一区在线| 亚洲国产婷婷香蕉久久久久久99| 国内久久久精品| 久久久久久伊人| 亚洲一区二区三区在线观看视频|