Input Format

The problem instance files have the following format (all numbers are integers, all intra-line separators are spaces):

0

1

0

0

1

1

0

0

0

0

1

0

              would give this attends matrix:

 

 

 

event

 

                

 

 

0

1

0

0

student

 

1

1

0

0

 

 

0

0

1

0

             Meaning:

       the first student attends the second event
       the second student attends the first and second events
       the third student attends the third event

0

1

0

0

1

1

0

0

0

0

1

0

        would give this roomfeatures matrix:

 

 

 

feature

 

                

 

 

0

1

0

0

room

 

1

1

0

0

 

 

0

0

1

0

       Meaning:

       the first room satisfies the second feature
       the second room satisfies the first and second features
       the third room satisfies the third feature

0

1

0

0

1

1

0

0

0

0

1

0

       would give this eventfeatures matrix:

 

 

 

feature

 

                

 

 

0

1

0

0

event

 

1

1

0

0

 

 

0

0

1

0

       Meaning:

       the first event requires the second feature
       the second event requires the first and second features
       the third event requires the third feature