Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7187923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:57:14+00:00 2026-05-28T18:57:14+00:00

Let’s assume that we have a simple matrix 3rows x 7cols. The matrix includes

  • 0

Let’s assume that we have a simple matrix 3rows x 7cols.
The matrix includes only zeros (0) and (1) like:

1 0 1 1 1 0 0
0 0 1 1 0 0 0
0 0 1 0 1 1 0

Senario:
If we know the sum of non-zeros in each row,

(in first row is 4, in second row is 2, in third row is 3.) (blue line)

additional, if we know the sum of each col (1 , 0, 3, 2, 2, 1, 0) (green line)

also if we know the sum of each diagonal from the top-left to bottom-right (1,0,1,2,3,0,1,1,0)(red lines) anti-clockwise

and finally we know the sum of each diagonal from the bottom-left to top-right (0,0,2,1,3,2,1,0,0) (yellow lines)

enter image description here

My question is:
With these values as input (and the lenght of matrix 3×7),

4, 2, 3
1, 0, 3, 2, 2, 1, 0
1, 0, 1, 2, 3, 0, 1, 1, 0
0, 0, 2, 1, 3, 2, 1, 0, 0

How we can draw the first matrix?
After a lot of thoughts I came to the conclusion that this is a linear equation system with 3×7 unknown values and some equations.
Right?

How can I make an algorithm in C, or whatever, to solve these equations?
Should I use a method like gausian equation?

Any help would be greatly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:57:15+00:00Added an answer on May 28, 2026 at 6:57 pm

    For an array of 10×15 ones and zeros, you would be trying to find 150 unknowns and have 10+15+2*(10+15-1) = 73 equations if you ignore that the values are limited to being either one or zero. Obviously you can’t create a linear system on that basis which has a unique solution.

    So is that constraint enough to give a unique solution?

    For a 4×4 matrix with the following sums there are two solutions:

    - 1 1 1 1
    | 1 1 1 1
    \ 0 1 1 0 1 1 0
    / 0 1 1 0 1 1 0
    
    0   0   1   0 
    1   0   0   0 
    0   0   0   1 
    0   1   0   0 
    
    0   1   0   0 
    0   0   0   1 
    1   0   0   0 
    0   0   1   0 
    

    So I wouldn’t expect there to be a unique solution for larger matrices – the same symmetry would exist in many places:

    - 1 1 0 0 1 1
    | 1 1 0 0 1 1
    \ 0 1 0 0 1 0 1 0 0 1 0
    / 0 1 0 0 1 0 1 0 0 1 0
    
    0   0   0   0   1   0 
    1   0   0   0   0   0 
    0   0   0   0   0   0 
    0   0   0   0   0   0 
    0   0   0   0   0   1 
    0   1   0   0   0   0 
    
    0   1   0   0   0   0 
    0   0   0   0   0   1 
    0   0   0   0   0   0 
    0   0   0   0   0   0 
    1   0   0   0   0   0 
    0   0   0   0   1   0 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say that I have a set of relations that looks like this: relations
Let me try to explain what I need. I have a server that is
Let's say we have a simple function defined in a pseudo language. List<Numbers> SortNumbers(List<Numbers>
Let's say that we have an ARGB color: Color argb = Color.FromARGB(127, 69, 12,
Let's assume that we are building a high traffic site that will be used
Let's say I have a text file composed like this ##### typeofthread1 ##### typeofthread2
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Let's say I have multiple requirements for a password. The first is that the
Let's assume that a user votes for some movies in a scale of 1
Let's say that I have a date in R and it's formatted as follows.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.