我們解決八數(shù)碼問題,廣度優(yōu)先搜索可能會(huì)導(dǎo)致內(nèi)存不夠用,采用啟發(fā)式搜索,啟發(fā)函數(shù)為f(x)=g(x)+h(x) g(x)為該結(jié)點(diǎn)不同于目標(biāo)結(jié)點(diǎn)的個(gè)數(shù),h(x)為該結(jié)點(diǎn)的深度,選擇那f(x)結(jié)點(diǎn)最小的那個(gè)結(jié)點(diǎn)進(jìn)行擴(kuò)展, 引入了一個(gè)"擴(kuò)展數(shù)組[4]"(因?yàn)閿U(kuò)展的結(jié)點(diǎn)最多只有4個(gè)),該數(shù)組保存著某個(gè)結(jié)點(diǎn)的0點(diǎn)向各個(gè)方向的擴(kuò)展的結(jié)點(diǎn)對象,然后對該擴(kuò)展數(shù)組進(jìn)行分析,利用啟發(fā)函數(shù)在進(jìn)行遞歸擴(kuò)展...
標(biāo)簽: 搜索 數(shù)碼 內(nèi)存 啟發(fā)式
上傳時(shí)間: 2014-01-03
上傳用戶:semi1981
* 用拉格朗日插值法依據(jù)N個(gè)已知數(shù)據(jù)點(diǎn)即使函數(shù)值 * 輸入: n--已知數(shù)據(jù)點(diǎn)的個(gè)數(shù)N-1 * x--已知數(shù)據(jù)點(diǎn)第一坐標(biāo)的N維列向量 * y--已知數(shù)據(jù)點(diǎn)第二坐標(biāo)的N維列向量 * xx-插值點(diǎn)第一坐標(biāo) * 輸出: 函數(shù)返回值所求插值點(diǎn)的第二坐標(biāo)
標(biāo)簽: 數(shù)據(jù) 向量 xx 插值
上傳時(shí)間: 2013-11-28
上傳用戶:fhzm5658
* 本算法用最小二乘法依據(jù)指定的M個(gè)基函數(shù)及N個(gè)已知數(shù)據(jù)進(jìn)行曲線擬和 * 輸入: m--已知數(shù)據(jù)點(diǎn)的個(gè)數(shù)M * f--M維基函數(shù)向量 * n--已知數(shù)據(jù)點(diǎn)的個(gè)數(shù)N-1 * x--已知數(shù)據(jù)點(diǎn)第一坐標(biāo)的N維列向量 * y--已知數(shù)據(jù)點(diǎn)第二坐標(biāo)的N維列向量 * a--無用 * 輸出: 函數(shù)返回值為曲線擬和的均方誤差 * a為用基函數(shù)進(jìn)行曲線擬和的系數(shù), * 即a[0]f[0]+a[1]f[1]+...+a[M]f[M].
標(biāo)簽: 數(shù)據(jù) 函數(shù) 算法 最小二乘法
上傳時(shí)間: 2015-07-26
上傳用戶:
* 用埃特金插值法依據(jù)N個(gè)已知數(shù)據(jù)點(diǎn)計(jì)算函數(shù)值 * 輸入: n--已知數(shù)據(jù)點(diǎn)的個(gè)數(shù)N-1 * x--已知數(shù)據(jù)點(diǎn)第一坐標(biāo)的N維列向量 * y--已知數(shù)據(jù)點(diǎn)第二坐標(biāo)的N維列向量 * xx-插值點(diǎn)第一坐標(biāo) * eps--求解精度 * 輸出: 函數(shù)返回值所求插值點(diǎn)的第二坐標(biāo)
標(biāo)簽: 數(shù)據(jù) 向量 xx 插值
上傳時(shí)間: 2014-01-20
上傳用戶:maizezhen
* 用牛頓插值法依據(jù)N個(gè)已知數(shù)據(jù)點(diǎn)即使函數(shù)值 * 輸入: n--已知數(shù)據(jù)點(diǎn)的個(gè)數(shù)N-1 * x--已知數(shù)據(jù)點(diǎn)第一坐標(biāo)的N維列向量 * y--已知數(shù)據(jù)點(diǎn)第二坐標(biāo)的N維列向量 * xx-插值點(diǎn)第一坐標(biāo) * 輸出: 函數(shù)返回值所求插值點(diǎn)的第二坐標(biāo)
標(biāo)簽: 數(shù)據(jù) 向量 xx 牛頓
上傳時(shí)間: 2014-01-09
上傳用戶:亞亞娟娟123
這是一個(gè)計(jì)算曲線擬合的程序,用戶在記事本中輸入x,y值,然后程序會(huì)根據(jù)輸入的數(shù)值擬合出相近的曲線.
上傳時(shí)間: 2013-12-18
上傳用戶:shanml
OMAP1510/1610/2420系列處理器2-stage bootloader(X-Loader)文檔說明!適用于NAND Flash啟動(dòng)。
標(biāo)簽: bootloader X-Loader Flash stage
上傳時(shí)間: 2014-01-22
上傳用戶:chenjjer
PIECEWISE_EVAL: evaluates a piecewise function of x usage: y = PIECEWISE_EVAL(x,breakpoints,funs) arguments (input) x - vector or array of points to evaluate though the function breakpoints - list of n breakpoints, -inf and +inf are implicitly
標(biāo)簽: PIECEWISE_EVAL breakpoints evaluates piecewise
上傳時(shí)間: 2014-01-25
上傳用戶:xyipie
LINEINTRGAL Line Integral in a 2D Vector Field. LINEINTRGAL(X,Y,U,V,C) computes the line integral along the lines given in cell array C. X and Y define the coordinates of a rectangular grid over which U and V are defined. X and Y must be monotonic and 2D plaid as % produced by MESHGRID. X, Y, U, and V must all be the same size.
標(biāo)簽: LINEINTRGAL Integral computes integral
上傳時(shí)間: 2014-01-13
上傳用戶:hwl453472107
CRC-CCITT碼: G(x)=X16+X12+X5+1 多項(xiàng)式為 0x08408 用VC++寫的DLL 用VB調(diào)用的 有調(diào)用實(shí)例
標(biāo)簽: CRC-CCITT 0x08408 DLL 16
上傳時(shí)間: 2015-08-13
上傳用戶:
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1