go top

线性查找 [xiàn xìng chá zhǎo]

网络释义专业释义

  [计] linear search

假设要从数据中使用线性查找Linear Search),从头开始依次查找所需数据,那么如果有1000条数据,那就需要反复查找数据直至找到为止,这个算法最多要进行1000次查找。

基于498个网页-相关网页

  find

... 线性查找: find; find_if; adjacent_find; find_first_of. 子序列匹配: search; find_end; search_n. 计算元素个数: count; count_if. ...

基于8个网页-相关网页

短语

次线性查找 Sublinear Searching

线性查找算法 BFPRT

非线性查找表格模型 Non-Linear look-up table Model

  • linear searching
  • linear search

·2,447,543篇论文数据,部分数据来源于NoteExpress

双语例句原声例句

  • 许多实现中实行是代价很高的线性查找

    In many implementations they will perform costly linear searches.

    youdao

  • 在CSimpleBinaryTree 中有两个搜索算法.线性搜索和对半搜索.线性搜索只树种子项数目小于指定值的时候才使用 (缺省10),从这个点以后的各项,将使用对半搜索.这样原因线性查找要求元素进行排序并且的运算规则相对要简单的多.因此对于数目项来说,线性查找理想的.

    The reason for this is that a linear search doesn't require the elements to be sorted and its algorithm is a lot less complicated. So for a small number of items a linear search is ideal.

    youdao

  • 这种情况下名称查找属性会进行线性搜索

    In this case, looking up an attribute by name initiates a linear search.

    youdao

更多双语例句
  • If I look for, say, minus 1, you might go, gee, wait a minute, if I was just doing linear search, I would've known right away that minus one wasn't in this list, because it's sorted and it's smaller than the first elements.

    如果我要查找-1,你可能要怒了,呵呵,等一等,如果我用的是线性查找,我不会知道-1不在这个列表中,但是列表是排好序的,1又比第一个元素小。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Right? If that was the case in that code, then my complexity is no longer log, because I need linear access for each time I've got to go to the list, and it's going to Lisp be much worse than that.

    这里的复杂度不再是对数的了,因为每次在列表中,查找需要线性访问,可能还要糟糕,其实,有些编程语言,如。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And if you just look at the numbers, you can see how it cuts in from one side and then the other side as it keeps narrowing that range until it gets down to the place where there are at most two things left, and then it just has to check those two to say whether it's there or not.

    你能看到他是如何不断的,从一个大的范围被拦腰劈开,知道最终只剩下两个数字,然后就只需要,比一比就知道结果了,将它同线性查找比较下。

    麻省理工公开课 - 计算机科学及编程导论课程节选

百科

线性查找

在一列给定的值中进行搜索,从一端开始逐一检查每个元素,直到找到所需元素的过程。 线性查找又称为顺序查找 如果查找池是某种类型的一个表,比如一个数组,简单的查找方法是从表头开始,一次将每一个值与目标元素进行比较,最后,或者查找到目标,或者达到表尾,而目标不存在于组中,这个方法称为线性查找。 #include using namespace std; int display(int [],int,int); int main() { const int i=10; int a[i]; int number; for(int j=0;j <=i;j++) a[j]=j*2; for(int j=0;j <=i;j++) cout < >number; int result=display(a,i,number); if(result==1) cout < <"can find this number;" <

详细内容

以上来源于: 百度百科
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定