没有合适的资源?快使用搜索试试~ 我知道了~
18364066_卢彦作_A021
需积分: 0 0 下载量 151 浏览量
2022-08-03
19:05:05
上传
评论
收藏 684KB PDF 举报
温馨提示
试读
5页
1. Provide formulations for each of the following problems as CSPs: 2. Consider
资源详情
资源评论
资源推荐
AI(Fall 2020)-Assignment 2: CSP and KR
1. Provide formulations for each of the following problems as CSPs:
specify the variables, domains and constraints.
(a) Magic square: An order 3 magic square is a square grid filled with distinct positive
integers in the range such that the sums of the integers in each row, column and
diagonal are equal.
Variables:
Domains:
Constraints:
Row constraints:
Column constraints:
Diagonal constraints:
(Note: is a positive integer)
(b) Independent set: Given a graph and a number , find an independent set of size , that is, a set
of vertices, no two of which are adjacent.
Variables: (Note: is the number of vertices in graph)
Domains: (Note: representing not involved in set, 1 representing involved in
set)
Constraints:
(Note: representing the edge set of graph)
(c) Crypto-arithmetic puzzle: . We want to replace each letter by a different
digit so that the equation is correct.
Variables:
Domains:
Constraints:
All-diff( )
马虫医生
- 粉丝: 24
- 资源: 324
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0