如何解决算法优化
|解决方法
一种解决方案是对可能的输入进行二进制搜索。
流:
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
, 也许是二进制搜索算法?
http://en.wikipedia.org/wiki/Binary_search_algorithm
, 如果范围有限且很小,则预先计算的查找表可能是最快的方法
, 如果您有一些生成\ y的已知\“ x \”数据集,则可以在训练集和测试集之间进行划分,并使用神经网络。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。