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
Darina [25.2K]
3 years ago
15

Recursion can be a powerful tool for solving repetitive problems? (true , false)

Computers and Technology
1 answer:
Alex777 [14]3 years ago
4 0

Answer:

True

Explanation:

Recursion is a powerful programming paradigm for solving problems which can be restated as a combination of subproblems of the same type. Some common examples include:

1) factorial(n) = n* factorial(n-1);

Here factorial of a number is expressed as a product of the number and the factorial of the number decremented by 1.

2) treesearch(node,value)) = treesearch(left,value) || treesearch(right,value)|| (root==value)

Here we are searching for a value in a tree. This can be expressed recursively as a boolean OR of search result on left and right subtrees and the search result for the root of the tree.

You might be interested in
A school librarian has been asked to identify inappropriate Internet usage. Which students would most likely be reported to the
adoni [48]

Answer:

a student who researches various websites that show how to gamble online

a student who visits a special website with step-by-step directions on how to make a bomb

a student who posts jokes online about the cultural heritage of other students

Explanation: These are all most likely against school policy. In fact attempting to make a bomb is illegal.

5 0
3 years ago
Read 2 more answers
I WILL MARK BRAINLEST
mezya [45]

Answer: I think its the last one, there is often more than one right choice :)

5 0
3 years ago
Write an algorithm that reads 100 test points and finds the student with the highest result​
solmaris [256]

Answer:

ok

Explanation:

7 0
3 years ago
Harold has been working as a real estate agent. He has a lot of housing data to report and needs help organizing his data sheet
vitfil [10]

Answer:

Harold should go with the option C. Wrap text for the columns

Explanation:

Wrapping text in a column helps to avoid reasons to truncate columns. It helps to display the contents of a cell in multiple lines instead of just one line.

This makes the text inserted easily readable and printable.

Harold's best choice is to choose Wrap text for the columns. To do this:

  1. Select the affected cells.
  2. Click on the home tab
  3. Locate the Alignment section
  4. And click the Wrap text icon.
8 0
3 years ago
(PYTHON) Complete the program to print out nicely formatted football player statistics. Match the following output as closely as
loris [4]

Answer:

quarterback_stats = {

'Aaron Rodgers': {'COMP': 371, 'YDS': 4925, 'TD': 39, 'INT': 8},

'Peyton Manning': {'COMP': 400, 'YDS': 4659, 'TD': 37, 'INT': 11},

'Greg McElroy': {'COMP': 19, 'YDS': 214, 'TD': 1, 'INT': 1},

'Matt Leinart': {'COMP': 16, 'YDS': 115, 'TD': 0, 'INT': 1}

}

print("2012 quaterback statistics: ")

print("Passes completed: ")

for qb in quaterback_stats.keys():

   print(f"{quaterback_stats[qb]} : {quaterback_stats[qb]['COMP']}")

print("Passing yards:")

for qb in quaterback_stats.keys():

   print(f"{quaterback_stats[qb]} : {quaterback_stats[qb]['YDS']}")

print("Touchdown / interception ratio")

for qb in quaterback_stats.keys():

   if quaterback_stats[qb]['TD'] > 0 and quaterback_stats[qb]['INT'] > 0:

       print(f"{quaterback_stats[qb]} : {float(quaterback_stats[qb]['TD']) / float(quaterback_stats[qb]['INT])}")

   else:

       print(f"{quaterback_stats[qb]} : {0.0}")

Explanation:

The python program gets data from a dictionary called quaterback_stats which holds the data of football players with their names as the keys and a list of records as the value.

The program prints the individual records from the dictionary using a for loop statement on the list of dictionary keys (using the keys() method).

3 0
3 years ago
Other questions:
  • Lena has secured her online website, which sells fashion apparel. She has taken all the necessary steps by making her website PS
    8·1 answer
  • What is cryptocurrency ? I need to do a research one it please help!
    6·1 answer
  • Which protocols are TCP/IP application layer protocols? (choose all that apply)
    5·2 answers
  • Which is not the option applicable to the technology reference framework for advanced countries?
    11·1 answer
  • The user can set their own computer hostname and username. Which stage of the hardware lifecycle does this scenario belong to?
    6·1 answer
  • What is the best game of 2020 in pc​
    12·2 answers
  • What is the importance of eliminating marks that classify a master key
    7·1 answer
  • ANYONE WITH K12 OHVA HIGH SCHOOL LAPTOP! I successfully enter my schools homepage and can login. BUT once I am logged in, it say
    9·2 answers
  • EMERGENCYYYYY what does it mean when i get a security alert when i download an addon on google docs
    7·1 answer
  • QBasic commands any 10 with examples
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!