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

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

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++編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

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

          9000px;">

                色屁屁一区二区| 波多野结衣中文字幕一区| 国产精品乡下勾搭老头1| 日韩写真欧美这视频| 美女爽到高潮91| 日韩限制级电影在线观看| 麻豆精品一区二区综合av| 欧美精品一区二区三| 激情综合亚洲精品| 日本一区二区三区高清不卡| 成人av资源在线| 亚洲一区二区三区四区的 | 亚洲天堂精品在线观看| 色拍拍在线精品视频8848| 亚洲成人精品一区| 久久综合久久综合久久| av电影在线观看不卡| 亚洲成人动漫在线观看| 精品国产免费人成电影在线观看四季| 国产乱人伦偷精品视频不卡| 亚洲精品成人精品456| 日韩欧美国产高清| 成人av影院在线| 日本在线不卡视频| 国产精品久久福利| 欧美mv日韩mv国产网站app| 99久久久久免费精品国产| 麻豆国产精品777777在线| 亚洲色图欧美激情| 国产婷婷色一区二区三区四区| 色综合久久久久网| 国产一区二区三区美女| 日韩在线卡一卡二| 中文无字幕一区二区三区| 亚洲午夜久久久久久久久久久| 亚洲午夜影视影院在线观看| 精品99一区二区| 欧美综合色免费| 美国三级日本三级久久99 | 国产精品久久久久久久午夜片| 欧美一区二区三区啪啪| 欧美在线视频日韩| 99精品久久99久久久久| 国模大尺度一区二区三区| 亚洲va欧美va人人爽| 亚洲一区二区三区四区在线 | 国产精品乱码人人做人人爱 | 日韩欧美成人激情| 欧美日韩一区成人| 欧美色男人天堂| 欧美三级欧美一级| 欧美日本在线观看| 欧美日韩不卡一区| 欧美日韩国产首页在线观看| 在线日韩国产精品| 欧美日韩在线观看一区二区| 欧美三级中文字幕在线观看| 精品一区二区三区在线观看国产| 欧美高清一级片在线| 一本到高清视频免费精品| 日韩成人精品在线观看| 国产日韩欧美麻豆| 欧美激情在线一区二区三区| 欧美草草影院在线视频| 91精彩视频在线观看| 成人午夜碰碰视频| 国产激情视频一区二区三区欧美 | 国产69精品久久久久777| 日韩精品成人一区二区三区| 亚洲人一二三区| 国产精品毛片大码女人| 色老汉一区二区三区| 精品久久久久99| 欧美精品一区二区在线观看| 99精品一区二区| 国产成人午夜高潮毛片| 激情小说亚洲一区| 美日韩黄色大片| 男人操女人的视频在线观看欧美| 一区二区免费看| 亚洲黄色av一区| 久久久亚洲精品石原莉奈| 日韩精品一区二区三区在线播放| 日韩欧美色综合| 欧美大片在线观看一区二区| 精品卡一卡二卡三卡四在线| 欧美精品一区男女天堂| 国产香蕉久久精品综合网| 日韩久久免费av| 国产精品成人一区二区三区夜夜夜| 国产精品久久久久久福利一牛影视| 91麻豆精品国产91久久久久久| 欧美一a一片一级一片| 欧美卡1卡2卡| 26uuu精品一区二区| 久久精品亚洲麻豆av一区二区 | 国产在线精品视频| 国产在线播放一区| 波多野结衣中文字幕一区二区三区 | 专区另类欧美日韩| 一区二区三区成人| 国产精品短视频| 亚洲第一会所有码转帖| 99久久精品免费观看| 亚洲人成网站色在线观看| 亚洲另类在线一区| 亚洲成人精品一区| 久久精品av麻豆的观看方式| 国产真实乱偷精品视频免| 成人精品国产一区二区4080| 欧美亚洲另类激情小说| 精品三级av在线| 亚洲欧洲综合另类在线| 国产99精品国产| 91黄色免费版| www国产成人| 一区二区三区在线视频观看| 免费看欧美美女黄的网站| 成人av网站免费| 欧美白人最猛性xxxxx69交| 亚洲人成影院在线观看| 日韩一区二区三区视频| 免费成人美女在线观看.| 成人18视频在线播放| 蜜臀精品一区二区三区在线观看 | 视频一区二区中文字幕| 在线观看成人小视频| 欧美日韩黄视频| 久久综合九色综合欧美98| 国产午夜精品在线观看| 亚洲欧美另类在线| 成人午夜免费av| 国产成人精品免费网站| 依依成人精品视频| 欧美日韩在线综合| 国产高清不卡一区| 国产精品入口麻豆原神| 日本电影欧美片| 婷婷亚洲久悠悠色悠在线播放| 日韩欧美一区二区免费| 国产mv日韩mv欧美| 亚洲女人的天堂| 日韩一级高清毛片| 高清成人免费视频| 精品日韩欧美在线| 成人免费黄色大片| 精品久久人人做人人爽| 国产精品系列在线播放| 精品欧美一区二区在线观看| 欧美在线视频不卡| 亚洲影视在线观看| 色哟哟一区二区| 亚洲中国最大av网站| 9久草视频在线视频精品| 亚洲综合免费观看高清完整版| 成人禁用看黄a在线| 亚洲高清不卡在线| 欧亚洲嫩模精品一区三区| 天天影视涩香欲综合网| 欧美片在线播放| 国产精品一区在线观看你懂的| 精品国产91乱码一区二区三区 | 图片区小说区区亚洲影院| 欧美日本视频在线| 91亚洲精品久久久蜜桃网站| 91在线视频免费91| 欧美国产日本视频| 91啪亚洲精品| 国产精品视频你懂的| 国模套图日韩精品一区二区 | 欧美图片一区二区三区| 国产视频一区二区在线| 懂色av一区二区三区免费看| 亚洲三级久久久| 欧美日韩中文字幕精品| 亚洲伦在线观看| 色哟哟一区二区三区| 亚洲精品va在线观看| 久久久精品免费观看| 91在线精品秘密一区二区| 日日夜夜精品免费视频| 久久伊人蜜桃av一区二区| 欧美日韩精品一区二区天天拍小说| 性做久久久久久久免费看| 国产午夜精品理论片a级大结局| 国产精品一区二区在线播放| 亚洲成av人影院| 欧美国产日韩精品免费观看| 日韩免费观看2025年上映的电影| 成人丝袜18视频在线观看| 另类欧美日韩国产在线| 自拍偷自拍亚洲精品播放| 亚洲成人你懂的| 欧美韩国日本综合| 国产欧美视频一区二区三区| 91久久国产最好的精华液| 成人午夜视频网站| 久久国产生活片100| 日韩和欧美的一区| 国产精品美女久久久久久2018|