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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          国产精品视频大全| 国产精品一国产精品k频道56| 在线欧美日韩国产| 欧美成人精品不卡视频在线观看| 亚洲黄色尤物视频| 欧美日韩一区二区三| 亚洲一二三区在线| 韩国av一区二区三区在线观看| 欧美电影打屁股sp| 午夜精品视频一区| 亚洲国产精品专区久久| 欧美伦理视频网站| 99国产精品久久久久久久成人热| 免费成人小视频| 亚洲图色在线| 亚洲丰满少妇videoshd| 欧美日韩一区二区三区在线视频 | 亚洲日本视频| 国产精品自拍在线| 欧美激情中文字幕一区二区| 亚洲欧美日韩中文视频| 亚洲精品国产日韩| 国产精品日韩欧美一区二区| 久久精品国产亚洲a| 一区二区三区视频在线观看| 在线欧美日韩| 国产欧美一区二区精品性色| 欧美三级第一页| 久久国产精品高清| 亚洲欧美高清| 亚洲视频一区在线| 最新国产成人av网站网址麻豆| 国产中文一区二区三区| 国产精品久久久久天堂| 欧美日韩中文字幕日韩欧美| 免费看的黄色欧美网站| 久久不见久久见免费视频1| 亚洲免费成人av| 99re这里只有精品6| 亚洲全部视频| 亚洲黄色免费电影| 亚洲狠狠婷婷| 亚洲国产婷婷| 亚洲国产成人精品久久久国产成人一区 | 国产亚洲欧美日韩在线一区| 欧美四级伦理在线| 欧美午夜电影完整版| 欧美国产三区| 欧美久久久久免费| 欧美国产日韩一区| 久久激情网站| 亚洲欧美卡通另类91av | 亚洲一区二区三区免费观看| 亚洲高清在线精品| 狠狠色丁香久久婷婷综合丁香| 国产精品日韩精品欧美精品| 国产欧美在线观看| 国内精品久久久久国产盗摄免费观看完整版| 国产精品久久7| 国产精品视频久久| 国产欧美亚洲视频| 狠狠干狠狠久久| 国产日韩免费| 亚洲国产91精品在线观看| 亚洲精品在线一区二区| 日韩亚洲欧美精品| 午夜精品一区二区三区电影天堂 | 国产自产高清不卡| 亚洲大片av| 在线视频一区二区| 欧美伊久线香蕉线新在线| 久久亚洲精品伦理| 欧美日韩一区二区在线观看视频 | 免费日韩一区二区| 欧美婷婷在线| 激情六月婷婷综合| 在线一区视频| 免费在线观看日韩欧美| 欧美午夜在线视频| 在线欧美日韩国产| 亚洲免费在线视频| 欧美国产第一页| 国产亚洲欧洲| 中文国产亚洲喷潮| 欧美成人亚洲| 国产亚洲欧美日韩美女| 日韩视频亚洲视频| 久久久99免费视频| 国产精品久久久91| 国产自产高清不卡| 亚洲美女尤物影院| 久久国产免费看| 国产精品v日韩精品| 亚洲成人在线| 欧美中文字幕视频| 国产精品美女久久久免费| 亚洲激情av| 久久偷看各类wc女厕嘘嘘偷窃| 欧美性做爰猛烈叫床潮| 亚洲激情国产精品| 久久亚洲精选| 国产亚洲人成a一在线v站| 亚洲桃花岛网站| 欧美人牲a欧美精品| 激情成人在线视频| 久久av最新网址| 国产精品天天看| 亚洲精品国产无天堂网2021| 亚洲伊人一本大道中文字幕| 久久国产加勒比精品无码| 国产精品一区二区在线观看网站| 一本色道久久综合| 欧美日韩不卡| 在线视频日韩| 欧美色精品天天在线观看视频| 亚洲精品1区| 欧美极品欧美精品欧美视频| 亚洲经典在线| 欧美激情一区二区三级高清视频| 在线看欧美视频| 欧美不卡福利| 亚洲免费精品| 国产精品伦子伦免费视频| 一区二区三区高清视频在线观看 | 久久亚洲视频| 91久久在线播放| 欧美日韩国产经典色站一区二区三区| 亚洲国产免费| 欧美午夜一区二区| 久久爱另类一区二区小说| 狠狠色丁香久久综合频道| 你懂的视频一区二区| 9久草视频在线视频精品| 欧美日韩一区二| 午夜视频在线观看一区| 好吊色欧美一区二区三区视频| 久久午夜av| 亚洲电影欧美电影有声小说| 久久国产乱子精品免费女 | 欧美在线一二三四区| 亚洲成色www8888| 欧美性一区二区| 久久婷婷麻豆| 亚洲午夜激情在线| 国外成人在线视频| 欧美另类极品videosbest最新版本| 亚洲午夜视频在线| 激情欧美亚洲| 国产精品久久九九| 亚洲欧美中文在线视频| 国产精品综合网站| 久久久999精品视频| 亚洲免费av电影| 国内揄拍国内精品久久| 欧美视频网址| 美女任你摸久久| 欧美亚洲三区| 99日韩精品| 亚洲国产精品久久久久婷婷老年 | 女同性一区二区三区人了人一| 亚洲一区二区欧美| 亚洲电影免费观看高清完整版在线观看 | 牛人盗摄一区二区三区视频| 亚洲一区二区影院| 亚洲乱码一区二区| 久久国产一区二区三区| 99re6热只有精品免费观看| 亚洲国产成人久久综合| 在线观看一区视频| 在线国产精品播放| 在线观看免费视频综合| 怡红院精品视频| 亚洲人成小说网站色在线| 亚洲第一二三四五区| 亚洲激情在线| 亚洲视频在线观看免费| 亚洲一区三区视频在线观看| 亚洲欧美日韩精品久久| 久久国产主播| 欧美成人日本| 国产精品99免视看9| 国产日韩欧美一区二区| 精品va天堂亚洲国产| 亚洲另类自拍| 亚洲午夜伦理| 久久精品人人| 欧美美女福利视频| 国产精品每日更新| 国产有码一区二区| 亚洲国产精品ⅴa在线观看 | 亚洲激情不卡| 中文成人激情娱乐网| 久久成人免费网| 欧美紧缚bdsm在线视频| 国产精品日韩精品| 亚洲国产91| 亚洲女优在线| 欧美激情一区二区三级高清视频| 国产精品久久波多野结衣| 精品88久久久久88久久久|