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

相关推荐
jianglq37 分钟前
C++20 协程:异步编程的新纪元
算法·c++20
wniuniu_1 小时前
动态规划前---选----
算法·动态规划
lzb_kkk2 小时前
【Redis】redis5种数据类型(哈希)
开发语言·redis·算法·缓存·哈希算法
鱼跃鹰飞2 小时前
Leetcode面试经典150题-202.快乐数
算法·leetcode·面试
鱼跃鹰飞2 小时前
Leetcode面试经典150题-82.删除排序链表中的重复元素II
算法·leetcode·面试
云边有个稻草人4 小时前
【刷题】Day4--密码检查
开发语言·数据结构·笔记·算法
苦瓜汤补钙5 小时前
论文阅读:3D Gaussian Splatting for Real-Time Radiance Field Rendering
论文阅读·人工智能·算法·3d
LNTON羚通6 小时前
明烟明火检测算法、烟火检测、森林防火检测
大数据·网络·人工智能·算法·音视频
MogulNemenis6 小时前
力扣100题——技巧
算法·leetcode
每天瞎忙的农民工7 小时前
PHP常用的几种算法
算法·php