1) Apply the binary search and Fibonacci search algorithms to an ordered list (Algorithms 16.5 and 16.6). Search for the components in the list "3, 18, 1, 25" for the list L = "2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20." Check how many comparisons were made during the searches. 2) Use an online dictionary (with a constrained list of words) that use interpolation search to browse the dictionary in response to a word. Streamline the programme so that it replaces any misspelt words with the dictionary's closest equivalent or right term.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 16PE
icon
Related questions
Question

Programming homework
1) Apply the binary search and Fibonacci search algorithms to an ordered list (Algorithms 16.5 and 16.6). Search for the components in the list "3, 18, 1, 25" for the list L = "2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20."
Check how many comparisons were made during the searches.

2) Use an online dictionary (with a constrained list of words) that use interpolation search to browse the dictionary in response to a word. Streamline the programme so that it replaces any misspelt words with the dictionary's closest equivalent or right term. 

Expert Solution
steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Knowledge Booster
Quicksort
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning