C13查找概要1
Vocabulary sequential search 顺序查找 element 元素 order 次序 binary search 二分查找 target 目标 algorithm 算法 array 数组 location 位置 object 对象,目标 parameter 参数 index 下标,索引,指针 sentinel 哨兵 probability 概率 key 关键字 hash 散列,杂凑 collision 冲突 cluster 聚集,群集 synonym 同义语,同义词 probe 探测 load factor 装填因子 Searching One of the most common and time-consuming operations in computer science. To find the location of a target among a list of objects. Main contents(in chapter 2) List searching(including two basic search algorithms) Sequential search(including three variations) Binary search Hashed list searching—the key through an algorithmic function determines the location of data Collision resolution To discuss the list search algorithms using an array structure 2-1 list searches (work with arrays) Sequential search(any array) Small lists Not searched often Sequential search algorithms Needs to tell the calling algorithm two things Did it Find the data it was looking for? If it did, at what index are the target data found. Requires four parameters The list we are searching An index to the last element in the list The target The address where the found element’s index location is to stored sequential search algorithm algorithm seqsearch(val list array val last index val target keytype ref locn index) looker=0 loop (looker last and target not equal list [looker]) looker = looker + 1 end loop locn = looker if (target equal list [looker]) found = true else found = false end if return found end seqsearch Variations on sequential searches Sentinel search Probability search Ordered list search Sentinel search algorithm seqsearch(val list array val last index val target keytype ref locn index) List [last + 1] = target looker=0 loop (target not equal list [
您可能关注的文档
- byron she walks in beauty 美与媚概要1.ppt
- Business travel概要1.pptx
- Business Meals概要1.pptx
- Butterfly概要1.ppt
- by example of Kevin Carter’s tragedy最终版概要1.ppt
- Butterfly tie蝴蝶结英文介绍PPT概要1.ppt
- B站80分答案06月16日概要1.doc
- B班蓝鸽平台第一次作业概要1.doc
- B级历年作文概要1.ppt
- B级辅导填空练习概要1.ppt
- 2025年全国演出经纪人员资格认定考试试卷带答案(研优卷).docx
- 2025年全国演出经纪人员资格认定考试试卷完整版.docx
- 2025年全国演出经纪人员资格认定考试试题库及完整答案.docx
- 2025年全国演出经纪人员资格认定考试试卷完美版.docx
- 2025年全国演出经纪人员资格认定考试试卷含答案(实用).docx
- 2025年全国演出经纪人员资格认定考试试卷及答案(各地真题).docx
- 2025年下半年内江市部分事业单位公开考试招聘工作人员(240人)备考题库附答案.docx
- 2025年全国演出经纪人员资格认定考试试卷及答案1套.docx
- 2025年下半年四川成都市郫都区面向社会引进公共类事业单位人员2人备考题库最新.docx
- 2025年下半年内江市部分事业单位公开考试招聘工作人员(240人)备考题库附答案.docx
最近下载
- 准噶尔盆地南缘山前带石油地质综合评价.pdf VIP
- 2012届松江区高三英语二模试卷.doc VIP
- 2012奉贤区高三二模英语含答案.doc VIP
- 云南大学博士、硕士研究生学位论文写作规范-2025.docx VIP
- 2008学年奉贤区调研测试高三英语试卷及答案.doc VIP
- 最新人教版六年级上册数学1-8单元单元测试卷及期中期末卷(含答案).pdf VIP
- [黄浦区2009学年度第一学期期终基础学业测评高三英语附答案.doc VIP
- 2025至2030中国C反应蛋白(CRP)试验行业产业运行态势及投资规划深度研究报告.docx
- 2009学年奉贤区调研测试高三英语试卷(附答案).doc VIP
- 噬神者:爆裂 怪物素材获取方法.pdf VIP
原创力文档

文档评论(0)