Given a binary matrix A of size m-by-n (entries in {0, 1}) and a binary column vector b of length m (entries in {0, 1}), consider the linear system over GF(2):
mod(A * x, 2) == b
Find a binary column vector x of length n (entries in {0, 1}) that satisfies the system and has the MINIMUM POSSIBLE Hamming weight sum(x).
Return:
- found: logical scalar (true if the system has at least one solution, false if inconsistent).
- x: an n-by-1 double (or logical) binary vector achieving the minimum possible Hamming weight sum(x) (or zeros(0, 1) if found is false).
Constraints:
- 1 <= m <= 60, 1 <= n <= 64.
- Systems may be inconsistent, underdetermined with high-weight unique optima, or large high-nullspace systems with sparse hidden optima.
- Strict runtime limits apply across all randomized test suites.

Solution Stats

1 Solutions

1 Solvers

Last Solution submitted on Nov 30, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers1

Suggested Problems

More from this Author31

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!