遞迴畫fractal set Sierpinski三角形用 opencv C++。不就是在適當的位置畫三角形?遞迴演算就是用系統堆疊stack,這種效果跟玩河內塔還真像!如果以n-ary tree的資料結構來看,都是Depth-First Search的演算(Breath-First Search的演算要用queue)。「C++河內塔遞迴實作Recursive algorithm for Hanoi tower&用fstream寫進文字檔」https://anwendeng.blogspot.com/2017/04/425videoc.html
herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (Atom)
熱門文章
-
計算你上學期加權平均
-
用 while loop 算 s=3*3+4*4+....88*88
-
請用C/C++ 程式計算 S=1*1+2*2+3*3+4*4+.....+20*20=?
-
輸出課表代碼矩陣 Hint: 2-D array, double-for loop
-
輸出字串20次
-
產生10個0~99的亂數存在a[10] 中
-
data structure 期中考乙
-
33, 45, 87, 99, 27 算平均
-
請簡易說明Bitmap, Sleep的使用方式 請參考 https://anwendeng.blogspot.com/2020/03/visual-studio-2019-cwindows-formbitmap.html https://anwendeng.blogsp...
沒有留言:
張貼留言