What are the differences between linear algorithm and iterative algorithm

Answers

Answer 1

Answer:

For example Tower of Hannoi algorithm is made easy by recursion while iterations are widely used, efficient and popular. Recursive vs Iterative Algorithms: Approach: In recursive approach, the function calls itself until the condition is met, whereas, in iterative approach, a function repeats until the condition fails.


Related Questions

Jeff is at his workplace and needs a file from his computer at home. Which protocol can Jeff use to access this file from a remote location? A HTTP B. POP3 C. LDAP D. Telnet ​

Answers

The answer is Telnet.


Telnet is a network protocol used to virtually access a computer and to provide a two-way, collaborative and text-based communication channel between two machines. It follows a user command Transmission Control Protocol/Internet Protocol (TCP/IP) networking protocol for creating remote sessions.


what is
Force (N) = Mass (kg) x acceleration (m/s)

If a 80-kg swimmer pushes off a pool wall with a force of 225 N, at what rate with the swimmer

accelerate forward?​

Answers

Hope this really helps u with your studies
225/80=2.8125m/s

Stacy plans to print her contacts and would like to choose an option that will print select information for each contact in a business card format. Which option should she choose?

Answers

Answer: card style

Explanation:

From the question, we are provided with the information that Stacy plans to print her contacts and the option that she would like to choose is an option that will print select information for each contact in a business card format.

Based on the above information that is given, the option that she should choose is the card style.

why would computer programmers want to use an object to change the instructions they already created in a computer program ​

Answers

Answer:

bank rupt

Explanation:

no money on your card lol have  a graey day dont wish for what your not willing to work for

Principles of Computer Programming

Answers

Answer:

I think number 2 is B... I hope this helps

How do libraries let you write programs at a higher level? Why is testing important when building and sharing libraries?

Answers

Answer:

libraries do this so that you dx chae

Explanation:

Can someone help me figure out why my else statment is not working?




----------------------------------------------------------------------------------------------------------------------------
print("\tBank of The Funny Money Bunny Farm\n")
print("Client\t\tDeposits\tWithdrawals\tBalance\t\tNotes:")
print("__________________________________________________________________________________________________________________________")

names = ['Judith', 'Jimmie', 'Johnny', 'Joseph', 'Jeffry', 'Buddie', 'Charlie', 'Maxine', 'Jannis', 'Bodine']
deposists = [255.23, 525.55, 323.21, 651.48, 507.11, 101.11, 253.36, 323.22, 611.45, 252.91]
withdrawals = [255.76, 128.65, 156.22, 175.33, 390.12, 255.41, 128.22, 156.23, 728.98, 251.43]
balance = []
notes = []

for i in range(len(names)):
balance.appened(deposits[i] - withdrawals[i])
if(balance < 0):
print((names[i] + ", you are overdrawn. Your account balance is " + "$%.2f"%(balance[i]))
else:
print("" + names[i] + "\t\t" + "%.2f"%(deposits[i]) + "\t\t" + "%.2f"%(withdrawals[i]) + "\t\t" + "%.2f"%(balance[i]) + "\t\t" + notes[i])

print("__________________________________________________________________________________________________________________________")
print("\© Copyright 2021 Funny Bunny Money Productions")

#Main

print("\tBank of The Funny Money Bunny Farm\n")
account = int(input("How many new accounts are needed: "))
for i in range(account):
input("Enter the name of the client: ")
input("Enter the deposist of the client: ")
input("Enter the withdraral of the client: ")

Answers

Answer:

below is a version of your code that runs.

I'm not sure if it does what you expect it to do.

what three factors helped the Wright brothers achieve success in controlled sustained and powered flight?​

Answers

In 1903 the Wright brothers achieved the first powered, sustained and controlled airplane flight; they surpassed their own milestone two years later when they built and flew the first fully practical airplane.

Some Tiny College staff employees are information technology (IT) personnel.


Some IT personnel provide technology support for academic programs, some provide technology infrastructure support, and some provide support for both.


IT personnel are not professors; they are required to take periodic training to retain their technical expertise.


Tiny College tracks all IT personnel training by date, type, and results (completed versus not completed).


Given that information, create the complete ERD that contains all primary keys, foreign keys, and main attributes.

Answers

xndnxbxnndndndnndnxndnnxndndnndndndnndndndndndnndnxnx

A beam of light travels in air and then passes through a piece of glass at an angle of 45 degrees to the normal. As the light passes from the air into the piece of glass, the light ray is bent, what is the angle of refraction measured from the normal?

Answers

Answer:

The angle of refraction measured from the normal is approximately 28.13°

Explanation:

The angle of refraction is the angle made by the refracted ray and the normal line drawn at the point where the ray passes through the interface of the two mediums

According to Snell's law, we have;

[tex]_1 n_2 = \dfrac{n_1}{n_2} = \dfrac{sin \, \theta _2}{sin \, \theta _1}[/tex]

n₁·sin (θ₁) = n₂·sin(θ₂)

Where;

₁n₂ = The refractive index of air to glass = 1.5

n₁ = The refractive index of air = 1

n₂ = The refractive index of glass ≈ 1.5

θ₁ = The angle of incidence = 45°

θ₂ = The angle of refraction measured from the normal

Therefore, we have;

1/1.5 = sin(θ₂)/sin(45°)

sin(θ₂) = sin(45°)/1.5 = (√2)/2/(3/2) = (√2)/3

∴ θ₂ = arcsin((√2)/3) ≈ 28.13°

The angle of refraction measured from the normal = θ₂ ≈ 28.13°.

If you came across an article that discussed the benefits of studying the night before a test rather than the morning of, what could you do to form your own opinion about such information? A. Do your own research including reading articles related to the same topic. B. Ask a trusted family member their opinion after they read the article. C. Check different social media accounts for articles on sleep studies. D. Read another article on this topic written by the same journalist.

Answers

Answer:

A. Do your own research including reading articles related to the same topic.

Explanation:

To confirm online information that is not made by reputable experts, professionals, journals, or websites, it is always recommended to cross-check such information carefully. To do that is to make research on the same topic and confirm if the actual information is the same.

Hence, in this case, the correct answer is "Do your own research including reading articles related to the same topic."

how do you do the ask tutor thing on the computer?

Answers

Answer:

what do you mean

Explanation:

PLEASE ANSWER ASAP! 10 POINTS!

Answers

the answer : it’s 0, carry 1

What are some potential challenges that society will face given the digital revolution? You may want to think particularly of the news industry. Discuss how these challenges could impact young people such as yourself.

Answers

Answer:

Some said that technology causes more problems than it solves. ... Others said humans' uses and abuses of digital technologies are causing ... Highly technological societies have to be iterative if they hope to ... where we believe we can tell honestly delivered information from fake news and disinformation.

hope this helps...

Explanation:

Anyone know answer to this?

Answers

Answer:

the original poster that it might have been clearer and, perhaps, preferable to choose a description with less potential to lead to confusion if a student were coming from (or going to), for instance, the python, php or java track.

Explanation:

What is web
searching engine ?​

Answers

A Web search engine is a specialized computer server that searches for information on the Web. The search results of a user query are often returned as a list. The hits may consist of web pages, images, and other types of files.

What is 01101010 in Denary?
PLEASE ANSWER I WILL GIVE U BRAINILEST !!!

Answers

Answer:

Binary 01101010 = 106

Explanation:

Answer:139

Explanation:

brain

Information system are too important to be left to computer specialist.Do you agree? Why or why not.

Answers

Answer:

Yes

Explanation:

Yes, information systems control all the information that goes through the system. This information is incredibly valuable and is very vast. Computer specialists are trained in helping others with regular computer problems both in hardware and software. They are not trained to analyze and handle giant databases of information. If they make a single mistake they can cost the organization millions of dollars in damages. Therefore, yea it is very risky to be left to a computer specialist.

Which steps should you follow to show the Developer tab after clicking Options in the File tab?

Click Customize Ribbon, and check next to Developer in the Main Tabs area.
Click the Developer tab, click Switch View, and click OK in the Main Tabs area.
Click Open, and add a check mark next to Developer in the Customize area.
Click the View tab, add a check mark next to Developer, and click OK.

Answers

Answer:

A Click Customize Ribbon, and check next to Developer in the Main Tabs area.

Explanation:

Answer:

c

Explanation:

why it is important for steel to go through a fluid phase as it is being produced.

Answers

Answer: It is important because the object must go through heat to be melted and then it should be put into a mold to be formed. Also, it go though heat to keep it from cracking and go to be cooled and harden

Explanation:

How is a digital representation of analog data a form of abstraction? Why is the quality of the photo, music, etc better when more samples are taken? Music is an example of analog data. What other examples of analog data can you think of?

Answers

Answer:

1. This is because non-essential parts of the analog data is cut of so as to represent the analog data digitally.

2. This is because it mirrors closely to the original analog material.

3. i. Temperature ii. Speed ii. Distance iv. Electric current

Explanation:

1. How is a digital representation of analog data a form of abstraction?

Digital representation of analog data is a form of abstraction because, since abstraction, which is the removal of non-essential parts of a material so as to reduce complexity, also non-essential parts of the analog data is cut of so as to represent the analog data digitally.

2.Why is the quality of the photo, music, etc better when more samples are taken?

The quality of these items is better because, as more samples are taken, it reduces the error in the sampling and the item(photo, music etc) mirrors closely to the original analog material.

3. What other examples of analog data can you think of?

i. Temperature ii. Speed ii. Distance iv. Electric current

Function of an actuator

Answers

Answer:

an actuator is a device that uses a form of power to convert a control signal into mechanical motion


I really hope this helps you with your studies

What is the Denary representation of this 8 bit number > 01001111 ?

Answers

The Denary representation of this 8 bit number 01001111 is 79.

Decimal number

A binary number is a number expressed in the base-2 numeral system or binary numeral system. Binary numbers are either 0 or 1.

The decimal numeral system is the standard system for denoting numbers. Decimals are a set of numbers lying between integers on a number line.

Converting the number 01001111 to decimal:

01001111 = (0 * 2)⁷ + (1 * 2)⁶ + (0 * 2)⁵ +  (0 * 2)⁴ +  (1 * 2)³ +  (1 * 2)² + (1 * 2)¹ + (1 * 2)⁰ = 79

The Denary representation of this 8 bit number 01001111 is 79.

Find out more on Decimal number at: https://brainly.com/question/1827193

Write a C++ program to add two integers. Make a function add() to add integers and display sum in main() function.

Answers

Answer:

In C++:

#include <iostream>

using namespace std;

int add(int a, int b){

   int c = a + b;

   return c;

}

int main(){

   int a, b;

   cout<<"Enter two numbers: ";

   cin>>a;

   cin>>b;

   cout<<add(a,b);

   return 0;

}

Explanation:

The add() function begins here

int add(int a, int b){

This adds the two integers

   int c = a + b;

This returns the sum of the two integers

   return c;

}

The main begins here

int main(){

This declares two numbers

   int a, b;

This prompts user for two numbers

   cout<<"Enter two numbers: ";

The next two lines gets the two numbers

   cin>>a;

   cin>>b;

This gets the sum of the two numbers from the add() function. The sum is also printed

   cout<<add(a,b);

   return 0;

}

HURRY PLEASE ITS A TEST
A military cargo plane is loaded with the maximum weight allowable for the flight. The cargo is heavier than what the pilot usually carries, so the pilot adjusts as follows: Group of answer choices
a. The pilot flies slower to create less thrust and less lift
b. The pilot flies slower to create more thrust and more lift
c. The pilot flies faster to create less thrust and less lift
d. The pilot flies faster to create more thrust and more lift

Answers

A.)

It's either A or D both of them stand out and make sense to me so I think that it'll be right if you choose A or D.

-Ɽ3₮Ɽ0 Ⱬ3Ɽ0

How are switches indirectly involved in ARP poisoning?

Answers

Answer:

They

are indirectly involved in the attack because they do not verify the the MAC/IP address

association

Explanation:

PLEASE MARK ME AS BRAINLIEST

Which are the following 4 things something must be able to do in order to be a computer? *

Answers

Answer:

There are four main equipment functions of a computer system: Input, Processing, Storage and Output.

Explanation:

how do you activate windows on a lenovo computer?

Answers

Answer:

Go to settings

Explanation:

Go to settings, buy an activation key, and activate Windows

Which type of digital picture is made by strong individual pixel value

Answers

Answer  :a bitmap because it is a 'map' of where the 'bits' of information are stored

Explanation:

This information is stored as a sequence of numbers defining the colour of each pixel.

Answer:

raster

Explanation:

Raster images, such as digital photographs, store the color value of each individual pixel.

future quirk ideas for bnha

Answers

Niceeeeeeeeeeee lololololol
Hello there just a fellow MHA fan :)
Other Questions
Please HELP! Why does Anne begin to think longingly about a young man she knew previously named Peter Schiff?Peter van Daan reminds her of the other Peter.She reads about him in the latest newspaper.She has a vivid dream about the young man.She hears about him from the office workers. A drawer contains 3 black socks, 3 white socks, 2 red socks, and 1 purple sock. A red sock is pulled at random from the drawer, but returned because it had a hole. What is the probability that a black sock will be the next sock pulled at random Which graph represents the function f(x) = 4x Brad bought a toy truck and toy car for $8.72 the car cost $4.85 how much did the toy truck cost? A $13.57B $3.87C $12.56D $4.13E $4.87 Which characteristic is a behavior adaptation in birds? What's the purpose of " Charles Goodyear " by H.A Lewis ? At your child's birth, you begin contributing monthly to a college fund. The fund pays an APR of 4.1% compounded monthly. You figure your child will need $40,000 at age 18 to begin college. What monthly deposit is required? (Round your answer to the nearest cent.) Twenty out of twenty-five students wore red shirts to school on the same day. What is another way to write twenty out of twenty-five? A movie theater has a seating capacity of 385. The theater charges $5.00 for children, $7.00 for students, and $12.00 of adults. There are half as many adults as there are children. If the total ticket sales was $ 2794, How many children, students, and adults attended? Which colonial region cut down trees and made lumber to be used tobuild ships what is 18.6% of 11,400 ABCD PLZ HELP ASAP What do you think it means to be an American? what would happen it the palisade mesophyll were below the spongy mesophyll Hey everybody! Just to spread the love of the month and have some fun, I am doing a brainliest give away. The 17th person to reply with the word "fun" will get marked brainliest! Happy Valentine's Day! And through answering you will get 21 points! ILL GIVE BRAINLIESAT FOR FIRST ANSWER!Divide31/12 Can anyone help me in this please? Which statement is the most accurate regarding the first stage of photosynthesis?(1 point)Sugar molecules like glucose are formed, and this is a light-independent stage.Radiant energy is converted into chemical energy, and this is a light-dependent stage.Radiant energy is converted into chemical energy, and this is a light-independent stage.Sugar molecules like glucose are formed, and this is a light-dependent stage -2y-5x=2-5x=2y-4( I need help solving both equations in y=mx+b form) Consider the following equation3x + 9y = 8y - 2Step 2 of 2: Find the equation of the line which passes through the point (13,5) and is perpendicular to the given line. Express your answer inslope-intercept form. Simplify your answer.