



下載本文檔
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、minimum-weight triangulationthe minimum-weight triangulation problem is the problem of finding a triangulation of minimal total edge length. that is, an input polygon or the convex hull of an input point set must be subdivided into triangles that meet cdgc-to-cdgc and vcrtcx-to-vcrtcx, in such a way
2、 as to minimize the sum of the perimeters of the triangles.2. question:suppose a convex polygon has vertexes 坨,.,此 the cost of a triangulation is just the sum of the weights of its component triangles. please design and implement a program to find a triangulation with the minimum cost.2.1 input: the
3、 number of vertexes of a convex polygon and the coordinates of all the vertexes. get the testing data in file fc,2.2 output: the sum of the perimeters of its component triangles and the corresponding point-to-point links. please use the label used in the test data file.3. theoretical analysisy。vnif
4、the convex edge shape of p (n + 1) = vo, v 1,.vn the optimal t contains vovkvn triangle, lv=kv=ni, the right of the t include three parts: the weight of (he triangle vovkvn , sub polygons (vo, vl,.vk) and vk, v(k + l),.vii.we can assert that subdivision which determined by t polygon triangle is opti
5、mal too.because if a vo, vl,.vk or vik, vk + l,.,.vn will lead to the right of the smaller triangle subdivision t isnot optimal triangle subdivision of contradictions.tijoj 刁for t |1| n, can be used by a bottom-up. from the chain length (polygon edges) of 2, each time for t i j, wc choose the minimu
6、m value, and record the minimum value of k, according lo the nature of optimal substructure, we can finally calculate the minimum t 1 n.4. pseudo-codeinitial t nn pnn;for each i=jj=i+r;flag=«min=+ 8 ;*or(k-i: j)(lengths»length( <v(i-l)vkvj); sum-tikkk*l j>lengths; if(sum<min)(min=
7、sum;flag*)pij=«ag;)/outputfind( int i,int j,int p () if(i=j) return ;find(i,pij,p);find(piju,j,p);print(mtriangle : vr(e)+”,5>running resultwhen n=io* pcoblenu ? jdvdjoc et dec i j rationc project migrationterminated> triagl java application) damyeclipsexmyedipscxbinarcom.sun 入rd個(gè)tn10核嘴由i
8、m: v2,v4,v3m.蘭引分3女;fljv4,v2三庠5 v4jv6jv5=色機(jī)分璋/ v1uv4mm知5巾 v6,v8,v7二免主分攻巾v6,v9,v8s+.m v1,v9,v6ve,v9,viwhen n=30融 problem: javadoc 匿 declaration戶(hù) project migration.::【.,.,: ii,j a33:d:',n' ezlis-':.biry' ,on "ih、w.,.入矛牛金:3。|z角,.分厚.,.v0,v2,v1mm" v0,v4»v2- v4,v6,v5三購(gòu)配分e耳說(shuō)丹刀京.v7.v9,v8m竺生丹jj.v v4,v9,v7v9jv11,v10三免鑰分京/ v11,v13,v12vnvivn v9,v14,v11二角登分理.4 v1sm7m6n角生分厚.*. vm,v17,v15v9,v17,v14w免象分用吱v4,v17,v9三購(gòu)強(qiáng)分jf* y18jv20,v19m«!免分jj京.vls,v2i,v2e.坎外 71721,718m"泌m
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 加盟連鎖項(xiàng)目服務(wù)合同范本
- 農(nóng)村小區(qū)搬遷合同范本
- 中學(xué)食堂承包團(tuán)隊(duì)合同范本
- 人力股分紅合同范例
- 個(gè)人技術(shù)投資合同范本
- 制造模具合同范本
- 中建施工員合同范本
- 中藥原料采購(gòu)合同范本
- 不需交社保員工合同范本
- 傳媒公司培訓(xùn)合同范例
- 人教版(2019) 選擇性必修第三冊(cè) Unit 1 Art Assessing Your Progress課件
- 數(shù)學(xué)與日常生活的關(guān)系
- 機(jī)械設(shè)計(jì)傳送帶設(shè)計(jì)
- 圖解國(guó)家數(shù)據(jù)局《“數(shù)據(jù)要素×”三年行動(dòng)計(jì)劃(2024-2026 年)(征求意見(jiàn)稿)》
- 老年人預(yù)防跌倒健康宣教
- 7S管理檢查表文檔
- 《SolidWorks建模實(shí)例教程》第3章 基礎(chǔ)特征及實(shí)例
- APQP新產(chǎn)品開(kāi)發(fā)計(jì)劃ABCD表
- SAP-QM質(zhì)量管理模塊前臺(tái)操作詳解(S4系統(tǒng))
- 初中學(xué)生數(shù)學(xué)學(xué)習(xí)狀況問(wèn)卷調(diào)查及分析報(bào)告
- 印刷服務(wù)投標(biāo)方案(技術(shù)方案)
評(píng)論
0/150
提交評(píng)論