Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Partition Algorithm Trap

+0
−1

Challenge Find a valid input (multiset of positive integers) for this deterministic $O(n^2)$ Partition algorithm such that:

The algorithm fails to find a solution even though one exists, or

The algorithm exhibits Non polynomial runtime (e.g., exponential blowup).

The Partition problem: given a multiset of positive integers, is there a subset whose sum is exactly half of the total sum?

The algorithm is here: https://osf.io/wemjy

Examples

Input: [1, 2, 3, 4] Output: Algorithm returns a solution subset: [1, 4] or [2, 3]

Input: [1, 1, 1, 2, 3] Output: Algorithm fails or slows down (example for illustration)

⚠️ Any proposed input must have a solution. Inputs without a solution are not valid counterexamples.

Rules

The input is a multiset of positive integers.

The algorithm may return any valid solution subset.

Goal: break the algorithm by finding a solvable instance where it fails or is slow (It have to be exponential).

Submissions may include explicit instances or families of inputs.

Both constructive counterexamples and theoretical reasoning are welcome.

Scoring: shortest or most elegant counterexample wins, with bonus for explanation.

History

3 comment threads

Is this even possible? The associated paper claims to formally prove that this algorithm is dete... (1 comment)
Relevant Meta discussion (1 comment)
Interesting challenge (1 comment)

Sign up to answer this question »