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

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

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

          9000px;">

                国产精品入口麻豆九色| 亚洲成a人片在线不卡一二三区| 国产精品国产三级国产aⅴ中文| 精品在线免费观看| 久久精品夜色噜噜亚洲aⅴ| 国产一区二区三区香蕉| 国产精品国产三级国产普通话三级| 99re8在线精品视频免费播放| 五月天激情综合网| 精品剧情在线观看| 91在线免费播放| 蜜桃视频一区二区| 中文子幕无线码一区tr| 色播五月激情综合网| 精品亚洲成av人在线观看| 一区二区三区影院| 2021中文字幕一区亚洲| 日本精品一区二区三区高清| 毛片一区二区三区| 亚洲欧洲一区二区在线播放| 欧美久久久久久蜜桃| 国产精品18久久久久久久久 | 国产一区二区三区日韩| 亚洲老妇xxxxxx| 久久久精品影视| 6080亚洲精品一区二区| 91免费小视频| 国产精品小仙女| 日韩影视精彩在线| 亚洲最色的网站| 欧美国产日韩亚洲一区| 欧美成人猛片aaaaaaa| 欧日韩精品视频| 成人av影院在线| 国产成人午夜高潮毛片| 黄网站免费久久| 日韩成人精品在线观看| 午夜av电影一区| 亚洲乱码中文字幕综合| 中文字幕亚洲区| 中文字幕av一区二区三区免费看| 精品美女被调教视频大全网站| 欧美久久久久久蜜桃| 欧美三级日韩三级| 91一区一区三区| 成人av手机在线观看| 国产91精品一区二区麻豆亚洲| 蜜桃av一区二区在线观看| 视频一区欧美精品| 日日夜夜免费精品| 午夜精品久久久久久久99樱桃| 亚洲一区二区三区四区在线| 亚洲乱码国产乱码精品精小说| 亚洲欧美激情视频在线观看一区二区三区| 久久久精品日韩欧美| 久久青草国产手机看片福利盒子| 精品福利一二区| 国产清纯美女被跳蛋高潮一区二区久久w | 福利一区二区在线观看| 精品一区二区在线视频| 韩国精品主播一区二区在线观看| 麻豆精品视频在线观看视频| 美腿丝袜亚洲色图| 国产麻豆精品95视频| 国产精品18久久久久久久网站| 国产高清精品久久久久| 成人短视频下载| 色婷婷综合中文久久一本| 欧美色视频在线| 精品国产一区二区亚洲人成毛片 | 国产不卡一区视频| 国产91露脸合集magnet| 色呦呦网站一区| 欧美男同性恋视频网站| 精品久久久久久久久久久院品网| 久久久久久久精| 亚洲欧洲韩国日本视频| 日韩一区欧美二区| 成人黄色av电影| 欧美日韩国产不卡| 国产精品水嫩水嫩| 亚洲777理论| 国产一区二区剧情av在线| 91蝌蚪porny九色| 欧美电视剧免费观看| 国产欧美视频一区二区三区| 亚洲日本韩国一区| 久久精品国产亚洲a| 99久久99久久精品免费看蜜桃| 欧美日韩在线播放三区四区| 久久精品视频在线免费观看| 亚洲国产成人高清精品| 国产91精品欧美| 日韩一级完整毛片| 综合网在线视频| 国产一区二区日韩精品| 欧美剧情电影在线观看完整版免费励志电影 | 在线亚洲免费视频| 久久日一线二线三线suv| 亚洲国产成人av好男人在线观看| 国产精品主播直播| 91精品国产综合久久婷婷香蕉 | 高清在线不卡av| 欧美日韩日日骚| 中文字幕一区二区三区不卡| 国产在线国偷精品产拍免费yy| 欧美性受xxxx黑人xyx性爽| 国产精品免费久久久久| 玖玖九九国产精品| 欧美美女bb生活片| 亚洲一区二区三区视频在线播放 | 1024成人网| 成人免费视频国产在线观看| 欧美岛国在线观看| 蜜臀a∨国产成人精品| 在线中文字幕一区| 亚洲人吸女人奶水| 99精品国产视频| 国产精品护士白丝一区av| 国产又黄又大久久| 日韩一卡二卡三卡国产欧美| 调教+趴+乳夹+国产+精品| 在线观看日韩毛片| 亚洲主播在线观看| 欧美日韩午夜精品| 日韩影院在线观看| 日韩欧美亚洲另类制服综合在线| 免费人成精品欧美精品| 欧美一区2区视频在线观看| 日本亚洲免费观看| 精品国产一区二区国模嫣然| 激情图区综合网| 欧美激情一区不卡| 99视频精品在线| 亚洲国产日韩在线一区模特| 欧美日韩综合一区| 蜜桃视频一区二区三区在线观看| 日韩视频国产视频| 高清久久久久久| 成人免费视频在线观看| 精品视频一区三区九区| 日韩高清欧美激情| 国产亚洲成av人在线观看导航| 国产福利不卡视频| 亚洲欧美另类久久久精品| 欧美日韩一区二区不卡| 久久激五月天综合精品| 国产亚洲女人久久久久毛片| 91亚洲国产成人精品一区二三| 亚洲一区二区三区小说| 日韩一区二区三区在线视频| 国产激情偷乱视频一区二区三区| 国产精品女上位| 欧美性受xxxx黑人xyx性爽| 蜜臀av在线播放一区二区三区| 欧美极品少妇xxxxⅹ高跟鞋| 欧洲精品一区二区三区在线观看| 精品一区二区在线免费观看| 亚洲欧美aⅴ...| 亚洲精品在线观看网站| 色综合久久中文字幕综合网| 日本欧美一区二区| 中文字幕色av一区二区三区| 在线成人免费视频| 国产专区综合网| 日韩毛片一二三区| 91久久免费观看| 麻豆91在线播放免费| 亚洲精品一区二区精华| 9人人澡人人爽人人精品| 日韩av在线发布| 中文字幕一区二区三中文字幕| 欧美三级三级三级爽爽爽| 国产精品996| 久久99久久精品欧美| 一区二区三区欧美久久| 国产拍揄自揄精品视频麻豆| 欧美区视频在线观看| 97国产精品videossex| 国产制服丝袜一区| 天天操天天综合网| 亚洲色图欧美激情| 国产欧美日韩综合精品一区二区| 欧美疯狂做受xxxx富婆| 欧美一区二区三区免费观看视频| 日韩国产欧美三级| 国产精品午夜在线| 欧美一级精品在线| 色哟哟国产精品| 国产传媒久久文化传媒| 奇米四色…亚洲| 亚洲一区二区在线观看视频| 国产精品久久福利| 精品国产91亚洲一区二区三区婷婷 | 精品国产一区二区三区不卡| 69堂亚洲精品首页| 欧美日韩在线免费视频| 欧美日韩一区久久| 精品视频色一区| 欧美精品粉嫩高潮一区二区|