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
"Harrison Bergeron”<br> by Kurt Vonnegut<br> where does this story take place?
Elden [556K]
The United States during the year 2081 but it doesn't reference a specific place.
4 0
3 years ago
Choose the best transition for each of the blank spaces (There are 2 blanks.)
dezoksy [38]
I would say that the answers are C and A. 

"Primarily" indicates what the main purpose of the sheet is (which helps maintain high grades) and "Furthermore" adds to the original thought. 
7 0
3 years ago
Again I was faced with choices I did not like, but I finally agreed. After all, my hate for my father was not so great and urgen
Wittaler [7]

Answer:

Willing to do anything to leave the orphanage.

Explanation:

Richard Wright's memoir "Black Boy" details his upbringing from childhood through the events like his father's absence in the family and also his infidelity. Added to that, the family was experiencing poverty and even his father's dismissive treatment of his own family, his wife and children included.

When he mentions "<em>my hate for my father was not so great and urgent as my hate for the orphan home</em>", we can know for sure that he hated the orphanage extremely. As much as he hated his father for abandoning his family and living openly with another woman, he hated the orphanage more. So, he agreed to go to his father to ask for money so that they can go to his aunt's place in Arkansas. His contempt for the orphanage was such that he was willing to meet the man he hated the most if it means he will be out of the very same place he despises. This excerpt showed how much he was willing to do to leave the orphanage home.

7 0
3 years ago
Read 2 more answers
Thoroughly explain nick states, "I thought of Gatsby's wonder when he first picked out the green light at the end of Daisy's doc
professor190 [17]
The green light represents the love he has for daisy
8 0
3 years ago
Read 2 more answers
In paragraph 1, Okonkwo is characterized as
Feliz [49]

Okonkwo is the main character in the novel <em>things fall apart</em> and he is characterized as:

  • A cultural man who believes so much in his culture and the supernatural part of his history.

<h3>What is characterization?</h3>

Characterization is the representation of persons in a literary or given work which describes the nature or features of characters.

As a cultural man who believes so much in his culture and traditional history, Okonkwo is regarded and seen as one in tune with his culture.

Read more about<em> things fall apart</em> here:

brainly.com/question/25609681

7 0
2 years ago
Other questions:
  • Determine whether each item is more related to universality or to subject matter. "The pop diva who stars in the movie will attr
    8·1 answer
  • Which word in the following sentence is a possessive pronoun?
    14·2 answers
  • How does faith help us practice the virtue of generosity?
    11·1 answer
  • Which of the following is a tip for taking the aspire math test
    13·2 answers
  • PLEASE proof read, its for school and for something else important!!!!!!!!!
    5·2 answers
  • During war why were many Guatemalan peasants left homeless
    6·1 answer
  • A group of 8 friends (5 giris and 3 boys) plans to watch a move, but they have only 5 tickets. If they randomly decide who will
    9·1 answer
  • Which word from the sentence gives it a formal tone?
    14·2 answers
  • Identify the coordinating conjunction that best joins the two clauses to form a compound sentence. The brothers wanted to go to
    8·2 answers
  • What is the world's largest land mammal? ​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!