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

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

代做CMPT 477、代寫Java/python語言編程
代做CMPT 477、代寫Java/python語言編程

時間:2024-10-02  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



CMPT **7 / 777 Formal Verification
Programming Assignment 1
This assignment is due by 11:59pm PT on Wednesday Oct 2, 2024. Please submit it to Canvas. Late policy:
Suppose you can get n (out of 100) points based on your code and report
• If you submit before the deadline, you can get all n points.
• If you submit between 11:59pm PT Oct 2 and 11:59pm PT Oct 3, you get n − 10 points. • If you submit between 11:59pm PT Oct 3 and 11:59pm PT Oct 4, you get n − 20 points. • If you submit after 11:59pm PT Oct 4, you get 0 points.
Problem Description
(100 points) A solution to a graph coloring problem is an assignment of colors to vertices such that no two adjacent vertices have the same color. Formally, a finite graph G = (V,E) consists of vertices V = {v1,...,vn} and edges E = {(vi1,wi1),...,(vik,wik)}. The finite set of colors is given by C = {c1,...,cm}. A problem instance is given by a graph and a set of colors: the problem is to assign each vertex v ∈ V a color(v) ∈ C such that for every edge (v,w) ∈ E, color(v) ̸= color(w). Clearly, not all instances have solutions.
Please write a Java program with Z3 APIs to solve the graph coloring problem. The input is a file in the following format
NM
vi1 wi1
vi2 wi2
...
vik wik
where the first line contains two positive integers: N is the number of vertices, and M is the number of colors (separated by a space). Without loss of generality, we can assume V = {1,...,N} and C = {1,...,M}. Each of the rest line contains two positive integers vij and wij that are no more than N, which corresponds to an edge (vij , wij ).
The output is also a file. If an instance does not have a solution, write “No Solution” in the output file. Otherwise, write an assignment of colors to vertices in the following format.
v1 c1
v2 c2
...
vm ck
where vi denotes the vertex and ci denotes its color, i.e., color(vi) = ci, separated by a space.
You might want to use the following hints for encoding: • Introduce a boolean variable pv,c for color(v) = c.
• Describe the formula asserting every vertex is colored.
1

• Describe the formula asserting every vertex has at most one color.
• Describe the formula asserting that no two connected vertices have the same color.
2 Sample Input and Output
Suppose we have an input file input.txt that contains the following six lines
which represents the following graph
43 12 13 14 24 34
12
34
   After running the program, we can get a file with the following lines (not unique)
11 22 ** 43
It means the colors of vertices v1, v2, v3, v4 are c1, c2, c2, c3, respectively. 3 Compilation and Execution
Compilation. The provided codebase uses the Maven build system. After you enter the verif-sat direc- tory, 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 verif-sat-1.0.jar will be generated inside the target.
Execution. In the verif-sat directory, you can execute the program using the following command (use ;
instead of : on Windows)
$ java -cp lib/com.microsoft.z3.jar:target/verif-sat-1.0.jar sat.GraphColoring <in-path> <out-path>
where <in-path> is the path to the input file and <out-path> is the path to the output file. For example, you can run
$ java -cp lib/com.microsoft.z3.jar:target/verif-sat-1.0.jar sat.GraphColoring input.txt output.txt
You will see a runtime exception with message “To be implemented”, because the program is not imple- mented yet. After you finish the implementation, you should see a file named output.txt with the content as shown in Section 2.
2

4 Deliverable
A zip file called P1 SFUID.zip (SFUID is replaced with your 9-digit student ID number) that contains the followings:
• The verif-sat directory that contains your Java program. You can have multiple source files if you want, but you need to make sure the project can be built and executed in the way described in Section 3.
• A short report called P1 SFUID.pdf that describes your encoding and explains the design choices, features, issues (if any), and anything else that you want to explain about your program.
3

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp






 

掃一掃在手機打開當前頁
  • 上一篇:CVEN9612代寫、代做Java/Python程序設計
  • 下一篇:代做COMP3230、代寫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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          久久精品视频在线看| 久久精品国产77777蜜臀| 久久久伊人欧美| 欧美午夜电影一区| 亚洲精品视频一区二区三区| 久久亚洲不卡| 一区二区三区在线视频免费观看| 国产精品成av人在线视午夜片| 国产精品二区在线| 99精品欧美| 欧美另类在线播放| 亚洲免费大片| 欧美日韩一区二区视频在线 | 久久精品在线免费观看| 欧美特黄视频| 亚洲一区成人| 欧美性生交xxxxx久久久| 中文在线不卡视频| 国产精品成人v| 亚洲欧美日韩在线| 国产亚洲第一区| 久久米奇亚洲| 国产精品啊啊啊| 精品不卡一区| 欧美成人精品在线观看| 亚洲精品视频免费在线观看| 欧美乱在线观看| 亚洲性夜色噜噜噜7777| 另类综合日韩欧美亚洲| 亚洲欧洲一区二区在线播放| 欧美精品日日鲁夜夜添| 一区二区高清在线观看| 国产日韩一区| 你懂的国产精品永久在线| 夜夜狂射影院欧美极品| 麻豆精品传媒视频| 亚洲精品一区二区三区蜜桃久 | 亚洲国产欧美另类丝袜| 久久久久久婷| 亚洲最新视频在线播放| 国产精品亚洲一区| 久久久久久9999| 亚洲区国产区| 国产欧美日韩亚洲精品| 两个人的视频www国产精品| a91a精品视频在线观看| 国产精品一区二区三区免费观看| 亚洲片在线资源| 国产精品久久久久77777| 久久夜色精品国产亚洲aⅴ| 99在线观看免费视频精品观看| 欧美激情按摩| 午夜在线观看免费一区| 亚洲福利视频一区| 快播亚洲色图| 亚洲最新在线| 亚洲二区免费| 国产午夜精品一区理论片飘花| 亚洲欧美日韩一区在线| 亚洲欧洲一区二区在线播放| 国产麻豆综合| 欧美日韩免费一区| 一区二区三区日韩欧美| 精品成人免费| 国产精品国产成人国产三级| 老牛影视一区二区三区| 亚洲女女女同性video| 亚洲区第一页| 曰本成人黄色| 国产日韩欧美一区二区三区在线观看 | 亚洲视频高清| 亚洲激情啪啪| 黄色日韩在线| 国产精品免费观看视频| 欧美韩日一区二区| 久久一区二区三区国产精品| 性视频1819p久久| 亚洲视频狠狠| aa级大片欧美| 亚洲精品1234| 在线免费日韩片| 好吊妞**欧美| 好吊视频一区二区三区四区| 国产精品一区免费视频| 国产精品久久综合| 欧美日韩午夜激情| 欧美日韩视频免费播放| 欧美激情网友自拍| 亚洲一区二区三区久久| 国内精品久久久久影院优| 欧美激情在线狂野欧美精品| 久久一本综合频道| 快播亚洲色图| 美女诱惑黄网站一区| 欧美成人精品1314www| 欧美成人69| 欧美日本国产在线| 欧美日本三级| 欧美三级黄美女| 国产精品视频九色porn| 国产精品推荐精品| 国产日韩欧美在线播放| 国产在线播放一区二区三区| 国产综合自拍| 精品成人在线视频| 亚洲国产清纯| 亚洲色图在线视频| 亚洲福利av| 99国产精品久久久久久久久久 | 国语精品中文字幕| 欧美视频亚洲视频| 国产精品性做久久久久久| 国产女人aaa级久久久级| 国产一区自拍视频| 亚洲裸体视频| 一个人看的www久久| 午夜国产精品视频免费体验区| 亚洲国产日韩欧美一区二区三区| 国产精品自拍一区| 国内外成人免费视频| 亚洲激情在线激情| 激情综合色综合久久综合| 亚洲大片av| 亚洲香蕉成视频在线观看| 久久国产精品亚洲va麻豆| 老司机免费视频久久| 欧美在线观看视频一区二区三区 | 国产综合一区二区| 91久久精品国产| 亚洲欧美日韩成人高清在线一区| 一本久久综合亚洲鲁鲁| 欧美呦呦网站| 欧美日本久久| 一区二区自拍| 这里只有视频精品| 久久视频国产精品免费视频在线| 久久狠狠久久综合桃花| 欧美黄色aaaa| 国产视频一区欧美| 一本久道久久综合婷婷鲸鱼| 久久成人18免费网站| 欧美日韩日本视频| 在线播放中文一区| 亚洲欧美在线看| 欧美精品三区| 在线观看日韩欧美| 新67194成人永久网站| 欧美一区二区三区免费观看视频| 欧美一区免费视频| 欧美日韩在线大尺度| 国内精品久久久久影院 日本资源| 很黄很黄激情成人| 在线视频国产日韩| 性xx色xx综合久久久xx| 欧美日韩伦理在线免费| 1024成人| 久久精品国产第一区二区三区最新章节 | 在线观看精品| 欧美一区1区三区3区公司| 欧美激情综合五月色丁香小说| 欧美精品久久一区二区| 激情视频一区二区三区| 亚洲女优在线| 国产精品第2页| 日韩视频在线一区二区三区| 亚洲私人影院| 欧美精品一区二区在线播放| 国产精品白丝jk黑袜喷水| 日韩亚洲精品在线| 欧美一区二区三区男人的天堂| 久久久亚洲精品一区二区三区 | 午夜免费日韩视频| 国产精品久久福利| 正在播放欧美一区| 欧美日韩国产一区精品一区| 国产精品久久国产愉拍 | 欧美丰满高潮xxxx喷水动漫| 精品成人a区在线观看| 久久久久国产精品厨房| 国产一区二区三区高清在线观看| 亚洲激情网站| 欧美成人影音| 亚洲人体偷拍| 欧美日韩成人综合天天影院| 亚洲精品小视频| 欧美一区观看| 欧美日韩亚洲高清| 一区二区三区黄色| 欧美午夜视频| 午夜精品一区二区在线观看| 国产精品日韩精品| 欧美一级午夜免费电影| 国产一区二区三区在线观看免费视频| 亚洲日本一区二区| 欧美日韩美女在线| 亚洲在线黄色| 精品999在线播放| 免费看的黄色欧美网站| 日韩视频在线播放| 国产精品亚洲人在线观看|