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. SciPy优化算法
- 2. 优化WordWrap算法
- 3. 算法的优化
- 4. 进化优化算法
- 5. Dijkstra算法优化/缓存
- 6. 硬币算法优化
- 7. 优化算法问题
- 8. C++优化此算法
- 9. R:优化算法SLSQP
- 10. 优化A-Star算法
- 11. 优化nbody算法F#
- 12. 张量积算法优化
- 13. 切割优化算法
- 14. 优化Jaro-Winkler算法
- 15. 优化算法惊奇
- 16. 优化(python)算法的最佳方法?
- 17. 迭代深度优化的优化误差搜索算法
- 18. 优化代码:斐波那契算法
- 19. 分类器算法的参数优化
- 20. 优化这个OpenGL渲染算法
- 21. 优化的基于时间的算法
- 22. 优化形状检测算法
- 23. 遗传算法 - 迭代优化
- 24. C++中的遗传算法优化
- 25. 优化数据库的搜索算法
- 26. scipy.optimize.leastsq使用哪种优化算法?
- 27. 进化算法:最优复育故障
- 28. 优化非充裕资金算法
- 29. 循环数据的优化算法
- 30. 优化一个n体引力算法
这个小信息很难猜测。你在寻找一个特定的输出吗?如果你有函数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