268 views
0 votes
0 votes
Find the least number of comparisons needed to sort five element.

 

I AM GETTING 7 AS (LOG 5!) =7........

1 Answer

0 votes
0 votes
Least Number of Comparisons will be $4$ if the Numbers are already sorted and we apply Insertion sort Idea.

Related questions

2 votes
2 votes
2 answers
1
himgta asked Jan 16, 2019
1,289 views
Consider a tree T with n vertices and (n – 1) edges. We define a term called cyclic cardinality of a tree (T) as the number of cycles created when any two vertices of T...
1 votes
1 votes
1 answer
2
Priyanka17 asked Oct 3, 2018
401 views
If p=1, q=1, r=0 then for given assignment:a) number of min terms evaluate to 1b)number of min terms evaluate to 0c)number of max terms evaluate to 1d)number of max terms...
0 votes
0 votes
1 answer
3
mb14 asked May 28, 2018
406 views
In this graph it is said that $a,e,b,c,b$ is a path. But according to definition- in a path vertices and edges can't repeat so why this is a path. confused please clarify...
0 votes
0 votes
1 answer
4
Rajsukh Mohanty asked Nov 10, 2023
185 views
Is the simplification that I have encircled, done right? because according to negation law (r ∨ ¬ r) ≡ T.