![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
分支界限
文章平均质量分 77
y_angpeng
这个作者很懒,什么都没留下…
展开
-
电路板排列问题分支限界解法(python)
from heapq import * from random import randint n1 = [4,5,6] n2 = [2,3] n3 = [1,3] n4 = [3,6] n5 = [7,8] total = [] bestd = 0 bestx = [] b = [] hlist = [] from heapq import * from random import randin原创 2014-09-05 21:05:34 · 3145 阅读 · 0 评论 -
用两个量筒得出一定加仑水的问题
class node(object): def __init__(self): self.cura = 0 self.curb = 0 self.x = [] self.pairs = [[0,0]] def append_node(wlist,tempa,tempb,i,old): new_node = node(原创 2014-09-06 08:11:40 · 484 阅读 · 0 评论