Hello 算法 1.2.0 繁体中文 C# 版(backtracking) 回退指遇到不滿足約束條件的狀態時,撤銷前面做 出的選擇,回到上一個狀態 當越過葉節點、結束節點訪問、遇到值為 3 的 節點時終止搜尋,函式返回 剪枝 (pruning) 剪枝是根據問題特性和約束條件避免無意義的搜尋 路徑的方法,可提高搜尋效率 當遇到值為 3 的節點時,則不再繼續搜尋 第 13 章 回溯 www.hello‑algo.com 281 KnapsackDFS(int[] weight, int[] val, int i, int c) { // 若已選完所有物品或背包無剩餘容量,則返回價值 0 if (i == 0 || c == 0) { return 0; } // 若超過背包容量,則只能選擇不放入背包 if (weight[i - 1] > c) { return KnapsackDFS(weight, val, i - 1 1, c); } // 計算不放入和放入物品 i 的最大價值 int no = KnapsackDFS(weight, val, i - 1, c); int yes = KnapsackDFS(weight, val, i - 1, c - weight[i - 1]) + val[i - 1]; // 返回兩種方案中價值更大的那一個 return Math.Max(no, yes);0 码力 | 379 页 | 18.79 MB | 10 月前3
Blender v2.92 参考手册(繁体中文版)October 2011: Internationalization of the UI, improvements in the animation system and the GE, vertex weight groups modifiers, 3D audio and video, and bug fixes. 2.61 -- December 2011: The Cycles renderer Mode A mesh-only mode, that allows you to set your mesh's vertices colors (i.e. to "paint" them). Weight Paint Mode A mesh-only mode, dedicated to vertex group weighting. Texture Paint Mode A mesh-only the average location of all the marked points. Marking a point more than once will give it more weight in the averaged location. Multiple snapping targets. Mode: Header: Hotkey: Proportional Editing0 码力 | 3868 页 | 198.83 MB | 1 年前3
Blender v2.92 参考手册(繁体中文版)October 2011: Internationalization of the UI, improvements in the animation system and the GE, vertex weight groups modifiers, 3D audio and video, and bug fixes. 2.61 -- December 2011: The Cycles renderer Mode A mesh-only mode, that allows you to set your mesh's vertices colors (i.e. to "paint" them). Weight Paint Mode A mesh-only mode, dedicated to vertex group weighting. Texture Paint Mode A mesh-only the average location of all the marked points. Marking a point more than once will give it more weight in the averaged location. Multiple snapping targets. Mode: Header: Shortcut: Proportional Editing0 码力 | 3966 页 | 203.00 MB | 1 年前3
Blender v3.0 参考手册(繁体中文版)October 2011: Internationalization of the UI, improvements in the animation system and the GE, vertex weight groups modifiers, 3D audio and video, and bug fixes. 2.61 -- December 2011: The Cycles renderer Mode A mesh-only mode, that allows you to set your mesh's vertices colors (i.e. to "paint" them). Weight Paint Mode A mesh-only mode, dedicated to vertex group weighting. Texture Paint Mode A mesh-only the average location of all the marked points. Marking a point more than once will give it more weight in the averaged location. Multiple snapping targets. Mode: Header: Shortcut: Proportional Editing0 码力 | 4215 页 | 227.19 MB | 1 年前3
Blender v3.4 参考手册(繁体中文版)October 2011: Internationalization of the UI, improvements in the animation system and the GE, vertex weight groups modifiers, 3D audio and video, and bug fixes. 2.61 -- December 2011: The Cycles renderer available keyboard shortcuts. Modes can completely change the look of the viewport. For example, Weight Paint mode will shade the object to show its vertex weights, which are not normally visible. Modes Paint Mode A mesh-only mode that allows you to set your mesh's vertex colors (i.e. to "paint" them). Weight Paint Mode A mesh-only mode, dedicated to vertex group weighting. Texture Paint Mode A mesh-only0 码力 | 4469 页 | 258.38 MB | 1 年前3
Blender v3.3 参考手册(繁体中文版)October 2011: Internationalization of the UI, improvements in the animation system and the GE, vertex weight groups modifiers, 3D audio and video, and bug fixes. 2.61 -- December 2011: The Cycles renderer available keyboard shortcuts. Modes can completely change the look of the viewport. For example, Weight Paint mode will shade the object to show its vertex weights, which are not normally visible. Modes Paint Mode A mesh-only mode that allows you to set your mesh's vertex colors (i.e. to "paint" them). Weight Paint Mode A mesh-only mode, dedicated to vertex group weighting. Texture Paint Mode A mesh-only0 码力 | 4464 页 | 259.55 MB | 1 年前3
Blender v3.2 参考手册(繁体中文版)October 2011: Internationalization of the UI, improvements in the animation system and the GE, vertex weight groups modifiers, 3D audio and video, and bug fixes. 2.61 -- December 2011: The Cycles renderer Mode A mesh-only mode, that allows you to set your mesh's vertices colors (i.e. to "paint" them). Weight Paint Mode A mesh-only mode, dedicated to vertex group weighting. Texture Paint Mode A mesh-only the average location of all the marked points. Marking a point more than once will give it more weight in the averaged location. Multiple snapping targets. Mode: Header: Shortcut: Proportional Editing0 码力 | 4355 页 | 255.63 MB | 1 年前3
Blender v3.1 参考手册(繁体中文版)October 2011: Internationalization of the UI, improvements in the animation system and the GE, vertex weight groups modifiers, 3D audio and video, and bug fixes. 2.61 -- December 2011: The Cycles renderer Mode A mesh-only mode, that allows you to set your mesh's vertices colors (i.e. to "paint" them). Weight Paint Mode A mesh-only mode, dedicated to vertex group weighting. Texture Paint Mode A mesh-only the average location of all the marked points. Marking a point more than once will give it more weight in the averaged location. Multiple snapping targets. Mode: Header: Shortcut: Proportional Editing0 码力 | 4393 页 | 256.31 MB | 1 年前3
Blender v4.0 参考手册(繁体中文版)October 2011: Internationalization of the UI, improvements in the animation system and the GE, vertex weight groups modifiers, 3D audio and video, and bug fixes. 2.61 -- December 2011: The Cycles renderer available keyboard shortcuts. Modes can completely change the look of the viewport. For example, Weight Paint mode will shade the object to show its vertex weights, which are not normally visible. Modes Paint Mode A mesh-only mode that allows you to set your mesh's vertex colors (i.e. to "paint" them). Weight Paint Mode A mesh-only mode, dedicated to vertex group weighting. Texture Paint Mode A mesh-only0 码力 | 5220 页 | 303.08 MB | 1 年前3
Blender v3.6 参考手册(繁体中文版)October 2011: Internationalization of the UI, improvements in the animation system and the GE, vertex weight groups modifiers, 3D audio and video, and bug fixes. 2.61 -- December 2011: The Cycles renderer available keyboard shortcuts. Modes can completely change the look of the viewport. For example, Weight Paint mode will shade the object to show its vertex weights, which are not normally visible. Modes Paint Mode A mesh-only mode that allows you to set your mesh's vertex colors (i.e. to "paint" them). Weight Paint Mode A mesh-only mode, dedicated to vertex group weighting. Texture Paint Mode A mesh-only0 码力 | 4744 页 | 297.98 MB | 1 年前3
共 31 条
- 1
- 2
- 3
- 4













