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
BigorU [14]
3 years ago
12

Solve the recurrence to find out how many lines are printed by f(n,0), as a function of n.

English
1 answer:
igor_vitrenko [27]3 years ago
5 0

Recurrence is used for repetitive and iterative functions

The recurrence is T_n = O(n)

<h3>How to determine the recurrence</h3>

The recurrence relation is defined as:

T_n = 1 + T_{n/2} +  T_{n/2}

Rewrite the expression as:

T_n = 1 + 2T_{n/2}

The master theorem of recurrence states that:

T_n = f(n) + aT_{n/b}

By comparison, we have:

f(n) = 1

a = 2

b = 2

Where:

2^k = f(n)

So, we have:

2^k = 1

Express 1 as 2^0

2^k = 2^0

By comparison,

k = 0

Next, we test the relation using:

a > b^k

So, we have:

a > b^0

a >1

Recall that a = 2

So, we have:

2 >1

The above inequality is true

So, we have:

T_n = O(n^{\log_ab})

This gives

T_n = O(n^{\log_22})

Evaluate the logarithmic expression

T_n = O(n^{1})

T_n = O(n)

Hence, the recurrence is T_n = O(n)

Read more about recurrence at:

brainly.com/question/1275192

You might be interested in
In paragraph 5 Thoreau speaks out against the modern inventions of his day, such as
yulyashka [42]
The correct answer is <span>A. the telegraph and the railroad.

He believed that the telegraph was useless because it made people focus on talking fast instead of talking sensibly. He also believed that the railroad is useless because the people traveling don't get to experience the land through which they are traveling. </span>
5 0
3 years ago
How is the author’s use of a climactic structure reflected in the setting of part two of King Arthur's Socks: A Comedy in One Ac
Semenov [28]
"King Arthur's Socks: A Comedy in One Act" is actually a comedy play and based on this, how the author makes use of a climactic structure as it is seen in the setting of part two of this comedy is that "a<span> singular setting is developed in great detail through the plot." The answer is option B.</span>
3 0
3 years ago
Read 2 more answers
In the passage above, what type of character is Buck?
hjlf

A flat character is a character that is very predictable based on his fixed role in a story.

A round character on the other hand is one that is interesting as his role is dynamic

A dynamic character is the type of character that is unpredictable based on his ever-changing roles in a story.

A static character is one that does not change because he has a limited role to play.

<h3>What is a Round Character?</h3>

This refers to the type of character that has a deep and multi-layered role to play in a story.

Hence, we can see that your question is incomplete as it does not contain the passage and a general overview was given to help you get a better understanding of the concept.

Read more about round character here:

brainly.com/question/13140120

#SPJ1

4 0
2 years ago
Why does Dan Huff say he was "raised by the state of
Furkat [3]
Hi
the answer is
A) he spent most of his life in prison
hope this helps x
4 0
3 years ago
Which part of the sentence contains an error in hyphenation?
Leni [432]
The best answer would be Repeat show. It would be Re-peat show.
4 0
3 years ago
Other questions:
  • Which group of underlined words is a complete verb phrase? (underlined words in parentheses)
    13·1 answer
  • Which sentence does not contain any errors?
    15·2 answers
  • Which sentence uses a verb that agrees with its subject? A. Citizens of the United States pays taxes. B. My favorite kinds of It
    15·1 answer
  • Each item below begins with a letter that is followed by definition for a word. identify the word and add a letter......
    15·1 answer
  • Why is the National Anthem considered our nationa's glory​
    5·2 answers
  • The man who was crowned king of England in 1603 was_______. _________is the name of Shakespeare’s last play. Shakespeare left al
    14·1 answer
  • Why was King George VI's war speech such a daunting task for him? A. He had chosen to ignore Hitler's vicious acts when he could
    8·1 answer
  • My favorite singer __________ at 7 p.m. tomorrow. I will spend time for his show. *
    8·1 answer
  • Question and answer choices are in the screenshot
    11·1 answer
  • What is Reflection of light ?<br><br><br>anybody is online I'm too much bored ​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!