struct problem

Overview

Definition of problem to be solved More…

#include <gen_wilds.h>

struct problem {
    // fields

    set* sets;
    int set_num;
    int set_max;
    int elm_num;
    int* sol;
    int sol_num;
};

Detailed Documentation

Definition of problem to be solved

Fields

set* sets

Sets

int set_num

Number of sets

int set_max

Maximum number of sets can be included before reallocation of array is required

int elm_num

Total number of different elements in all the sets

int* sol

Solution of problem (array of set numbers)

int sol_num

Number of sets in solution