retagged by
17,578 views
4 votes
4 votes
The concept of order (Big O) is important because—
(a) it can be used to decide the best algorithm that solves a given problem
(b) it determines the maximum size of a problem that can be solved in a given system, in a given amount of time
(c) it is the lower bound of the growth rate of the algorithm
(d) Both (a) and (b)
retagged by

3 Answers

2 votes
2 votes
let problem A of size is n.
Big O says time taken by best algorithm that solve every case(best, avarage, worst) of problem A completely.
in general Big O is "The Best algorithm of worst case input".
it also determines the max size of problem that can be solved in given amount of time.
0 votes
0 votes
big O  is the time taken by an algorithm which is the worst case scenario i.e  " the input arrangement for which the algo. does maximum work and takes maximum time "

suppose for quick sort , in  worst case  it takes O(n^2)

it means that for sorting n number (which may or may not be in order) maximum time it will take is O(n*n).
0 votes
0 votes

Only option D is correct.

Option A is valid because big O will tell the maximum number of comparisons in the algorithm. Even the best algorithm will have the worst case time, hence big O can be taken as a deciding factor in the worst scenario.

edited by

Related questions

0 votes
0 votes
2 answers
1
3 votes
3 votes
1 answer
2
0 votes
0 votes
2 answers
3
saumya mishra asked Jun 26, 2018
360 views
Explain b and c part???
0 votes
0 votes
1 answer
4