日韩精品一区二区三区高清_久久国产热这里只有精品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++編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 酒店vi設計 deepseek 幣安下載 AI生圖 AI寫作 aippt AI生成PPT 阿里商辦

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

    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一区精品变态类天堂| 国产一区二区三区观看| 欧美一级夜夜爽| 免费亚洲视频| 久久一区二区三区四区五区| 欧美性理论片在线观看片免费| 一区二区在线观看视频在线观看| 国产精品一区二区久久| 国产精品丝袜久久久久久app| 久久av一区二区三区漫画| aaa亚洲精品一二三区| 国产欧美婷婷中文| 伊人久久噜噜噜躁狠狠躁| 亚洲最新合集| 国产综合精品| 欧美三日本三级三级在线播放| 久久夜色精品国产噜噜av| 久久久亚洲欧洲日产国码αv| 欧美影院一区| 国产主播喷水一区二区| 亚洲免费观看高清完整版在线观看熊| 欧美激情欧美激情在线五月| 欧美一区二区在线观看| 免费亚洲网站| 久久蜜桃香蕉精品一区二区三区| 99在线精品视频在线观看| 国产精品成人免费精品自在线观看| 欧美天堂亚洲电影院在线观看| 一区二区三区欧美在线观看| 欧美一区久久| 亚洲人成啪啪网站| 国产毛片精品视频| 国产综合在线看| 久久丁香综合五月国产三级网站| 亚洲美女av网站| 久久这里只有| 欧美喷潮久久久xxxxx| 狠狠久久综合婷婷不卡| 欧美18av| 性色av一区二区怡红| 欧美一区二区视频免费观看| 久久黄金**| 亚洲欧美日韩在线一区| 在线免费高清一区二区三区| 国内成人自拍视频| 亚洲综合色丁香婷婷六月图片| 亚洲靠逼com| 一区二区三区我不卡| 国产精品成人免费视频| 欧美性事在线| 国产一区二区三区高清在线观看| 黄色成人在线免费| 精品电影一区| 亚洲欧美日韩国产综合精品二区| 在线播放视频一区| 欧美区一区二区三区| 一本久道久久综合狠狠爱| 女同性一区二区三区人了人一| 蜜臀久久久99精品久久久久久| 好吊色欧美一区二区三区视频| 美女主播精品视频一二三四| 亚洲精品久久久久中文字幕欢迎你| 国产精品视频免费在线观看| 午夜精品一区二区三区四区| 欧美天天影院| 欧美日韩精品一区| 久久久美女艺术照精彩视频福利播放| 国产欧美日韩不卡免费| 亚洲国产另类精品专区| 国产一区二区高清不卡| 在线免费精品视频| 国产麻豆精品theporn| 黄色亚洲大片免费在线观看| 亚洲激情小视频| 国产精品一区亚洲| 亚洲欧美电影在线观看| 99国产精品99久久久久久| 99re6热在线精品视频播放速度| 一区二区三区在线免费视频| 99精品国产热久久91蜜凸| 久久久久综合一区二区三区| 国产精品一区二区男女羞羞无遮挡| 国产精品99久久久久久有的能看| 亚洲美女av网站| 国产精品视频yy9299一区| 一区二区不卡在线视频 午夜欧美不卡在| 欧美精品久久久久久久久老牛影院| 91久久精品日日躁夜夜躁欧美| 欧美不卡一卡二卡免费版| 欧美一级艳片视频免费观看| 欧美一区免费视频| 亚洲日韩成人| 亚洲图片欧美午夜| 在线免费观看日本欧美| 亚洲三级观看| 亚洲视频999| 国产精品一区二区在线| 永久免费精品影视网站| 国产日韩一区| 欧美午夜精品久久久久久浪潮| 免费成人激情视频| 亚洲激情视频在线播放| 亚洲在线视频观看| 欧美日韩国产a| 在线色欧美三级视频| 国产一区在线看| 久久亚洲高清| 欧美精品粉嫩高潮一区二区| 99这里只有久久精品视频| 久久免费高清| 欧美日韩综合不卡| 亚洲午夜高清视频| 欧美激情一区| 国产精品女同互慰在线看| 久久婷婷亚洲| 香蕉成人久久| 欧美人成网站| 欧美久久成人| 欧美高清在线视频观看不卡| 美女诱惑黄网站一区| 有码中文亚洲精品| 亚洲夜间福利| 欧美三级精品| 亚洲精品美女| 激情亚洲一区二区三区四区| 99在线视频精品| 国产一区二区高清| 久久男人av资源网站| 国产精品免费看久久久香蕉| 亚洲国产精品黑人久久久| 亚洲欧美视频在线观看| 国产精品视频男人的天堂| 亚洲黑丝一区二区| 一区二区欧美精品| 国产精品99久久久久久久女警| 在线观看精品视频| 亚洲免费一区二区| 亚洲电影自拍| 亚洲一区二区精品视频| 欧美一级久久久久久久大片| 欧美在线在线| 夜夜嗨av一区二区三区免费区| 欧美主播一区二区三区| 欧美日韩在线播放三区四区| 亚洲国产精品t66y| 91久久精品美女高潮| 一区二区三区 在线观看视| 亚洲影视九九影院在线观看| 国产精品青草综合久久久久99| 国产日韩亚洲| 亚洲国产日韩欧美在线99| 欧美激情精品| 欧美在线视频一区二区三区| 午夜精品一区二区三区在线播放| 欧美高清自拍一区|