搜索算法
文章平均质量分 76
各种搜索算法
dijk
这个作者很懒,什么都没留下…
展开
-
Searching: Open Addressing With Double Hashing
Algorithm DAlgorithm D (Open addressing with double hashing). This algorithm is almost identical to Algorithm L, but it probes the table in a slightly different fashion by making use of two hash fu原创 2015-05-31 11:55:05 · 731 阅读 · 0 评论 -
Searching: Linear Probing And Insertion
Algorithm LAlgorithm L (Linear probing and insertion). This algorithm searches an M- node table, looking for a given key K. If K is not in the table and the table is not full, K is inserted.原创 2015-05-31 12:32:37 · 727 阅读 · 0 评论 -
Searching: Chained Hash Table Search And Insertion-2
Separate chainingJava programIn this program, R1,…,RN were simplified to K1,…,KN.Node.javapackage com.algorithms.searching;/** * Created with IntelliJ IDEA. * User: 1O1O * Date: 12/13/13 * Time: 6:原创 2015-05-31 12:39:04 · 621 阅读 · 0 评论 -
Searching: Chained Hash Table Search And Insertion-1
Algorithm CAlgorithm C (Chained hash table search and insertion). This algorithm looks for a given key K in an M-node table. If K is not in the table and the table is not full, K is inserted.原创 2015-05-31 12:46:17 · 743 阅读 · 0 评论 -
Searching: Balanced Tree Search And Insertion
Algorithm AAlgorithm A (Balanced tree search and insertion). Given a table of records that form a balanced binary tree as described above, this algorithm searches for a given argument K. If K is no原创 2015-05-31 12:53:49 · 616 阅读 · 0 评论 -
Searching: Tree Search And Insertion
Algorithm TAlgorithm T (Tree search and insertion). Given a table of records that form a binary tree as described above, this algorithm searches for a given argument K. If K is not in the table, a原创 2015-05-31 13:00:50 · 479 阅读 · 0 评论 -
Searching: Shar's Method
Comparison treeJava programIn this program, R1,…,RN were simplified to K1,…,KN./** * Created with IntelliJ IDEA. * User: 1O1O * Date: 12/11/13 * Time: 6:52 PM * :)~ * Shar's Method:Searching */原创 2015-05-31 13:26:37 · 548 阅读 · 0 评论 -
Searching: Fibonaccian Search-3: N+1 is NOT a perfect Fibonacci number
Algorithm FAlgorithm F (Fibonaccian search). Given a table of records R1R2 … RN whose keys are in increasing order K1 < K2 < … < KN, this algorithm searches for a given argument K. In this case,原创 2015-05-31 13:32:20 · 559 阅读 · 0 评论 -
Searching: Fibonaccian Search-2: N+1 is NOT a perfect Fibonacci number
Algorithm FAlgorithm F (Fibonaccian search). Given a table of records R1R2 … RN whose keys are in increasing order K1 < K2 < … < KN, this algorithm searches for a given argument K. In this case,原创 2015-05-31 13:37:39 · 453 阅读 · 0 评论 -
Searching: Fibonaccian Search-1: N+1 is a perfect Fibonacci number
Algorithm FAlgorithm F (Fibonaccian search). Given a table of records R1R2 … RN whose keys are in increasing order K1 < K2 < … < KN, this algorithm searches for a given argument K. For convenienc原创 2015-05-31 13:42:04 · 512 阅读 · 0 评论 -
Searching: Uniform Binary Search-2
Algorithm CAlgorithm C (Uniform binary search). This algorithm is just like Algorithm U, but it uses an auxiliary table in place of the calculations involving m. The table entries are原创 2015-05-31 13:45:55 · 897 阅读 · 0 评论 -
Searching: Uniform Binary Search-1
Algorithm UAlgorithm U (Uniform binary search). Given a table of records R1, R2,…, RN whose keys are in increasing order K1 < K2< … < KN, this algorithm searches for a given argument K. If N is eve原创 2015-05-31 13:50:15 · 899 阅读 · 0 评论 -
Searching: Binary Search
Algorithm BAlgorithm B (Binary search). Given a table of records R1R2 … RN whose keys are in increasing order K1 < K2 < … < KN, this algorithm searches for a given argument K. B1. [Initialize.] S原创 2015-05-31 13:54:49 · 532 阅读 · 0 评论 -
Searching: Sequential Search In Ordered Table
Algorithm TAlgorithm T (Sequential search in ordered table). Given a table of records R1, R2,…, RN whose keys are in increasing order K1 < K2 < … < KN, this algorithm searches for a given argument原创 2015-05-31 14:00:49 · 624 阅读 · 0 评论 -
Searching: Quick Sequential Search
Algorithm QAlgorithm Q (Quick sequential search). This algorithm is the same as Algo- rithm S, except that it assumes the presence of a dummy record RN+1 at the end of the file. Q1. [Initialize.]原创 2015-05-31 14:03:46 · 568 阅读 · 0 评论 -
Searching: Sequential Search
Algorithm SAlgorithm S (Sequential search). Given a table of records R1,R2,…, RN whose respective keys are K1,K2, … ,KN, this algorithm searches for a given argument K. We assume that N >= 1. S1.原创 2015-05-31 14:06:09 · 487 阅读 · 0 评论