Skip to content

Abdallah-Elshamy/merge_sort_and_count_inversions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

merge_sort_and_count_inversions

counting inversions using divide-and-conquer algorithm

This file "IntegerArray.txt" contains all of the 100,000 integers between 1 and 100,000 (inclusive) in some order, with no integer repeated.

Your task is to compute the number of inversions in the file given, where the ithi^{th}ith row of the file indicates the ithi^{th}ith entry of an array.

Because of the large size of this array, you should implement the fast divide-and-conquer algorithm.

Releases

No releases published

Packages

No packages published

Languages