在非排序数组中可以做最快的搜索是什么? [英] What is the fastest search which can be done on a non-sorted array?
本文介绍了在非排序数组中可以做最快的搜索是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在非排序数组中快速搜索?除了线性搜索,我无法想到任何其他搜索机制。
How to search fast in a non-sorted array? I am unable to think of any other search mechanism apart from linear search.
任何指针都将有所帮助。
Any pointers will be helpful.
推荐答案
是的,没有排序数据,线性搜索与您可以做的一样好。
Yes, without sorting the data a linear search is about as good as you can do.
这篇关于在非排序数组中可以做最快的搜索是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文