Question

a) Give a recursive algorithm for finding the max of a finite set of integers, making use of the fact that the max of n integers is the larger of the last integer in the list and the max of the first n-1 integers in the list. Procedure power(x,n): If (n=0): return 1 Else: return power(x,n-1) * x b) Use induction to prove your algorithm is correct

          a) Give a recursive algorithm for finding the max of a finite set of integers, making use of the fact that the max of n integers is the larger of the last integer in the list and the max of the first n-1 integers in the list. 
    
    Procedure power(x,n):
    If (n=0):
    return 1
    Else:
    return power(x,n-1) * x
    
    b) Use induction to prove your algorithm is correct
        
Show more…

Added by Francisca B.

Calculus: Early Transcendentals
Calculus: Early Transcendentals
James Stewart 8th Edition
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
a) Give a recursive algorithm for finding the max of a finite set of integers, making use of the fact that the max of n integers is the larger of the last integer in the list and the max of the first n-1 integers in the list. Procedure power(x,n): If (n=0): return 1 Else: return power(x,n-1) * x b) Use induction to prove your algorithm is correct
Close icon
Play audio
Feedback
Powered by NumerAI
Jennifer Stoner Kathleen Carty
Ivan Kochetkov verified

Sri K and 51 other subject Calculus 3 educators are ready to help you.

Ask a new question

*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Key Concept
Premium Feature
Explore the core concept behind this problem.
Play button
Key Concept
Premium Feature
Explore the core concept behind this problem.
Your browser does not support the video tag.

*

Recommended Videos

-
devise-a-recursive-algorithm-for-computing-n2-where-n-is-a-nonnegative-integer-using-the-fact-that-n

Devise a recursive algorithm for computing $n^{2}$ where $n$ is a nonnegative integer, using the fact that $(n+1)^{2}=$ $n^{2}+2 n+1 .$ Then prove that this algorithm is correct.

Discrete Mathematics and its Applications

Induction and Recursion

Recursive Algorithms

give-a-recursive-algorithm-for-finding-the-sum-of-the-first-n-positive-integers

Give a recursive algorithm for finding the sum of the first n positive integers.

Discrete Mathematics and its Applications

Induction and Recursion

Recursive Algorithms

give-a-recursive-algorithm-for-finding-the-sum-of-the-first-n-positive-integers

Give a recursive algorithm for finding the sum of the first n positive integers.

Discrete Mathematics and its Applications

Induction and Recursion

Recursive Algorithms


*

Recommended Textbooks

-
Calculus: Early Transcendentals

Calculus: Early Transcendentals

James Stewart 8th Edition
achievement 1,169 solutions
Calculus: Early Transcendentals

Calculus: Early Transcendentals

William Briggs, Lyle Cochran, Bernard Gillet 3rd Edition
achievement 1,681 solutions
Thomas Calculus

Thomas Calculus

George B. Thomas Jr. 14th Edition
achievement 1,679 solutions

*

Transcript

-
00:01 In our solution, our equation will be as n t is equal to 1 .6 0s, 1 by 2 to the power of t by 8.
00:14 So now let us state here.
00:18 T is the time for the sample of iodine sample to reach 1 ,000 1 ,000 ,000 atoms.
00:46 So, thereafter our value of n t is equal to 1 ,000.
00:55 So this will be as calculated in our post equation when we put down this value as 80 ,000, is equal to 1 by 2 to the power of t by 8...
Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever