[LS]The Constraint Satisfaction Problems

A CSP is a tuple (Z, D, C), where Z is a finite set of variables, D defines a finite set Dx, called the domain of x, for each x 2 Z, and C is a finite set of constraints restricting the combination of values that the variables can take。

可以理解为

z = {x1 , x2 , x3 ... xn}

D = {D1 , D2 , D3 , ... ,Dn} 其中Di = [ai,bi]为xi的范围

C = {C1 , C2,...,Cm} 其中Cj = 一个限制条件,例如 x1 + x2 > 10

CSP 可以简单理解为一个多元方程寻求最优解,实际举例有n皇后问题,有点像多模态。

用LS来解决有很大好处:[]

(1) they use very little memory---usually a constant amount; and (2) they can often find reasonable solutions in large or infinite (continuous) state spaces for which systematic algorithms are unsuitable.

相关推荐
mit6.8247 分钟前
几何|阻碍链
算法
有一个好名字9 分钟前
力扣-小行星碰撞
算法·leetcode·职场和发展
MM_MS9 分钟前
Halcon图像锐化和图像增强、窗口的相关算子
大数据·图像处理·人工智能·opencv·算法·计算机视觉·视觉检测
lamentropetion17 分钟前
E - Equal Tree Sums CF1656E
算法
代码游侠18 分钟前
应用——智能配电箱监控系统
linux·服务器·数据库·笔记·算法·sqlite
Xの哲學34 分钟前
Linux Platform驱动深度剖析: 从设计思想到实战解析
linux·服务器·网络·算法·边缘计算
逑之40 分钟前
C语言笔记11:字符函数和字符串函数
c语言·笔记·算法
栈与堆1 小时前
LeetCode-1-两数之和
java·数据结构·后端·python·算法·leetcode·rust
不知名XL1 小时前
day20 回溯算法part02
算法
嵌入式进阶行者1 小时前
【算法】TLV格式解析实例:华为OD机考双机位A卷 - TLV解析 Ⅱ
数据结构·c++·算法