[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.

相关推荐
代码游侠4 分钟前
复习——线程(pthread)
linux·运维·开发语言·网络·学习·算法
papaofdoudou13 分钟前
基于QEMU 模拟intel-iommu的sva/svm demo环境搭建和验证
算法·机器学习·支持向量机
再__努力1点13 分钟前
【78】HOG+SVM行人检测实践指南:从算法原理到python实现
开发语言·人工智能·python·算法·机器学习·支持向量机·计算机视觉
scx2013100417 分钟前
20251214 字典树总结
算法·字典树
leiming620 分钟前
MobileNetV4 (MNv4)
开发语言·算法
YGGP34 分钟前
【Golang】LeetCode 136. 只出现一次的数字
算法·leetcode
YGGP42 分钟前
【Golang】LeetCode 169. 多数元素
算法·leetcode
顾安r1 小时前
11.20 脚本网页 数学分支
算法·数学建模·html
少许极端1 小时前
算法奇妙屋(二十)-回文子串/子序列问题(动态规划)
java·算法·动态规划·图解·回文串·回文序列
天赐学c语言1 小时前
12.20 - 反转链表II && 传值和传地址的区别
数据结构·c++·算法·链表·leecode