1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ale4655 [162]
1 year ago
10

use this forum to discuss homework and material related to recursion and recurrence relations. some prompts for discussion: for

those of you who have taken programming classes, how have you used recursion to solve problems? how can an understanding of recursion help make one a better programmer? you need to do initial posting before you can see responses from your peers. see the rubric below.
Computers and Technology
1 answer:
olchik [2.2K]1 year ago
6 0

Recurrence relations can be resolved using the Recursion Tree Method. Recursive trees are created using this method from a recurrence relation.

Each node reflects the expense incurred at different recursive levels. The overall cost is calculated by adding the costs from each level.

20 nodes at level 0 are equal to one.

21 + 2 Equals number of nodes at level 1.

Number of nodes at level 2log10/9(n), which is equal to nlog10/9 (2)

nlog10/9(2) x T(1) = nlog10/9(2) x 1 = nlog10/9 Cost of subproblems at level log2(n) (last level) (2)

Step 4: Add up all of the levels' costs in the recursive tree.

T(n) = n times (number of levels - 1) plus the cost of the last level.

= log10/9(n) times + (nlog10/9(2)) = n + n + n + —-

= (nlog10/9(2)) + nlog10/9(n)

Learn more about recursive here-

brainly.com/question/20749341

#SPJ4

You might be interested in
A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number of steps, and whose output i
Oksi-84 [34.3K]

Answer:

Follows are the code to the given question:

def steps_to_miles(user_steps):#defining a method steps_to_miles that takes a variable user_steps

   return user_steps/2000#use return to calculate the steps

user_steps = int(input())#defining a variable user_steps that holds value from the user-end

print('%0.2f' % steps_to_miles(user_steps))#defining print that calls the steps_to_miles method

Output:

5345

2.67

Explanation:

In this code a method "steps_to_miles" that takes "user_steps" in the parameter inside the method a return keyword is used that calculates the user steps and return its values.

Outside the method, a "user_steps" variable is declared that inputs the value from the user-end pass into the method and prints its value.

3 0
3 years ago
Please help ASAP!
makkiz [27]
B. training is the correct answer
8 0
2 years ago
Please select the word from the list that best fits the definition
Troyanec [42]

Answer

Linguistics

Explanation:

linguistics can be defined as scientific study of language and its structure, including the study of grammar, syntax, and phonetics.

there are some  Specific branches of linguistics  and that include computational linguistics, comparative linguistics, and structural linguistics.

study material into songs can also be defined as a linguistic hence linguistic is the correct option for you question

6 0
3 years ago
Read 2 more answers
Question :
BlackZzzverrR [31]

Answer:

D

Explanation:

Search engine optimization (SEO)

4 0
3 years ago
Joe, a user, wants his desktop RAID configured to allow the fastest speed and the most storage capacity. His desktop has three h
kirill115 [55]

Answer:

A. 0

Explanation:

The technician should configure the RAID 0 for Joe.

RAID 0 also referred to as the striped volume or stripe set is configured to allow the fastest speed and the most storage capacity by splitting data evenly across multiple (at least two) disks, without redundancy and parity information.

Also, RAID 0 isn't fault tolerant, as failure of one drive will cause the entire array to fail thereby causing total data loss.

7 0
3 years ago
Other questions:
  • Which of the following is an encryption tool that allows users to encrypt files and folders by simply right-clicking a given obj
    10·2 answers
  • You have dinner with your family and tell them that you have taken bcis. your mother tells you that she is proud of you and that
    9·1 answer
  • Each professional association has
    7·1 answer
  • The benefit of host and guest operating system difference is:
    8·2 answers
  • In the textbox below, write an email that you, as an administrative assistant at Techno Inc., would write to request information
    7·1 answer
  • How does leadership play a role in IT management? How does leadership need to be aligned to the company’s goals for IT managemen
    9·1 answer
  • State the function of the <br> BIOS,​
    11·1 answer
  • A. All methods in an interface must be _________________ _________________________.
    5·1 answer
  • True or False: A sequential search of a list assumes that the list elements are sorted in ascending order.
    13·1 answer
  • Describe a new career in computer science that may be created in the future
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!