Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged inversion
364
views
1
answers
1
votes
NPTEL Assignment Question
In an array A[1..n] of n distinct elements, if i < j and A[i] > A[j], then the pair (i,j) is called an inversion of A.How many inversions are there in the array A = {n,n-1,n-2,...,3,2,1}? n(n-1) / 2n(n+1) / 22n(n+1)None
rsansiya111
364
views
rsansiya111
asked
Dec 7, 2021
Algorithms
nptel-quiz
sorting
inversion
+
–
233
views
0
answers
0
votes
Cormen Edition 3 Exercise 2.4 Question 4 (Page No. 42)
Give an algorithm that determines the number of inversions in any permutation on $n$ elements in $\Theta (n\ lg\ n)$ worst-case time. (Hint: Modify merge sort.)
akash.dinkar12
233
views
akash.dinkar12
asked
Jun 26, 2019
Algorithms
cormen
algorithms
algorithm-design-technique
inversion
descriptive
+
–
166
views
0
answers
0
votes
Cormen Edition 3 Exercise 2.4 Question 3 (Page No. 42)
What is the relationship between the running time of insertion sort and the number of inversions in the input array? Justify your answer.
akash.dinkar12
166
views
akash.dinkar12
asked
Jun 26, 2019
Algorithms
cormen
algorithms
inversion
descriptive
+
–
353
views
1
answers
0
votes
Cormen Edition 3 Exercise 2.4 Question 2 (Page No. 42)
What array with elements from the set $\{1,2,\dots n\}$ has the most inversions? How many does it have?
akash.dinkar12
353
views
akash.dinkar12
asked
Jun 26, 2019
Algorithms
cormen
algorithms
inversion
descriptive
+
–
260
views
1
answers
0
votes
Cormen Edition 3 Exercise 2.4 Question 1 (Page No. 41)
List the five inversions of the array $\langle 2,3,8,6,1\rangle$
akash.dinkar12
260
views
akash.dinkar12
asked
Jun 26, 2019
Algorithms
cormen
algorithms
inversion
descriptive
+
–
390
views
1
answers
0
votes
What do we mean by INVERSION
I searched on internet but got noting .
Nandkishor3939
390
views
Nandkishor3939
asked
Jan 16, 2019
Algorithms
algorithms
time-complexity
inversion
made-easy-test-series
+
–
946
views
0
answers
0
votes
Inversions
Is it always the case that in an unsorted array using comparison based sorting algorithm the minimum number of comparison required to convert it into sorted array is ... of Inversions present in the Array. Am i saying the statement right ?
Na462
946
views
Na462
asked
Apr 26, 2018
Programming in C
inversion
algorithms
+
–
662
views
0
answers
0
votes
Number of Inversions
How to get number of Inversion count using merge sort?
ankitgupta.1729
662
views
ankitgupta.1729
asked
Nov 9, 2017
Algorithms
algorithms
inversion
+
–
750
views
1
answers
1
votes
Number of Inversions
A) 192 B) 120 c) 188 D) 176
Himanshu1
750
views
Himanshu1
asked
Dec 16, 2015
Algorithms
algorithms
inversion
insertion-sort
+
–
22.5k
views
12
answers
67
votes
GATE CSE 2003 | Question: 61
In a permutation \(a_1 ... a_n\), of n distinct integers, an inversion is a pair \((a_i, a_j)\) such that \(i < j\) and \(a_i > a_j\).If all permutations are equally likely, what ... \)\(\frac{n(n-1)}{4}\)\(\frac{n(n+1)}{4}\)\(2n[\log_2n]\)
Kathleen
22.5k
views
Kathleen
asked
Sep 17, 2014
Algorithms
gatecse-2003
algorithms
sorting
inversion
normal
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register