Q
算法优化
1
A
回答
1
一个解决方案是在可能的输入的二进制搜索。
流量:
find the median input x
get the output from function(x)
if the output is less than the desired y
start over using the smaller half of the possible inputs
else
start over using the larger half of the possible inputs
+0
完美,谢谢! – senak 2011-06-01 02:43:39
1
0
如果范围是有限的,小的,如果你有一些设置专门的预先计算的查找表可能是最快的方式
0
“X”数据产生“Y”你可以在训练和测试集之间进行分配并使用神经网络。
相关问题
- 1. 优化算法
- 2. 算法的优化
- 3. 算法的优化
- 4. SciPy优化算法
- 5. 优化WordWrap算法
- 6. 优化pow算法
- 7. 进化优化算法
- 8. 随机优化算法
- 9. 优化算法惊奇
- 10. 贪心算法优化
- 11. GLSL着色算法优化
- 12. 优化算法问题
- 13. C++优化此算法
- 14. Dijkstra算法优化/缓存
- 15. 优化转换算法
- 16. 优化A-Star算法
- 17. SQL中的优化算法
- 18. 优化遗传算法?
- 19. 优化nbody算法F#
- 20. 张量积算法优化
- 21. 切割优化算法
- 22. 优化管柱嵌算法
- 23. 帮助算法优化
- 24. 优化Jaro-Winkler算法
- 25. 提示优化算法
- 26. 硬币算法优化
- 27. 优化Kadane的numpy算法
- 28. 配置优化算法
- 29. R:优化算法SLSQP
- 30. 优化(python)算法的最佳方法?
这个小信息很难猜测。你在寻找一个特定的输出吗?如果你有函数x的衍生物,[牛顿法](http://en.wikipedia.org/wiki/Newton's_method)速度很快。如果您没有衍生产品,[secant方法](http://en.wikipedia.org/wiki/Secant_method)是合理的第二选择。如果函数相对于输入变量单调递增或递减,则[二进制搜索](http://en.wikipedia.org/wiki/Binary_search_algorithm)可能就是该工具。 – sarnold 2011-06-01 02:31:18