Description
Q 1.) Given this sequence of numbers:
9 13 19 27 37
a) What are the three next numbers? (20 Points)
b) Write in your own word an algorithm to solve this problem for any numbers. (40 Points)
c) Explain how you would use Linear search to find the value 27? (40 Points)
Q 2) What do you understand by the term 'linear search'?
You have an array - [13 6 7 12 15 19 66 8 ] and you are looking for the value 20.
What is the out come?
Explanation & Answer
View attached explanation and answer. Let me know if you have any questions.
Running Head: Programming Questions
1
Programming Question
Student name
Course title
Date of submission
Programming Question
2
Q1)
a) 9 13 19 27 37 49 63 79
b) Algorithm to solve the above solution for any number
Step 1: Determine the difference between each two numbers
13-9=4
19-13=6
27-19=8
37-27=10
Step 2: We find that the difference are all even number with an increment of a difference of two
between each even number.
6-4=2
8-6=2
10-8=2
Step...
Review
Review
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Similar Content
Related Tags
The Road
by Cormac McCarthy
The Girl With The Dragon Tattoo
by Stieg Larsson
Nervous Conditions
by Tsitsi Dangarembga
Big Magic
by Elizabeth Gilbert
Moby Dick
by Herman Melville
Enders Game
by E. M. Forster
Twelve Years A Slave
by Solomon Northrup
Death Of A Salesmen
by Arthur Miller
Narrative of the Life of Frederick Douglass
by Frederick Douglass