Skip to content

Solves the optimisation partition problem (NP-hard) in pseudopolynomial time NM where N is size of the list and M is the sum of the elements in the list. Implemented in Haskell with a memoisation "trick".

Notifications You must be signed in to change notification settings

ongkuanyang/partition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

partition

Solves the optimisation partition problem (NP-hard) in pseudopolynomial time NM where N is size of the list and M is the sum of the elements in the list. Implemented in Haskell with a memoisation "trick".

mindiff takes a list and calculates the minimum difference between the sum of partitions of the list into two lists.

About

Solves the optimisation partition problem (NP-hard) in pseudopolynomial time NM where N is size of the list and M is the sum of the elements in the list. Implemented in Haskell with a memoisation "trick".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published