討論串[理工] [資結]-交大97
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓4(4推 0噓 3→)留言7則,0人參與, 最新作者qazwsxee (小堯)時間16年前 (2010/02/21 20:18), 編輯資訊
0
0
0
內容預覽:
題目想找:是否存在 某個X子集,其整數和正好是B這個數. max(X') :取出集合中的最大值. count(X'): X'的元素個數. function main(). {. for(int i=1;i <= n;i++) //收集小於等於B的元素. {. if(Xi <= B). X' += X
(還有1343個字)

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者nonagoner (哈)時間16年前 (2010/02/21 16:44), 編輯資訊
0
0
0
內容預覽:
Given a set of integers X={x1,x2,...,xn} and an integer bound B, design an. algorithm that determines whether a subset X' of X exists such that all. e
(還有3個字)
首頁
上一頁
1
下一頁
尾頁