• retagged by
1,327 views
0 0 votes
Minimum no of comparison to find minimum element out of n elements.

1 Answer

1 1 vote
Minimum no of comparison to find minimum element out of n elements is N-1
Position:
Show:

Related questions

1 1 vote
1 1 answer
1.2k
1.2k views
iarnav asked May 4, 2019
1,248 views
I’ve seen this wikipedia article – https://en.wikipedia.org/wiki/Comparison_sortAlso see this link – https://gateoverflow.in/32948/minimum-number-of-comparisonshttps://ga...
9 9 votes
6 6 answers
3.9k
3.9k views
Arjun asked Feb 27, 2025
3,944 views
Suppose that insertion sort is applied to the array $[1,3,5,7,9,11, x, 15,13]$ and it takes exactly two swaps to sort the array. Select all possible values of $x$.$10$$12...
3 3 votes
3 3 answers
3.6k
3.6k views
sunil sarode asked Jan 23, 2018
3,573 views
I am not able to get this formula (number of input * number of digit *base of number )I am not getting how base of number is important ?Thanks :)
2 2 votes
2 2 answers
181
181 views
GO Classes asked Aug 11
181 views
Problem: Sort a file of huge records with tiny keys.Example application: Reorganize your MP-$3$ files.Which sorting method to use?a system sort, guaranteed to run in time...