算法 | 数据结构与算法(代码版)
=================================================
博主github:https://github.com/MichaelBeechan
博主CSDN:https://blog.csdn.net/u011344545
=================================================
代碼:https://github.com/MichaelBeechan/Data_Structures_and_Algorithms 歡迎Fork和Star
Data_Structures_and_Algorithms(數據結構與算法)
Software:Code::Blocks 17.12
數據結構與算法從0到1
Data structure and algorithm from 0 to 1
算法目錄
1、遞推算法:順推算法,逆推算法 Recursion: forward calculation and reverse calculation
2、枚舉(窮舉)算法:從所有的候選答案中去搜索正確的解{@1 可預先確定候選答案的數量 @2 候選答案的范圍在求解之前必須有一個確定的集合} Enumeration (exhaustive) algorithm: search for the correct solution from all the candidate answers {@1 can determine the number of candidate answers in advance @2 range of candidate answers must have a certain set before solving
3、遞歸算法:直接或間接調用自身 Recursive algorithm: calls itself directly or indirectly
4、分治算法:分解 求解 合并 Divide and conquer algorithm: decompose solution merge
5、貪婪算法:Greegy algorithm: Change Money 100 50 10 5 2 1 0.5 0.2 0.1 (yuan元)
6、試探算法(啟發式算法):heuristic algorithm :Generate a lottery number combination
7、模擬算法:Simulation Algorithm 使用隨機函數來模擬自然界中發生的不可預測情況 srand() rand()
總結
以上是生活随笔為你收集整理的算法 | 数据结构与算法(代码版)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 人工智能 | 深度学习最新技术综述(MI
- 下一篇: TensorFlow | 使用Tenso