PPL Assignment
IRM2015006
|
#include "../boys/allboys.h"
#include "../girls/allgirls.h"
#include "../gifts/gift.h"
#include "../couples/couple.h"
#include "../utils/read_data.h"
#include "../utils/logger/logger.h"
#include "../templates/kbest.h"
#include "../templates/randomK.h"
#include "../configs.h"
Go to the source code of this file.
Functions | |
std::vector< Couple > | makeCouples (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) |
int main | ( | int | argc, |
char ** | argv | ||
) |
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.