加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

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精品美女| 国产一区网站| 玖玖精品在线| 色综合久久网| 免费不卡中文字幕在线| 日韩免费成人| 久久这里只有精品一区二区| 欧美色网一区| 欧美资源在线| 在线一级成人| 国产精品色在线网站| 欧洲大片精品免费永久看nba| 香蕉久久一区| 91视频精品| 99国产精品私拍| 亚洲午夜电影| 精品久久久久久久| 日韩成人一区二区三区在线观看| 日本午夜精品视频在线观看| 韩国女主播一区二区| 热久久久久久久| 亚洲精彩视频| 国产一区观看| 久久在线电影| 国产精品17p| 九九九九九九精品任你躁| 久久悠悠精品综合网| 久久精品人人| 成人国产网站| 91亚洲成人| 亚洲一区二区伦理| 99综合精品| 偷偷www综合久久久久久久| 欧美在线观看视频一区| 999精品视频在这里| 1204国产成人精品视频| 日韩av影院| 日韩成人一级片| 精品久久国产一区| 亚洲三级网址| 亚洲涩涩av| 日本欧美高清| 日韩高清一级| 日韩中文字幕在线一区| 日韩电影在线免费| 日韩激情一二三区| 精品国产一区二区三区性色av| 亚洲人成伊人成综合图片| 国产欧美日韩在线一区二区| 不卡一区视频| 亚洲另类春色校园小说| 久久久国产精品入口麻豆| 日韩aaa久久蜜桃av| 日韩精品成人在线观看| 日本精品视频| 欧美五码在线| 欧美色图国产精品| 狠狠入ady亚洲精品经典电影| 亚洲激情偷拍| 蜜臀av亚洲一区中文字幕| 伊人网在线播放| 日韩欧美一区二区三区免费观看| 亚洲成人va| 久久精品国产成人一区二区三区| 久久狠狠亚洲综合| 麻豆精品视频在线观看| 成人动漫视频在线观看| 综合亚洲自拍| 精品久久久亚洲| 一区三区在线欧| 国产美女精品| 国产一二三在线| 丰满少妇一区| 国产麻豆一区二区三区| 日韩一区二区三区精品| 久久久久亚洲| 亚洲欧美日韩综合国产aⅴ| 国产精品99在线观看| 欧美日韩五区| 毛片不卡一区二区| 美女精品一区最新中文字幕一区二区三区| 亚洲国产合集| 久久久噜噜噜| 性欧美精品高清| 性欧美videohd高精| 欧美日韩 国产精品| 亚洲桃色综合影院| 欧美日一区二区| 老鸭窝毛片一区二区三区| 少妇精品视频一区二区免费看| 麻豆成人久久精品二区三区红 | 亚洲激精日韩激精欧美精品| 男人的天堂亚洲| 精品久久福利| 日韩成人一级大片| 女厕嘘嘘一区二区在线播放| 色综合天天综合网中文字幕| 日韩精品第二页| 日本中文字幕一区二区视频| 亚洲第一毛片| 日韩欧美一区二区三区免费看| 青青青伊人色综合久久| 亚洲三级av| 美女91精品| 久久中文字幕一区二区三区| 精品国产18久久久久久二百| 午夜精品视频| 九九久久国产| 日韩精品三级| 午夜亚洲影视| 亚洲精品乱码| 成人久久综合| 热三久草你在线| 精品一区二区三区中文字幕| 亚洲午夜av| 99精品国自产在线| 日韩成人免费看| 午夜在线视频观看日韩17c| 免费亚洲视频| 亚洲a一区二区三区| 久久uomeier| 日韩黄色一级片| 国产精品嫩草99av在线| 麻豆精品视频在线观看免费| 精品国产一区二区三区av片| 爱搞国产精品| 日韩av一区二区在线影视| 99国内精品| 一区二区三区在线| 天天做综合网| 日本不卡视频在线| 天天躁日日躁成人字幕aⅴ| 日韩久久综合| 日韩av二区在线播放| 免费一区二区视频| 国产亚洲精品美女久久久久久久久久| 国产成人一区| 国产午夜一区| 欧美日韩国产探花| 亚洲国产激情| 国产成人ay| 欧美69wwwcom| 国产九九精品| 亚洲高清激情| 美女视频黄 久久| 极品中文字幕一区| 美女www一区二区| 免费成人av| 欧美啪啪一区| 亚洲男人影院| 亚洲婷婷丁香| 久久久久久久| jizz国产精品| 99欧美精品| 久久福利综合| 一区二区在线| 日韩精品一级中文字幕精品视频免费观看 | 成人久久精品| 视频一区二区国产| 精品中文字幕一区二区三区四区| 久久电影tv| 色婷婷综合久久久久久| 日韩精品五月天| 亚洲一区久久| 中文无码日韩欧| 欧美天堂一区| 女同性一区二区三区人了人一| 99re8精品视频在线观看| 先锋影音久久久| 综合伊人久久| 国产欧美三级| 日韩专区欧美专区| 动漫视频在线一区| 日韩精品电影在线| 日韩中文字幕亚洲一区二区va在线| 久久九九精品视频| 久久精品国产99久久6| 午夜在线a亚洲v天堂网2018| 日本免费一区二区三区视频| 日本久久久久| 欧美中文字幕| 精品久久97| 999久久久国产999久久久| 中文在线а√在线8| 国产真实久久| 日韩**一区毛片| 日韩高清不卡在线| 色综合天天爱| 婷婷综合视频| 欧美三区视频| 综合激情网站| 免费毛片b在线观看| 一本色道久久综合亚洲精品不| 日韩欧美高清一区二区三区| 日一区二区三区| 亚洲人成午夜免电影费观看| 国产字幕视频一区二区|