11082 - Matrix Decompressing
Moderator: Board moderators
-
- New poster
- Posts: 42
- Joined: Sun Jul 31, 2005 2:07 am
- Location: SUST. Bangladesh
- Contact:
11082 - Matrix Decompressing
Someone give me some I/O, plz
Shame on you! You can so easily make I/O yourself! Generate random matrices, sum their rows and columns, and you get your input. Checking if the output is correct is a trivial coding exercise, too.
And it seems like there's now something wrong with online judge on this problem, my accepted solution from the contest gets WA
And it seems like there's now something wrong with online judge on this problem, my accepted solution from the contest gets WA

-
- Experienced poster
- Posts: 154
- Joined: Sat Apr 17, 2004 9:34 am
- Location: EEE, BUET
I think you are right. I didn't take part in the contest cause I participated in the real-time contest held with this problemset last month. But I solved this problem during the real-time. And now, amazingly the simple Ford-Fulkerson code with that very idea is getting WA.



You should never take more than you give in the circle of life.
-
- New poster
- Posts: 42
- Joined: Sun Jul 31, 2005 2:07 am
- Location: SUST. Bangladesh
- Contact:
Ok, I'm sorry. I knew that. But what to do when all my attempts seems right to me, but not to the judge? There are various reasons why paople wants help.Shame on you! You can so easily make I/O yourself! Generate random matrices, sum their rows and columns, and you get your input. Checking if the output is correct is a trivial coding exercise, too.
-
- Experienced poster
- Posts: 154
- Joined: Sat Apr 17, 2004 9:34 am
- Location: EEE, BUET
-
- New poster
- Posts: 18
- Joined: Fri Apr 21, 2006 11:34 am
-
- Experienced poster
- Posts: 161
- Joined: Tue Oct 25, 2005 8:38 pm
- Location: buet, dhaka, bangladesh
matrix entry range [1,20], so i assign capacity 20 to each edge joining row and column, but how to tackle the lower part, if i run simple ford-fulkerson, any matrix entry could be 0, but i have to take care about it, please help me
ishtiak zaman
----------------
the world is nothing but a good program, and we are all some instances of the program
----------------
the world is nothing but a good program, and we are all some instances of the program
ayon wrote:matrix entry range [1,20], so i assign capacity 20 to each edge joining row and column, but how to tackle the lower part, if i run simple ford-fulkerson, any matrix entry could be 0, but i have to take care about it, please help me
First , thanks to Mohammad Mahmudur Rahman and FAQ .ayon wrote:matrix entry range [1,20], so i assign capacity 20 to each edge joining row and column, but how to tackle the lower part, if i run simple ford-fulkerson, any matrix entry could be 0, but i have to take care about it, please help me
I never have a thought that turn this probelm into a graph probelm

hi , ayon .
actually you can turn the "1" as 0+1
that is all

studying @ ntu csie
any backtrack solution..
I also solved this problem using MAX-FLOW.
But I'd like to know whether any backtracking solution exists for this problem.
I heard that the judge solution was implemented using backtrack...
Isn't (20 x 20 ) matrix too much for a backtrack approach..????
But I'd like to know whether any backtracking solution exists for this problem.
I heard that the judge solution was implemented using backtrack...

Isn't (20 x 20 ) matrix too much for a backtrack approach..????