遞迴畫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
2021年1月21日 星期四
2021年1月20日 星期三
訂閱:
文章 (Atom)
熱門文章
-
教育部為提昇全民資安素養與電腦防護能力,本部於101年9月5日至11月5日舉辦「全民資安素養自我評量」活動,請在活動期間內踴躍上網檢測資訊安全素養認知程度,並有機會參與抽獎,詳情請參閱活動網站(網址: https://isafe.moe.edu.tw/event
-
C++ DP速解難題leetcode 3363 Find the Maximum Number of Fruits Collected [Python解請進]
-
二元搜尋sliding window cpp py3解Leetcode 2106難題Maximum Fruits Harvested After at Most K Steps [C++ solution請進]
-
Leetcode 342 Power of Four幾個C++一行解 [codes on Leetcode] https://leetcode.com/problems/power-of-four/solutions/7081839/9-ways-of-bit-manipula...
-
C++一行解Leetcode 326 Power of Three 利用3的羃次方的因數也是3的羃次方,導出一行C++程式碼 [解答請進]