PPL Assignment
IRM2015006
q10.cpp File Reference
Include dependency graph for q10.cpp:

Go to the source code of this file.

Functions

std::vector< CouplemakeCouples (int k, std::vector< Boy * >, std::vector< Girl * >, Logger *logger)
 
void performGifting (int k, std::vector< Couple > *couples, std::vector< Gift > *giftlist, Logger *logger)
 
int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 18 of file q10.cpp.

Here is the call graph for this function:

std::vector< Couple > makeCouples ( int  k,
std::vector< Boy * >  boys,
std::vector< Girl * >  girls,
Logger logger 
)

Make couples out of available boys and girls Based on random selection of boys and girls using RandomK

Perform coupling of boys and girls based on getting the k best choices at a time

Definition at line 51 of file q10.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void performGifting ( int  k,
std::vector< Couple > *  couples,
std::vector< Gift > *  giftlist,
Logger logger 
)

Perform gifting to couples

Method to perform gifting to couple

Definition at line 94 of file q10.cpp.

Here is the caller graph for this function: