Skip to content

A brute-force and Integer Programming approach for generating optimal sorting networks

Notifications You must be signed in to change notification settings

Regista6/Optimal_Sorting_Networks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Optimal_Sorting_Networks

  • Model based on Optimal Sorting Networks (Daniel Bundala and Jakub Zavodny)
  • Requires OR-Tools and C++20 (because of std::format)
  • This generates all $2^{n}$ binary sequences and then constructs a model based on that. Requires Channel_Size and Original_Depth as input.
  • Two objectives available: MINIMIZE_DEPTH or MINIMIZE_TOTAL_COMPARATORS.

Example Output

Status = Optimal
Channel Size = 4
Original Depth = 4
Obj_Type = MINIMIZE_DEPTH, Obj_Val = 3
Depth: 1, Index: [(0, 3), (1, 2)]
Depth: 2, Index: [(0, 1), (2, 3)]
Depth: 3, Index: [(1, 2)]
Validation Started
Validation Finished

About

A brute-force and Integer Programming approach for generating optimal sorting networks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages