Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the following array: [27, -3, 4, 5, 35, 2, 1, -40, 7, 18, 9, -1, 16, 100] Create a Python script called sort_and_search.py

Using the following array: [27, -3, 4, 5, 35, 2, 1, -40, 7, 18, 9, -1, 16, 100]


● Create a Python script called sort_and_search.py Which searching algorithm would be appropriate to use on the given list? 


● Implement this searching algorithm to search for the number 9. Add a comment to explain why you think this algorithm was a good choice. 


● Research and implement the Insertion sort on this array. 


● Implement a searching algorithm you haven’t tried yet in this Task on the sorted array to find the number 9.  explain where you would use this algorithm in the real world.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Create a Python script called sortandsearchpy Which searching algorithm would be appropriate to use on the given list The choice of a searching algorithm depends on whether the given list is sorted or ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students also viewed these Algorithms questions

Question

Show that for any three events A, B, and C with .

Answered: 1 week ago