typestatusdateslugsummarytagscategoryiconpassword上次编辑时间Oct 21, 2024 12:28 PMLecture 1:Introductioneggs dropping问题:dynamic programmingEgg Dropping Puzzle | DP-11 - GeeksforGeeksSolution to the egg dropping problem with example. What is the minimum floor of the building from which the egg won't break on dropping?https://www.geeksforgeeks.org/egg-dropping-puzzle-dp-11/ 3 gates:random stopping fibonacci searchpythondef fibonacci_search(arr,x): n = len(arr) if n == 0: return -1 fib1,fib2 = 0,1 fib3 = fib1 + fib2 while fib3 < n: fib1,fib2 = fib2,fib3 fib3 = fib1 + fib2 offset = -1 while fib3 > 1: i = min(offset+fib2, n-1) if arr[i] < x: fib3 = fib2 fib2 = fib1 fib1 = fib3 - fib2 offset = i elif arr[i] > x: fib3 = fib1 fib2 = fib2 - fib1 fib1 = fib1 -fib2 else: return i if fib2 == 1 and arr[offset+1] == x: return offset+1 else: return -1PythonCopy Lecture 2:插入排序average case:∑i=1ni2=O(n24)\sum_{i=1}^{n}\frac{i}{2}=O(\frac{n^2}{4})i=1∑n2i=O(4n2)软件开发|为什么排序的复杂度为 O(N log N)并不需要复杂的数学就能证明你可以逐渐趋近的速度有多快。https://linux.cn/article-12594-1.htmllinear programming:单纯形法smoothed analyisSmoothed analysisIn theoretical computer science, smoothed analysis is a way of measuring the complexity of an algorithm. Since its introduction in 2001, smoothed analysis has been used as a basis for considerable research, for problems ranging from mathematical programming, numerical analysis, machine learning, and data mining. It can give a more realistic analysis of the practical performance of the algorithm compared to analysis that uses worst-case or average-case scenarios.https://en.wikipedia.org/wiki/Smoothed_analysis集中、分布式算法百万富翁问题(yau),MPC问题 算法导论期中总结 微信扫码分享作者:Waang Rui链接:https://atrionline.me/article/algrithom-introduction声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。统计学习人工智能