Complexity depends ontime and spaces are two main factorthe on which running time and / or space is given in terms of input sizeboth (1) and (2)None of these (2024)

You visited us 0 times! Enjoying our articles? Unlock Full Access!

A

both (1) and (2)

B

the function on which running time and / or space is given in terms of input size

C

time and spaces are two main factor

D

None of these

Open in App

Solution

Verified by Toppr

Complexity depends on

The function on which running time and /or space is given in terms of input size.

Time and spaces are two main factor.

The number of (machine) instructionswhich a program executes during its running time is called its time complexity. This number depends primarily on the size ofthe program's input, that is approximately on the number of the strings to besorted (and their length) and the algorithm used.

Time and space complexity depends onlots of things like hardware, operating system, processors, etc. However, wedon't consider any of these factors while analysing the algorithm. We will onlyconsider the execution time of an algorithm.

Was this answer helpful?

1

Complexity depends ontime and spaces are two main factorthe on which running time and / or space is given in terms of input sizeboth (1) and (2)None of these (2024)
Top Articles
Latest Posts
Article information

Author: Greg O'Connell

Last Updated:

Views: 5918

Rating: 4.1 / 5 (62 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Greg O'Connell

Birthday: 1992-01-10

Address: Suite 517 2436 Jefferey Pass, Shanitaside, UT 27519

Phone: +2614651609714

Job: Education Developer

Hobby: Cooking, Gambling, Pottery, Shooting, Baseball, Singing, Snowboarding

Introduction: My name is Greg O'Connell, I am a delightful, colorful, talented, kind, lively, modern, tender person who loves writing and wants to share my knowledge and understanding with you.