搜索资源列表
BestFirstSearch_HeapAlgo
- 1. 此程式執行將從路徑讀取一個文字檔 ( 路徑:C:INPUT.TXT ) 2. 執行結束會產生一個排序後的文字檔 ( 路徑:C:OUTPUT.TXT ) 3. 給定的初始盤面一定有解 本程式採用的演算法策略為Best-first search with branch-and-bound algorithm 1. 使用Max heap 實作Priority queue 2. 使用bound function 估計目前盤面走至答案最少需要幾步 第一部分 所謂 h
BubbleSort
- 冒泡排序 (稳定)时间性能O(n^2) 输入: A:待排序数组 使用VS2010实现-Bubble Sort (Stable) time performance O (n ^ 2) Input: A: array to be sorted Achieved using VS2010