Exact binary matrix factorization - MATLAB Cody - MATLAB Central

Problem 1051. Exact binary matrix factorization

Difficulty:Rate

Given a binary-valued (only ones and zeroes) MxN matrix C, and K (where K<M and K<N) find a binary-valued MxK matrix A and a binary-valued KxN matrix B such that A*B equals C. e.g. for K = 2, and

C =
       1     1     1     0
       0     0     0     0
       0     1     0     1

then one possible solution is

A =
     0     1
     0     0
     1     0
B =
       0     1     0     1
       1     1     1     0

For this problem, assume that at least one solution exists.

Note that you cannot do matrix multiplication with two logical matrices in MATLAB.

Solution Stats

22.54% Correct | 77.46% Incorrect
Last Solution submitted on Oct 26, 2024

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers14

Suggested Problems

More from this Author5

Problem Tags

Community Treasure Hunt

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

Start Hunting!