日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

代做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++編程設計
  • 無相關信息
    合肥生活資訊

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

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        亚洲国产欧美在线| 国产精品av一区二区| 欧美日韩在线观看视频| 新片速递亚洲合集欧美合集| 美女黄毛**国产精品啪啪| 一本色道**综合亚洲精品蜜桃冫| 欧美激情视频网站| 久久蜜桃香蕉精品一区二区三区| 国内久久婷婷综合| 欧美国产一区在线| 鲁大师影院一区二区三区| 狠狠色综合色区| 欧美在线视频在线播放完整版免费观看| 亚洲一区二区综合| 在线观看一区欧美| 国产精品综合av一区二区国产馆| 欧美激情乱人伦| 久久精品女人天堂| 久久精品99无色码中文字幕| 一区二区在线视频| 国产精品av一区二区| 国产一区视频观看| 一区二区三区四区蜜桃| 亚洲激情图片小说视频| 国产综合网站| 欧美精品免费在线| 久久综合色婷婷| 亚洲精品国产拍免费91在线| 欧美激情亚洲综合一区| 久久香蕉精品| 免费高清在线视频一区·| 亚洲一区二区三区精品在线观看| 9久re热视频在线精品| 亚洲免费电影在线| 国产欧美精品国产国产专区| 亚洲色诱最新| 午夜精品久久久久久久99热浪潮| 有码中文亚洲精品| 一区二区三区不卡视频在线观看| 伊人精品视频| 亚洲欧美视频在线| 亚洲先锋成人| 女人天堂亚洲aⅴ在线观看| 午夜精品一区二区三区在线播放| 国产情人综合久久777777| 日韩午夜激情| 国产精品毛片a∨一区二区三区|国| 亚洲人成小说网站色在线| 久久精品免费播放| 国产精品xnxxcom| 国产欧美日韩视频一区二区三区| 欧美精品国产一区| 激情校园亚洲| 亚洲第一精品电影| 国产毛片精品国产一区二区三区| 国产精品久久999| 亚洲欧美久久久久一区二区三区| 欧美在线视频播放| 欧美wwwwww| 欧美日韩综合视频| 伊人久久亚洲热| 伊人精品视频| 欧美在线观看天堂一区二区三区| 狠狠88综合久久久久综合网| 亚洲欧美日韩一区二区三区在线| 国产精品日韩精品欧美在线| 亚洲第一页中文字幕| 99国产欧美久久久精品| 夜夜嗨av一区二区三区免费区| 欧美a级理论片| 亚洲午夜久久久久久尤物| 久久综合精品一区| 韩国在线一区| 韩国av一区二区三区四区| 国语自产偷拍精品视频偷| 欧美成人免费va影院高清| 影音先锋亚洲一区| 影音先锋亚洲精品| 亚洲国产精品一区二区尤物区| 亚洲一区二区三区三| 久久精品人人做人人综合| 欧美jizzhd精品欧美巨大免费| 一区二区三区国产盗摄| 亚洲裸体在线观看| 欧美久久成人| 美女啪啪无遮挡免费久久网站| 99视频在线精品国自产拍免费观看| 国产欧美一区二区三区另类精品| 国产一区二区三区高清在线观看| 欧美色视频一区| 欧美精品一区二区三区在线看午夜| 国产精品99久久不卡二区| 久久精品视频在线| 性色av一区二区三区在线观看| 久久青青草综合| 久久国产视频网站| 国产欧美日韩综合一区在线播放| 国产精品久久午夜夜伦鲁鲁| 91久久久久久久久久久久久| 在线视频观看日韩| …久久精品99久久香蕉国产| 香蕉免费一区二区三区在线观看| 在线视频中文亚洲| 国产视频丨精品|在线观看| 亚洲在线成人| 亚洲视频综合在线| 免费美女久久99| 亚洲一区在线观看免费观看电影高清| 久久国内精品自在自线400部| 美女福利精品视频| 一本一本a久久| 久久国产精品久久w女人spa| 亚洲综合视频一区| 激情懂色av一区av二区av| 久久精品中文字幕一区| 亚洲国产va精品久久久不卡综合| 国产伦精品一区二区三区在线观看| 一区二区欧美在线| 国产精品黄视频| 国产三级欧美三级| 激情视频一区二区三区| 欧美色道久久88综合亚洲精品| 国产午夜一区二区三区| 在线欧美不卡| 亚洲国产日韩一区二区| 久久夜色精品国产亚洲aⅴ| 亚洲精品欧美日韩| 在线观看成人av电影| 欧美激情精品久久久久久黑人| 羞羞色国产精品| 亚洲天堂黄色| 欧美日韩国产在线播放| av成人免费观看| 亚洲三级电影在线观看| 亚洲精品免费一区二区三区| 久久久www| 欧美午夜精品一区二区三区| 国产精品普通话对白| 国产亚洲a∨片在线观看| 中文精品视频一区二区在线观看| 欧美视频免费在线| 欧美一区二区| 国产精品久久午夜夜伦鲁鲁| 韩国精品一区二区三区| 欧美一区久久| 国产精品久久久久久久免费软件| 亚洲国产电影| 国产欧美日韩视频一区二区三区| 亚洲日韩成人| 亚洲国产精品久久91精品| 日韩亚洲欧美在线观看| 欧美日本一区二区高清播放视频| 久久综合伊人77777麻豆| 在线免费精品视频| 在线视频你懂得一区| 亚洲国产精品v| 国产日韩欧美夫妻视频在线观看| 国产喷白浆一区二区三区| 国产一区二区三区精品欧美日韩一区二区三区| 国产日韩欧美一区二区三区在线观看| 欧美99久久| 一色屋精品视频免费看| 99这里有精品| 亚洲一区二区三区欧美|